Ways to design clocked sequential circuits :
- Mealy Machine
- Moore Machine
Mealy Machine
In a Mealy machine, the outputs are a function of the present state and the value of inputs. Due to this, outputs may change asynchronously with change in inputs.
Output = f(Present State, Input)
Moore Machine
In a Moore machine, the outputs depend only on the present state. In the case of Moore Machine, the next state is calculated using the inputs and the current state. The outputs are computed by a combinatorial logic circuit whose inputs are the state variables.
Output = f(Present State)
Please go through the excitation table for
D - flip flop for better understanding.
Q) Design a circuit that detects three consecutive '1's using Mealy and Moore FSM.
Answer)
I) Mealy FSM
|
Mealy FSM |
|
State truth table |
|
Y = In.q1 |
|
Q1 = In.q1 + In.q0 |
|
Q0 = In.not(q1).not(q0) |
|
Mealy FSM circuit implementation |
II) Moore FSM
|
Moore FSM |
|
State truth table |
|
Output truth table |
|
Y = q0.q1 |
|
Q1 = In.q0 + In.q1 |
|
Q0 = In.q1 + In.not(q0) |
|
Moore FSM circuit implementation |
No comments:
Post a Comment