
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































State Control Outputs
Status Inputs
Present State Value
Next State Value
Inputs/outputs
Vending Machine SSC
Reset
Clk
Open
Coin Sensor
Gum Release Mechanism
Reset
N
N
N
D
D
N D
[open]
[open] [open] [open]
S
S1 S
S3 S4^ S5 S
S [open]
S
D
Next State Q + 1 Q+ 0 0 0 0 1 1 0 X X 0 1 1 0 1 1 X X 1 0 1 1 1 1 X X 1 1 1 1 1 1 X X
Present State Q 1 Q 0 0 0
Inputs Output Open 0 0 0 X 0 0 0 X 0 0 0 X 1 1 1 X
NOTE! For D-FFs the next state will be what is at the D input. So each FF‟s next state values in the state table must be the D inputs for that FF.
D 1 D 0
CLK
OPEN
CLK
Q 0
D R
Q Q
D R
Q Q
\ Q (^1)
\reset
\reset \ Q 0
\ Q 0
Q 0
Q 0
Q 1
Q 1
Q (^1)
Q 1
D
D
N
N
N
\ N
D 1
D 0
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
JK Characteristic Table JK Excitation Table
J 0 0 0 0 1 1 1 1 K 0 0 1 1 0 0 1 1 Q 0 1 0 1 0 1 0 1 Q+
0 1 0 0 1 1 1 0
Q+
0 1 0 1
Q
0 0 1 1
J
0 1 X X
K
X X 1 0
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
Q OPEN 1
\ Q 0 N
Q (^0) J K R
Q Q
J K (^) R
Q Q
Q 0 \ Q 1
\ Q 1
\ Q 0
Q 1
\reset
D
D
N
N
CLK
CLK
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
Q1 Q 00
D
D N
Q
N
Q
01 11 10 00
01
11
10
State Register
Clock
State Feedback
X Inputs
Z Outputs
Combinational Logic for Next State (FF Inputs)
Comb. Logic for Outputs)
Mealy only; no connection for Moore