Mealy and Moore machines - Micro-controllers - FSM

http://ingenuitydias.blogspot.com/2014/03/micro-controllers-fsm-mealy-and-moore.html
Mealy and Moore machines(Micro-controllers -FSM)
A.Moore machine
–Associates its outputs with states
–The outputs are represented either within the vertex corresponding to a state or adjacent to the vertex
B.Mealy machine:
–Associates its outputs with the transitions
–In addition to the input values, each arc also shows the output values generated during the transition; the format of the label of each arc is Inputs/Outputs.
Mealy FSM
Mealy machine diagram

Moore FSM

Moore machine diagram

A.Moore machine
–Associates its outputs with states
–The outputs are represented either within the vertex corresponding to a state or adjacent to the vertex
B.Mealy machine:
–Associates its outputs with the transitions
–In addition to the input values, each arc also shows the output values generated during the transition; the format of the label of each arc is Inputs/Outputs.
More Links:
Finite State Machine-Tutorials and Examples-1
Finite State Machine-Tutorials and Examples-2
FSM - Finite State Machine-Digital Electronics
Embedded programming-Micro controller based Systems
Both can be used to represent any sequential system and each has its advantages.Finite State Machine-Tutorials and Examples-2
FSM - Finite State Machine-Digital Electronics
Embedded programming-Micro controller based Systems
Mealy FSM


- Output is dependent on the inputs and the current state
- Delayed output FSM implies the fact that the calculated output for an input applied at time t is assigned at time t+1. This is correct at an Mealy FSM
Mealy machine diagram

- Self arcs must be shown (because the output values are shown on the arcs)
- Can be more compact than Moore machine, especially when two or more arcs with different output values go into the same state


- Output is dependent only on the current state
- Immediate Moore FSM: the output is obtained with a clock period delay, since the then the next state becomes present state
- Delayed Moore FSM: the output is actually obtained with two clock period delay, because of the Registers Bank 2
Moore machine diagram

- Self arcs can be missing (since it outputs are associated with the states and not with the arcs)
- Offers a simpler implementation when the output values depend only on the state and not on the transitions
- It requires less hardware to produce the output values than does a Mealy machine, since its outputs depend only on its state and its input values
- It is well suited for representing the control units of microprocessors