Escolar Documentos
Profissional Documentos
Cultura Documentos
State Comb.
FlipFlops Logic Outputs
For
Outputs Motor/Door
Controls
Clock
Combinational
Logic
For Next State
Elevator
Inputs Buttons
N
Coin Candy
Gumball Open
Sensor D Machine Release
FSM Mechanism
Reset
Clk
S3 S4 S5 S6
Draw state diagram: [open=1] [open=1] [open=1]
N N N D
Inputs: N, D, reset D D
N D ND ND ND
S1 S2 S1 S2 S1 S2
Output: open S0 S0 S0
S7 S8
[open=1] [open=1]
N D N D Output (open) indicated
ND ND during states in which is
S1 S2 S1 S2
S0 S0 is asserted
N
10 1 0 15+
ND 10 1 1 X
Reuse states 15+ 0 0 0
whenever possible 15+ 0 1 5
15+ 1 0 10
Symbolic State Table 15+ 1 1 X
N N
Clk
Input 0 1 0 0 1 1 0 0 0 1 0
Output 0 0 1 1 1 0 1 1 1 1 0
Reset
State Q In Q+
In
Diagram Present State Input Next State
Even Q Parity
[0] Even 0 0 Even 0 Present State Output
In
Even 0 1 Odd 1 Even 0 0
In
Odd 1 0 Odd 1 Odd 1 1
Odd
[1]
Odd 1 1 Even 0 Parity = Q
In
Q+ = Q In
Pre
Parity In Parity
In D Q T Q
Clr Clr
Reset Reset
D FF Implementation T FF Implementation