Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Problem Solutions
7.1. Excitation and output expressions:
- + y
J1 = xQ
2
- + x
-Q
K1 = yQ
2
2
-J2 = x
y
K2 = xy + Q1
-z = Q 1Q2 + x
Q1
Excitation table:
Present state
(Q1Q2)
Excitation
(J1K1,J2K2)
Inputs (xy)
Output
(z)
Inputs (xy)
00
01
10
11
00
01
10
11
00
00,10
11,00
10,00
11,01
01
01,10
11,00
00,00
10,01
10
00,11
11,01
10,01
11,01
11
01,11
11,01
00,01
10,01
Transition table:
Present state
(Q1Q2)
Next state
+
(Q+
1Q2)
Output
(z)
Inputs (xy)
00 01 10 11
Inputs (xy)
00 01 10 11
00
01
10
10
10
01
01
11
01
10
10
11
00
10
00
11
00
00
10
10
- 7.1 -
7.1. (continued)
State table:
Present state
Next state
Output
(z)
Inputs (xy)
Inputs (xy)
00
01
10
11
00
01
10
11
00 A
01 B
10 C
11 D
State diagram:
- 7.2 -
Excitation
(D1D2)
Output
(z)
Input (x)
0
1
00
00
01
01
11
00
10
00
00
11
10
00
Next state
+
(Q+
1Q2)
Output
(z)
Input (x)
0
00
00
01
01
11
00
10
00
00
11
10
00
- 7.3 -
7.2. (continued)
State table:
Present state
Next state
Output
(z)
Input (x)
0
00 A
01 B
10 C
11 D
State diagram:
- 7.4 -
Excitation
(T1T2)
Output
(z1z2)
Input (x)
Input (x)
00
00
01
00
10
01
11
11
01
10
10
00
01
00
00
11
00
11
01
00
Transition table:
Present state
(Q1Q2)
Next state
+
(Q+
1Q2)
Output
(z1z2)
Input (x)
0
1
Input (x)
0
1
00
00
01
00
10
01
10
10
01
10
10
10
11
00
00
11
11
00
01
00
- 7.5 -
7.3. (continued)
State table:
Present state
Next state
Output
(z1z2)
Input (x)
Input (x)
00 A
00
10
01 B
01
10
10 C
00
00
11 D
01
00
State diagram:
- 7.6 -
- +Q
D2 = x(Q
1 2)
-Q
z = Q2 + x
1
Excitation table:
Present state
(Q1Q2)
Excitation
(J1K1,D2)
Output
(z)
Input (x)
Input (x)
00
00,0
01,1
01
10,0
11,1
10
00,0
01,1
11
10,0
11,0
Transition table:
Present state
(Q1Q2)
Next state
+
(Q+
1Q2)
Output
(z)
Input (x)
0
1
Input (x)
0
1
00
00
01
01
10
11
10
10
01
11
10
00
- 7.7 -
7.4. (continued)
State table:
Present state
Next state
Output
(z)
Input (x)
Input (x)
00 A
01 B
10 C
11 D
State diagram:
- 7.8 -
7.5.
A: A multiple of three 1's have occurred (where none is a
multiple of three).
B: One greater than a multiple of three 1's have occurred.
C: Two 1's greater than a multiple of three 1's have
occurred.
Present state
Next state
Output
(z)
Input (x)
Input (x)
* A
7.6.
A: Last input was 0.
B: One 1 has occurred.
C: Two consecutive 1's have occurred.
D: Three consecutive 1's have occurred.
E: More than three consecutive 1's have occurred.
Present state
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
* A
- 7.9 -
7.7.
A: Waiting for a single 0 (or, equivalently, 1's occurring
after more than one 0 has occurred).
B: Exactly one 0 has occurred.
C: Two or more consecutive 0's have occurred.
D: 1's occurring after exactly one 0.
Present state
Next state
Output
(z)
Input (x)
Input (x)
* A
- 7.10 -
7.8.
Present
state
State definition
Number
of inputs
Number
of 1's
Number
of 0's
Next state
Output
(z)
Input (x)
Input (x)
* A
- 7.11 -
7.9.
Present
state
State definition
Next state
Output
(z)
Input (x)
Input (x)
* A
- 7.12 -
7.10. (a)
Present
state
State definition
Next state
Output
(z)
Input (x)
Input (x)
* A
- )
b4 bit was 1 (b3=g
3
- )
b3 bit was 1 (b2=g
2
- )
b2 bit was 1 (b1=g
1
- )
b1 bit was 1 (b0=g
0
- 7.13 -
7.10. (continued)
(b) In problem 3.34 it was established that the algorithm
to convert an n-bit binary number bn-1bn-2...b1b0 into
its equivalent n-bit Gray code gn-1gn-2...g1g0 is
gn-1 = bn-1
gk-1 = bk bk-1
for n-1k1
Present
state
State definition
Awaiting 1st bit of
sequence (g4=b4)
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
* A
- 7.14 -
7.11.
State definition
QA
QB
QC
Present
state
Next state
Output
(QAQBQC)
Input (x)
0
* A
000
100
010
110
001
101
011
111
7.12.
A: Even number of 1's have occurred, current output should
be 0.
B: Odd number of 1's have occurred, current output should
be 0.
C: Even number of 1's have occurred, current output should
be 1.
D: Odd number of 1's have occurred, current output should
be 1.
Present state
Next state
Output
(z)
Input (x)
Input (x)
* A
- 7.15 -
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
* A
is:
Present state
Next state
Output
(z)
Input (x)
Input (x)
(A,D): * 1
(B):
(C):
- 7.16 -
7.14.
A: Waiting for the first 1 in a sequence of 1's.
B: One 1 has occurred.
C: Two 1's have occurred.
D: Three or more 1's have occurred.
Present state
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
* A
7.15. Let the present state denote the previous three inputs,
i.e., xt-3, xt-2, and xt-1 where xt-i is the input at time
i.
State definition
Present
state
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
xt-3
xt-2
xt-1
* A
- 7.17 -
7.16. Using the same approach as the previous problem, the state
table is:
Present
state
State definition
xt-3
xt-2
xt-1
Next state
Output
(z)
Input (x)
Input (x)
* A
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
(A,E): * 1
(B,F):
(C,G):
(D,H):
- 7.18 -
The
7.17. (a)
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
(A,E,H): * 1
(B,F):
(C,G,I):
(D):
- 7.19 -
7.17. (continued)
(b)
Next state
Output
(z)
Input (x)
0
1
Input (x)
0
1
(A,C,E): * 1
(B,G):
(D):
(F):
(H):
- 7.20 -
7.18.
Next state
Output
(z)
Input (x)
0
(A,E,F): * 1
(B,G):
(C,H):
(D):
- 7.21 -
Next state
+
(Q+
1Q2)
Output
(z)
Input (x)
0
1
Input (x)
0
1
A 00
01
10
B 01
00
00
C 10
11
00
D 11
00
11
- 7.22 -
7.19. (continued)
(b) Excitation table:
Present state
(Q1Q2)
Excitation
(J1K1,J2K2)
Input (x)
Output
(z)
Input (x)
00
0-,1-
1-,0-
01
0-,-1
0-,-1
10
-0,1-
-1,0-
11
-1,-1
-0,-0
The output map and expression are the same as part (a).
- 7.23 -
7.19. (continued)
(c) Excitation table:
Present state
(Q1Q2)
Excitation
(T1T2)
Output
(z)
Input (x)
Input (x)
00
01
10
01
01
01
10
01
10
11
11
00
The output map and expression are the same as part (a).
- 7.24 -
7.19. (continued)
(d) Excitation table:
Present state
(Q1Q2)
Excitation
(S1R1,S2R2)
Input (x)
Output
(z)
Input (x)
00
0-,10
10,0-
01
0-,01
0-,01
10
-0,10
01,0-
11
01,01
-0,-0
The output map and expression are the same as part (a).
- 7.25 -
Transition table:
Present state
(Q1Q2)
Next state
+
(Q+
1Q2)
Output
(z)
Input (x)
0
1
Input (x)
0
1
A 00
11
10
B 11
00
00
C 10
01
00
D 01
00
01
- 7.26 -
7.20. (continued)
(a) The excitation table is the same as the transition
table where Di=Q+
i.
- 7.27 -
7.20. (continued)
(b) Excitation table:
Present state
(Q1Q2)
Excitation
(J1K1,J2K2)
Input (x)
Output
(z)
Input (x)
00
1-,1-
1-,0-
11
-1,-1
-1,-1
10
-1,1-
-1,0-
01
0-,-1
0-,-0
The output map and expression are the same as part (a).
- 7.28 -
7.20. (continued)
(c) Excitation table:
Present state
(Q1Q2)
Excitation
(T1T2)
Output
(z)
Input (x)
Input (x)
00
11
10
11
11
11
10
11
10
01
01
00
The output map and expression are the same as part (a).
- 7.29 -
7.20. (continued)
(d) Excitation table:
Present state
(Q1Q2)
Excitation
(S1R1,S2R2)
Input (x)
Output
(z)
Input (x)
00
10,10
10,0-
11
01,01
01,01
10
01,10
01,0-
01
0-,01
0-,-0
The output map and expression are the same as part (a).
- 7.30 -
Next state
+
(Q+
1Q2)
Output
(z)
Input (x)
0
1
A 00
00
01
B 01
10
00
C 10
00
11
D 11
10
10
- 7.31 -
7.21. (continued)
(b) Excitation table:
Present state
(Q1Q2)
Excitation
(J1K1,J2K2)
Input (x)
Output
(z)
00
0-,0-
0-,1-
01
1-,-1
0-,-1
10
-1,0-
-0,1-
11
-0,-1
-0,-1
The output map and expression are the same as part (a).
- 7.32 -
7.21. (continued)
(c) Excitation table:
Present state
(Q1Q2)
Excitation
(T1T2)
Output
(z)
Input (x)
0
00
00
01
01
11
01
10
10
01
11
01
01
The output map and expression are the same as part (a).
- 7.33 -
7.21. (continued)
(d) Excitation table:
Present state
(Q1Q2)
Excitation
(S1R1,S2R2)
Input (x)
Output
(z)
00
0-,0-
0-,10
01
10,01
0-,01
10
01,0-
-0,10
11
-0,01
-0,01
The output map and expression are the same as part (a).
- 7.34 -
Next State
+ +
(Q+
1Q2Q3)
Output
(z)
Input (x)
0
1
Input (x)
0
1
A 000
001
000
B 001
000
010
C 010
011
000
D 011
011
100
E 100
010
011
- 7.35 -
7.22. (continued)
Excitation
(J1K1,J2K2,J3K3)
Input (x)
Output
(z)
Input (x)
000
0-,0-,1-
0-,0-,0-
001
0-,0-,-1
0-,1-,-1
010
0-,-0,1-
0-,-1,0-
011
0-,-0,-0
1-,-1,-1
100
-1,1-,0-
-1,1-,1-
- 7.36 -
7.22. (continued)
- 7.37 -
7.22. (continued)
The output map and expression are the same as part (a).
Excitation
(T1T2T3)
Output
(z)
Input (x)
Input (x)
000
001
000
001
001
011
010
001
010
011
000
111
100
110
111
- 7.38 -
7.22. (continued)
The output map and expression are the same as part (a).
- 7.39 -
7.22. (continued)
(d) Excitation table:
Present state
(Q1Q2Q3)
Excitation
(S1R1,S2R2,S3R3)
Input (x)
Output
(z)
Input (x)
000
0-,0-,10
0-,0-,0-
001
0-,0-,01
0-,10,01
010
0-,-0,10
0-,01,0-
011
0-,-0,-0
10,01,01
100
01,10,0-
01,10,10
- 7.40 -
7.22. (continued)
The output map and expression are the same as part (a).
- 7.41 -
Transition table:
Present State
(Q1Q2Q3)
Next State
+ +
(Q+
1Q2Q3)
Output
(z)
Input (x)
Input (x)
A 000
001
000
B 001
000
100
C 100
101
000
D 101
101
111
E 111
100
101
- 7.42 -
7.23. (continued)
(a) The excitation table is the same as the transition
table where Di=Q+
i.
- 7.43 -
7.23. (continued)
(b) Excitation table:
Present state
(Q1Q2Q3)
Excitation
(J1K1,J2K2,J3K3)
Input (x)
Output
(z)
Input (x)
000
0-,0-,1-
0-,0-,0-
001
0-,0-,-1
1-,0-,-1
100
-0,0-,1-
-1,0-,0-
101
-0,0-,-0
-0,1-,-0
111
-0,-1,-1
-0,-1,-0
- 7.44 -
7.23. (continued)
The output map and expression are the same as part (a).
- 7.45 -
7.23. (continued)
(c) Excitation table:
Present State
(Q1Q2Q3)
Excitation
(T1T2T3)
Output
(z)
Input (x)
Input (x)
000
001
000
001
001
101
100
001
100
101
000
010
111
011
010
- 7.46 -
7.23. (continued)
The output map and expression are the same as part (a).
Excitation
(S1R1,S2R2,S3R3)
Input (x)
0
1
Output
(z)
Input (x)
0
1
000
0-,0-,10
0-,0-,0-
001
0-,0-,01
10,0-,01
100
-0,0-,10
01,0-,0-
101
-0,0-,-0
-0,10,-0
111
-0,01,01
-0,01,-0
- 7.47 -
7.23. (continued)
- 7.48 -
7.23. (continued)
The output map and expression are the same as part (a).
Next State
+ +
(Q+
1Q2Q3)
Output
(z)
Input (x)
0
A 000
000
001
B 001
010
101
C 010
011
000
D 011
100
010
E 100
011
101
F 101
100
011
- 7.49 -
7.24. (continued)
The excitation table is the same as the transition
table where Di=Q+
i.
- 7.50 -
7.24. (continued)
(b) Adjacency conditions to be satisfied:
Rule I: (C,E), (D,F), (B,E)
Rule II: (A,B), (C,F), (A,D), (C,E), (D,F), (D,E)
Rule III: (C,F)
State assignment map:
Transition table:
Present State
(Q1Q2Q3)
Next State
+ +
(Q+
1Q2Q3)
Output
(z)
Input (x)
0
A 000
000
001
B 001
111
110
C 111
010
000
D 010
011
111
E 011
010
110
F 110
011
010
- 7.51 -
7.24. (continued)
The excitation table is the same as the transition
table where Di=Q+
i.
- 7.52 -
Next State
+ +
(Q+
1Q2Q3)
Output
(z)
Input (x)
0
1
A 000
000
001
B 001
010
101
C 010
011
000
D 011
100
010
E 100
011
101
F 101
100
011
Excitation table:
Present state
(Q1Q2Q3)
Excitation
(J1K1,J2K2,J3K3)
Output
(z)
Input (x)
0
000
0-,0-,0-
0-,0-,1-
001
0-,1-,-1
1-,0-,-0
010
0-,-0,1-
0-,-1,0-
011
1-,-1,-1
0-,-0,-1
100
-1,1-,1-
-0,0-,1-
101
-0,0-,-1
-1,1-,-0
- 7.53 -
7.25. (continued)
- 7.54 -
7.25. (continued)
- 7.55 -
7.25. (continued)
(b) Use the state assignment established in Problem
7.24(b).
Excitation table:
Present state
(Q1Q2Q3)
Excitation
(J1K1,J2K2,J3K3)
Input (x)
0
1
Output
(z)
000
0-,0-,0-
0-,0-,1-
001
1-,1-,-0
1-,1-,-1
111
-1,-0,-1
-1,-1,-1
010
0-,-0,1-
1-,-0,1-
011
0-,-0,-1
1-,-0,-1
110
-1,-0,1-
-1,-0,0-
- 7.56 -
7.25. (continued)
- 7.57 -