Professional Documents
Culture Documents
00
ab=00 C=0
C=1
C=1
C=×
11 C=0 01
ab=01 ab=10
C=1
C=0
10
ab=00
(a)
ab=00 00
C=1 C=0
ab=00 ab=00
C=0 C=1
ab=01 ab=11
11 C=1 01
C=0
ab=00
C=1
ab=00 C=0
ab=00
10
(b)
75
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Next State
Output
Current State Q1next Q0next
Excitation / next-state equations: Q1 Q0 AB =
X Y
Q1next = D1 = AQ1 + BQ1'Q0 00 01 10 11
Q0next = D0 = A' Q0' = A'Q0' + AQ0 00 01 01 00 00 1 1
Output equations: 01 00 10 01 11 0 0
X = Q 1 + Q 0' 10 01 01 10 10 1 1
Y = (Q1' Q0)' = Q1 + Q0' 11 00 00 11 11 1 1
AB = 1x AB = 10
AB = 0x
00 01
X=Y=1 X=Y=0
AB = 00
AB = 0x AB = 11 AB = 01
AB = 0x
11 10
X=Y=1 X=Y=1
AB = 1x
AB = 1x
(c)
76
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Excitation / next-state equations:
D1 = Q1next = Q0 + (Z≠0)'
D0 = Q0next = Q1 + Q0'
Output equations:
ClrX = LoadY = inZ = Q1'Q0'
LoadX = stat1 = Q1'Q0
LoadZ = Q0'
subtract = Q1Q0'
Next State
Current Outputs
Q1next Q0next
State (Z≠0) = 0 (Z≠0) = 1 LoadX LoadY LoadZ inZ stat1 subtract
Q 1Q 0
ClrX
00 11 01 1 0 1 1 1 0 0
01 10 10 0 1 0 0 0 1 0
10 11 01 0 0 0 1 0 0 1
11 11 11 0 0 0 0 0 0 0
ClrX=1
LoadX=0
LoadY=1
LoadZ=1
inZ=1
stat1=0
0 subtract=0
(Z≠0) (Z≠0)'
ClrX=0
LoadX=1
LoadY=0
LoadZ=0 1 3 ClrX=0
inZ=0 LoadX=0
stat1=1 LoadY=0
subtract=0 (Z≠0) LoadZ=0
inZ=0
(Z≠0)'
stat1=0
2 subtract=0
ClrX=0
LoadX=0
LoadY=0
LoadZ=1
inZ=0
stat1=0
subtract=1
(d)
77
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Next State
Current State Q2nextQ1nextQ0next
Q 2Q 1Q 0 Start =
Excitation / next-state equations:
Q2next = D2 = Q2'Q0 + Q1' 0 1
Q1next = D1 = Q2'Q0' + Q2'Q1'Q0 + 000 111 110
Start'Q2Q1'Q0' 001 110 110
Q0next = D0 = Q1Q0' + Start'Q1'Q0' + 010 011 011
StartQ2Q0 011 100 100
100 111 100
Output equations: 101 100 101
LoadN = Q2Q1Q0 110 001 001
LoadM = Q2'Q1Q0' 111 000 001
LoadN=0 LoadN=0
LoadM=0 LoadM=0
000 001
Start'
Start
Start'
Start
111 010
LoadN=1 LoadN=0
LoadM=0 LoadM=1
110 011
LoadN=0 LoadN=0
LoadM=0 LoadM=0
Start'
LoadN=0
LoadM=0
101 Start' 100
LoadN=0
LoadM=0 Start
Start
(e)
Next-state equations:
Q2next = D2 = Yes'Q2Q1 + Q1'
78
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
b=1 c=1
010 YesNo = x0 000
YesNo = 1x + 01 YesNo = x1
YesNo = 00 YesNo = 01
b=1 YesNo = x1
YesNo = 1x YesNo = 0x
011 001 101 111
b=1
c=1 b=1 YesNo = 00 a=1
b=1 YesNo = 1x
YesNo = x0 c=1
YesNo = x1
YesNo = x0
100 YesNo = 01
b=1
c = 1 YesNo = 00
YesNo = 11 110
b=1
YesNo = 10
(f)
79
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6.2.
Excitation equations:
T1 = CQ1'Q0' + C'Q1'Q0
T0 = Q1'Q0' + CQ0'
Next-state equations:
Q1next = T1 ⊕ Q1
= (CQ1'Q0' + C'Q1'Q0) ⊕ Q1
= (CQ1'Q0' + C'Q1'Q0)'Q1 + (CQ1'Q0' + C'Q1'Q0)Q1'
= (CQ1'Q0' )' (C'Q1'Q0)' Q1 + CQ1'Q0' + C'Q1'Q0
= (C'+Q1+Q0) (C+Q1+Q0' ) Q1 + CQ1'Q0' + C'Q1'Q0
= C'Q1 + C'Q1Q0' + CQ1 + Q1 + Q1Q0' + CQ1Q0 + Q1Q0 + CQ1'Q0' + C'Q1'Q0
= Q1 + CQ1'Q0' + C'Q1'Q0
Q0next = T0 ⊕ Q0
= (Q1'Q0' + CQ0' ) ⊕ Q0
= (Q1'Q0' + CQ0' )' Q0 + (Q1'Q0' + CQ0' )Q0'
= (Q1'Q0' )' (CQ0' )' Q0 + Q1'Q0' + CQ0'
= (Q1+Q0) (C'+Q0) Q0 + Q1'Q0' + CQ0'
= C'Q1Q0 + Q1Q0 + C'Q0 + Q0 + Q1'Q0' + CQ0'
= Q0 + Q1'Q0' + CQ0'
Output equations:
a = Q1'Q0
b = Q 1Q 0
00
ab=00 C=0
C=1
(a)
80
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Excitation equations:
J1 = CQ1'Q0' + C'Q1'Q0
K1 = C'Q1
Next State
J0 = Q1'Q0' Current State Output
Q1next Q0next
K0 = CQ0 Q 1Q 0
C=0 C=1 a b
Characteristic equation for the JK flip-flop: 00 01 11 0 0
Qnext = K'Q + JQ' 01 11 00 1 0
10 00 10 0 0
Next-state equations: 11 01 10 0 1
Q1next = K1'Q1 + J1Q1'
= (C'Q1)'Q1 + (CQ1'Q0' + C'Q1'Q0)Q1'
= (C+Q1' )Q1 + CQ1'Q0' + C'Q1'Q0
= CQ1 + CQ1'Q0' + C'Q1'Q0
00
Q0next = K0'Q0 + J0Q0' ab=00 C=0
C=1
= (CQ0)'Q0 + (Q1'Q0' )Q0'
= (C' +Q0' )Q0 + Q1'Q0' C=1
C=0
= C'Q0 + Q1'Q0'
11 01
ab=01 C=0 ab=10
Output equations:
a = Q1'Q0 C=0
b = Q 1Q 0 C=1 C=1
10
ab=00
(b)
Excitation equations:
S1 = CQ1'Q0' + C'Q1'Q0
R1 = C'Q1
Next State
S0 = Q1'Q0' Current State
Q1next Q0next
R0 = CQ0 Q 1Q 0
C=0 C=1
Characteristic equation for the SR flip-flop: 00 01 11
Qnext = S + R'Q 01 11 00
10 00 10
Next-state equations: 11 01 10
Q1next = S1 + R1'Q1
= CQ1'Q0' + C'Q1'Q0 + (C'Q1)'Q1
= CQ1'Q0' + C'Q1'Q0 + (C + Q1' )Q1
= CQ1'Q0' + C'Q1'Q0 + CQ1 + Q1'Q1
= CQ1'Q0' + C'Q1'Q0 + CQ1 00
ab=00 C=0
C=1
Q0next = S0 + R0'Q0
= Q1'Q0' + (CQ0)'Q0 C=1
C=0
= Q1'Q0' + (C' + Q0' )Q0
= Q1'Q0' + C'Q0 + Q0'Q0 11 01
ab=01 C=0 ab=10
= Q1'Q0' + C'Q0
C=0
Output equations: C=1 C=1
a = Q1'Q0 10
b = Q 1Q 0 ab=00
(c)
81
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Excitation equations:
S1 = CQ1'Q0' + C'Q1'Q0
R1 = C'Q1
Next State
J0 = Q1'Q0' Current State
Q1next Q0next
K0 = CQ0 Q 1Q 0
C=0 C=1
Characteristic equation for the SR flip-flop: 00 01 11
Qnext = S + R'Q 01 11 00
10 00 10
Characteristic equation for the JK flip-flop: 11 01 10
Qnext = K'Q + JQ'
Next-state equations:
Q1next = S1 + R1'Q1
= CQ1'Q0' + C'Q1'Q0 + (C'Q1)'Q1
= CQ1'Q0' + C'Q1'Q0 + (C + Q1' )Q1 00
= CQ1'Q0' + C'Q1'Q0 + CQ1 + Q1'Q1 ab=00 C=0
C=1
= CQ1'Q0' + C'Q1'Q0 + CQ1
C=0 C=1
Q0next = K0'Q0 + J0Q0'
= (CQ0)'Q0 + (Q1'Q0' )Q0' 11 01
ab=01 C=0 ab=10
= (C' +Q0' )Q0 + Q1'Q0'
= C'Q0 + Q1'Q0' C=0
C=1 C=1
Output equations: 10
a = Q1'Q0 ab=00
b = Q 1Q 0
(d)
6.3.
Next-state (Implementation) table: Excitation equations:
D1
Next State
Current Q1Q0
(Implementation) A 00 01 11 10
State
Q1next Q0next (D1 D0)
Q 1Q 0 0 1
A=0 A=1
00 11 10 1 1 1 1
01 01 11
10 01 01 Q1next = D1 = Q1'Q0' + AQ0
11 00 10
D0
Q1Q0
A 00 01 11 10
0 1 1 1
1 1 1
82
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
A
D1 Q1
Clk
Q'1
Clear
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(a)
83
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Next-state (Implementation) table: Next-state/Excitation equations:
Q1next = D1 = (Z ≠ 0)' + Q0
Next State Q0next = D0 = Q1 + Q0'
Current
(Implementation)
State
Q1next Q0next (D1 D0) Output equations:
Q 1Q 0
(Z ≠ 0)' (Z ≠ 0) YLoad = Q1'Q0'
00 11 01 XLoad = Q1'Q0
01 10 10 Zmux = Q1'Q0'
10 11 01 out = Q1Q0'
11 11 11
(Z ≠ 0)
YLoad
D1 Q1
Clk Zmux
Clear
Q'1 XLoad
out
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(e)
84
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
C
X
D2 Q2
Clk
Q'2
Clear
D1 Q1
Clk
Q'1
Clear
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(f)
01 1 1 1 1 01
11 11 1 1
10 1 1 1 1 10 1 1 1 1
85
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
D0
(x = 0)(x = y)
Q1Q0 00 01 11 10
00 1 1
01 1 1 1 1
11 1 1
10 1 1 1 1
(x = 0) (x = y)
D1 Q1
Clk
Clear
Q'1 A
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(g)
6.4.
State diagram: Next-state (Implementation) table:
Count, Up = 0× 0×
10 Next State (Implementation)
Current State Q1next Q0next (D1 D0)
00 01 Q1 Q0 Count, Up =
11 00 01 10 11
00 00 00 11 01
10 11 11 10 01 01 01 00 10
10 10 10 01 11
11
11 11 11 10 00
11 10
0× 10
0×
86
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Next-state/Excitation equations:
D1 D0
Count, Up Count, Up
Q1Q0 00 01 11 10 Q1Q0 00 01 11 10
00 1 00 1 1
01 1 01 1 1
11 1 1 1 11 1 1
10 1 1 1 10 1 1
Count Up
D1 Q1 Q1
Clk
Q'1
Clear
D0 Q0 Q0
Clk
Q'0
Clear
Clock
Reset
6.5.
State diagram: Next-state (Implementation) table:
0
Count = 0 Next State (Implementation)
1 Current State Q2next Q1next Q0next (D2 D1 D0)
001 Q2 Q1 Q0 Count =
000 1 0 1
0 000 000 001
001 001 010
1 010
010 010 011
011 011 100
1 100 100 000
100
011
1 Next State/Excitation equations:
0
Q2next = D2 = Count'Q2 + CountQ2'Q1Q0
0 Q1next = D1 = Count'Q1 + Count(Q1 ⊕ Q0)
Q0next = D0 = Count'Q0 + CountQ2'Q0'
87
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Count
D2 Q2 Q2
Clk
Q'2
Clear
D1 Q1 Q1
Clk
Q'1
Clear
D0 Q0 Q0
Clk
Q'0
Clear
Clock
Reset
6.6.
State diagram: Next State (Implementation) table:
0×
Count, Up = 0× Next State (Implementation)
11 Current State Q2next Q1next Q0next (D2 D1 D0)
001 Q2 Q1 Q0 Count, Up =
000 11 00 01 10 11
10 0× 000 000 000 100 001
10
001 001 001 000 010
11 10 010
010 010 010 001 011
10
011 011 011 010 100
10 11 100 100 100 011 000
100
011
11
0×
0×
Next State/Excitation equations:
Q2next = D2 = Count'Q2 + CountUp'Q2'Q1'Q0' + CountUpQ2'Q1Q0
Q1next = D1 = Count'Q1 + CountUp'Q1Q0 + CountUp'Q2 + CountUp(Q1 ⊕ Q0)
Q0next = D0 = Count'Q0 + CountUp'Q1Q0' + CountUp'Q2 + CountUpQ2'Q0'
88
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Count Up
D2 Q2 Q2
Clk
Q'2
Clear
D1 Q1 Q1
Clk
Q'1
Clear
D0 Q0 Q0
Clk
Q'0
Clear
Clock
Reset
6.7.
Since we’re using the flip-flop content to represent the count and the largest number is 7, we need three (3) bits
even though there are only four numbers in the sequence.
89
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
C
D2 Q2 Q2
Clk
Q'2
Clear
'1' D1 Q1 Q1
Clk
Q'1
Clear
D0 Q0 Q0
Clk
Q'0
Clear
Clock
Reset
90
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6.8.
State diagram: Next-state (Implementation) table:
C=0 0
1 Next State (Implementation)
Current State Q2next Q1next Q0next (D2 D1 D0)
001 100 Q2 Q1 Q0 C=
0 1
000 ××× ×××
1 1 001 001 100
010 ××× ×××
011 ××× ×××
111 110
100 100 110
1 101 ××× ×××
0
0 110 110 111
111 111 001
Next State/Excitation equations:
D2 D1 D0
Q0C Q0C Q0C
Q2Q1 00 01 11 10 Q2Q1 00 01 11 10 Q2Q1 00 01 11 10
00 × × 1 00 × × 00 × × 1
01 × × × × 01 × × × × 01 × × × ×
11 1 1 1 11 1 1 1 11 1 1 1
10 1 1 × × 10 1 × × 10 × ×
Q2next = D2 = CQ2' + Q2Q0' + C'Q2 Q1next = D1 = CQ0' + Q1Q0' + C'Q1 Q0next = D0 = CQ1 + C'Q0
D2 Q2 Q2
Clk
Q'2
Clear
D1 Q1 Q1
Clk
Q'1
Clear
D0 Q0 Q0
Clk
Q'0
Clear
Clock
Reset
91
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6.9.
Next-state (Implementation) table:
Keypressed'
Next State
s0 s1 Current (Implementation)
Keypressed Output Oneshot
00 01 State Q1nextQ0next (D1D0)
Q 1Q 0 Keypressed
0 1
00 00 01
01 10 10
Unused Keypressed' s2
Keypressed 10 00 10
11 10
11 Unused 00 00
Excitation equations:
D1 = Q1'Q0 + Keypressed(Q1 ⊕ Q0)
D0 = KeypressedQ1'Q0'
Keypressed
D1 Q1
Clk
Q'1
Clear Oneshot
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(a)
Excitation equations:
D3 = 0 D1 = KeypressedQ0
D2 = Q1 + KeypressedQ2 D0 = Keypressed'(Q0 + Q2) + Q3
92
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Keypressed
'0' D3 Q3
Clk
Q'3
Clear
D2 Q2
Clk
Q'2 LoadN
Clear
D1 Q1
Clk
Q'1
Clear
D0 Q0
Clk
Q'0
Clear
Clock
Reset
(b)
6.10.
From the next-state equations, we derive the following next-state table
Next State
Current State
Q2next Q1next Q0next
Q 2Q 1Q 0
(C = 0) (C = 1)
000 000 001
001 001 010
010 010 011
011 011 100
100 100 101
101 101 000
110 110 111
111 111 100
From current state 110, the next state is 110 when C = 0, and 111 when C = 1.
From current state 111, the next state is 111 when C = 0, and 100 when C = 1.
6.11.
This FSM is like a modulo-6 up counter. Each count will turn on one LED segment.
93
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
000 001 Current State Next State (Implementation)
Q2 Q1 Q0 Q2next Q1next Q0next (D2 D1 D0)
000 001
001 010
101 010 010 011
011 100
100 101
101 000
100 011
Excitation equations:
D 2 = Q 1Q 0 + Q 2Q 0'
D1 = Q2'(Q1 ⊕ Q0)
D 0 = Q 0' a
D2 Q2 b
Clk c
Q'2
Clear d
e
D1 Q1 f
Clk
Q'1
Clear
D0 Q0
Clk
Q'0
Clear
Clock
Reset
6.12.
This FSM is the same as for Problem 6.10. The only difference is that each output signal will connect to two
LED segments—one per display. The segments on display 1 will go in a clockwise direction; whereas, the
segments on display 2 will go in a counterclockwise direction.
94
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
display1_a
D2 Q2 display2_a
Clk display1_b
Q'2
Clear display2_f
display1_c
D1 Q1 display2_e
Clk display1_d
Q'1
Clear display2_d
display1_e
D0 Q0 display2_c
Clk display1_f
Q'0
Clear display2_b
Clock
Reset
6.13.
First, we need a FSM with two states to remember which direction the LEDs are rotating. This FSM will change
state when the switch is pressed. (This is actually just the T flip-flop.) The state output of this FSM is the
direction signal input to a modulo-6 up-down counter FSM. The outputs to this second up-down counter FSM
will connect to the six LEDs.
T flip-flop
T=0 T Q Qnext Qnext'
T=1
0 0 0 1
Q=0 Q=1 0 1 1 0
T=0 1 0 1 0
T=1 1 1 0 1
T
D Q Q
Clk Clk
Q' Q'
Connect the Q output of the T flip-flop to the direction input signal of the modulo-6 up-down counter.
95
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6.15.
T3'T2'T1'
T3'T2T1
T3T2'T1 Next state (Implementation)
T3 T2 T1 ' Current Q1next Q0next (D1 D0)
T3 T2 T1 state T3 T2 T1
Q1 Q0
00 000 001 010 011 100 101 110 111
00 00 01 10 00 11 00 00 00
T3'T2'T1 T3T2'T1' 01 01 01 01 01 01 01 01 01
10 10 10 10 10 10 10 10 10
T3'T2T1' 11 11 11 11 11 11 11 11 11
01 10 11
T 3 T2 T1
L1
D1 Q1
L2
Clk
Clear
Q'1 L3
D0 Q0
Clk
Q'0
Clear
Reset
Clock
96
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6.16.
Moore and Mealy state diagrams:
at4
led4=1 going to led4=1
at4'
go=000 floor 4
at4
4 4b (f1+e1)at1' (f2+e2)at2' (f3+e3)at3'
4
go=111 go=100 go=101 go=110
at floor 4 at floor 4
f1+e1 f2+e2 f3+e3
(f3+e3)at3 (f4+e4)at4
led3=1 led4=1
go=000 go=000
at3
led3=1 going to led3=1
f4+e4 at3' (f4+e4)at4
go=000 floor 3
led4=1
at3 (f1+e1)at1 go=000
3 3b (f1+e1)at1' (f2+e2)at2' (f4+e4)at4'
led1=1 3
go=100 go=101 go=111
f1+e1 go=110 go=000 at floor 3
at floor 3
f2+e2 (f2+e2)at2
led2=1
go=000
(f2+e2)at2 (f3+e3)at3
led2=1 led3=1
go=000 go=000
(f4+e4)at4
led4=1
go=000 at2
f4+e4 going to led2=1
led2=1 floor 2 at ' (f1+e1)at1
go=000 f3+e3
2 led1=1
at2 go=000
(f1+e1)at1' (f3+e3)at3' (f4+e4)at4'
2 2b 2
go=100 go=110 go=111
go=101 at floor 2
at floor 2 f1+e1
(f3+e3)at3
led3=1
go=000
(f1+e1)at1 (f2+e2)at2
led1=1 led2=1
go=000 go=000
f3+e3 at1
f4+e4
going to led1=1
led1=1 floor 1
f2+e2 at1'
go=000
at1 (f2+e2)at2' (f3+e3)at3' (f4+e4)at4'
1
1 1b go=101 go=110 go=111
at floor 1
go=100
at floor 1
Current Q2nextQ1nextQ0next
State
atn
f4 f3 f2 f1
Q2Q1Q0 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1
000
000 000 011 000 101 000 000 000 111 000 000 000 000 000 000 000
(1)
001 001 000
(1b) (at1') (at1)
010
010 001 010 010 101 010 010 010 111 010 010 010 010 010 010 010
(2)
011 011 010
(2b) (at2') (at2)
100
100 001 011 100 100 100 100 100 111 100 100 100 100 100 100 100
(3)
101 101 100
(3b) (at3') (at3)
110
110 001 011 110 101 110 110 110 110 110 110 110 110 110 110 110
(4)
111 111 110
(4b) (at4') (at4)
97
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Next-state equations:
Q1next = (Q0'(f4'f3'f2f1'))
| Q0'(f4f3'f2'f1')
| (Q1Q0'(f3(f2| f1) + f3'f2 + f3'f1' + f4))
| (Q1Q0
Q0next = (Q1'Q0'(f4'f3'f2f1'))
| (Q1'Q0'(f4f3'f2'f1'))
| (Q2'Q0'(f4'f3f2'f1'))
| (Q1Q0'(f4'f3'f2'f1))
| (Q2'Q0'(f4f3'f2'f1'))
| (Q2Q0'(f4'f3'f2'f1))
| (Q2'Q1'Q0(at1'))
| (Q2'Q1Q0(at2'))
| (Q2Q1'Q0(at3'))
| (Q2Q1Q0(at4'))
= (Q1'Q0'(f3'f1'(f4 ⊕ f2)))
| (Q2'Q0'(f2'f1'(f4 ⊕ f3)))
| (Q1Q0'(f4'f3'f2'f1))
| (Q2Q0'(f4'f3'f2'f1))
| (Q2'Q1'Q0(at1'))
| (Q2'Q1Q0(at2'))
| (Q2Q1'Q0(at3'))
| (Q2Q1Q0(at4'))
Output table:
Current State
go2-0 led4-1
Q2Q1Q0
000 (1) 0×× 0001
001 (1b) 100 0000
010 (2) 0×× 0010
011 (2b) 101 0000
100 (3) 0×× 0100
101 (3b) 110 0000
110 (4) 0×× 1000
111 (4b) 111 0000
Output equations:
go2 = Q0
go1 = Q2Q0
98
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
go0 = Q1Q0
led1 = Q2'Q1'Q0'
led2 = Q2'Q1Q0'
led3 = Q2Q1'Q0'
led4 = Q2Q1Q0'
6.17.
111
R R
R 110
000
s_init
R
R R
001
C s_wait MS 101
R R s_m2
MM=1
FS FS'
010 MS' 011 100
s_front R' s_motion s_m1
When multiple switches are pressed at the same time, we will assume that R has priority over FS, which in turn
has priority over MS.
99
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
100
© 2018 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Another random document with
no related content on Scribd:
(Larger)
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.