Mealy v/s. Moore

后端 未结 6 761
滥情空心
滥情空心 2020-12-14 08:24

What is the difference between Mealy & Moore type of finite state machines?

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 08:50

    In a Moore machine the output produced is associated to the current state of the machine and on it only. In a Mealy machine, instead, it is associated to both a state and a specific input.

    From a practical point of view you have that output is placed on states in a Moore machine (so every state has its ouput), while on the latter you have outputs on transitions (so an ouput is decided from the current state AND the outgoing transition)

提交回复
热议问题