FA With Output - Moore Machine
FA With Output - Moore Machine
Mealy Machine
Moore machine
Mealy Machine
A Mealy Machine is an FSM whose output depends on the present state as
well as the present input.
q0 is the initial state from where any input is processed (q0 ∈ Q).
Next state
→a b x1 c x1
b b x2 d x3
c d x3 c x1
d d x3 d x2
Moore Machine
Moore machine is an FSM whose outputs depend on only the present state.
q0 is the initial state from where any input is processed (q0 ∈ Q).
Next State
Present state Output
Input = 0 Input = 1
→a b c x2
b b d x1
c c d x2
d d d x3
Output depends both upon the present Output depends only upon the present
state and the present input state.
Generally, it has fewer states than Generally, it has more states than Mealy
Moore Machine. Machine.
The value of the output function is a The value of the output function is a
function of the transitions and the function of the current state and the
changes, when the input logic on the changes at the clock edges, whenever
present state is done. state changes occur.
Step 2 − Copy all the Moore Machine transition states into this table
format.
Step 3 − Check the present states and their corresponding outputs in the
Moore Machine state table; if for a state Qi output is m, copy it into the
output columns of the Mealy Machine state table wherever Q i appears in the
next state.
Example
Let us consider the following Moore machine −
Next State
Present State Output
a=0 a=1
→a d b 1
b a d 0
c c c 0
d b a 1
Step 1 & 2 −
Next State
→a d b
b a d
c c c
d b a
Step 3 −
Next State
=> a d 1 b 0
b a 1 d 1
c c 0 c 0
d b 0 a 1