Professional Documents
Culture Documents
COE117 Notes 4 Quiz Compilation PDF
COE117 Notes 4 Quiz Compilation PDF
COE117 Notes 4 Quiz Compilation PDF
Problem 1: Use D-Type flip flops to design a 4 bit counter (A, B, C, D) with the repeated binary sequence 0, 1, 2, 4, 8. Determine the
following. (SET B)
(a) The circuit’s state table. Present state entries should be in ascending order.
Present State Next State FF Inputs
₰ m
A B C D A B C D DA DB DC DD
0 0 0 0 0 0 0 1 0 0 0 0 1
0 0 0 1 0 0 1 0 1 0 0 1 0
0 0 1 0 0 1 0 0 2 0 1 0 0
Excitation Table
0 0 1 1 3 x x x x
for D Flip Flop
0 1 0 0 1 0 0 0 4 1 0 0 0
Q Q(t) Output
0 1 0 1 5 x x x x
0 0 0
0 1 1 0 6 x x x x
0 1 1
0 1 1 1 7 x x x x
1 0 0
1 0 0 0 0 0 0 0 8 0 0 0 0
1 1 1
1 0 0 1 9 x x x x
1 0 1 0 10 x x x x
1 0 1 1 11 x x x x
1 1 0 0 12 x x x x
1 1 0 1 13 x x x x
1 1 1 0 14 x x x x
1 1 1 1 15 x x x x
(b) The flips flop’s input equation in SOP. Show necessary maps and most economical grouping of minterms
For DA: For DB:
CD CD 00 01 11 10
00 01 11 10 AB
AB
00 0 0 x 0 00 0 0 x 1
01 1 x x x 01 0 x x x
11 x x x x 11 x x x x
10 x x x x 10 0 x x x
DA = B DB = C
For DC: For DD:
CD CD
00 01 11 10 00 01 11 10
AB AB
00 0 1 x 0 00 1 0 x 0
01 0 x x x 01 0 x x x
11 x x x x 11 x x x x
10 0 x x x 10 0 x x x
DC = D DD = A’B’C’D’
Register C
C
C3 C2 C1 C0
Reset
Clear Register C
S0
S1
Register A
C
A3 A2 A1 A0 Full Adder
Reset FA
Clear Register A
Input Signal A S0
S1
1111 1010 X
S
Clk Y
Register B
C
Z
C
B3 B2 B1 B0
Reset
Clear Register B Carry
S0
S1
0000 1011
D Q
Reset
011 111
1
011 1 111
0
1 0 1
001 010 011 100
1 1
0 0
001
(a) Show the circuit’s table. Treat unused combinations (if any) as don’t care minterms. Show the present state section entries in
ascending order
Present State Input Next State
A B C X A B C
0 0 0 0 x x x
0 0 0 1 x x x
0 0 1 0 0 0 1
0 0 1 1 0 1 0
0 1 0 0 0 1 1
0 1 0 1 1 0 0
0 1 1 0 0 0 1
0 1 1 1 1 0 0
1 0 0 0 1 0 1
1 0 0 1 1 0 0
1 0 1 0 0 0 1
1 0 1 1 1 0 0
1 1 0 0 x x x
1 1 0 1 x x x
1 1 1 0 x x x
1 1 1 1 x x x
For DC:
CX
00 01 11 10
AB
00 x x 0 1
01 1 0 0 1
11 x x x x
10 1 0 0 1
DC = X’
J K’ Q Remarks
0 1 0 Reset
0 0 Q(t) Retain last state
1 1 Q(t)’ Toggle
1 0 1 Set
J = J input of a JK Flip-Flop
N = K’ input of a JK flip-flop
J N Q Remarks
0 0 0 Reset
0 1 Q(t) Retain last state
1 0 Q’(t) Toggle
1 1 1 Set
FA
X S
Y
C
Z
D Q
Clk
D = XY+XZ+YZ
D = X’Y’Z+X’YZ’+XYZ+XY’Z’
D0 Q0 D1 Q1 D2 Q2 D3 Q3
Clk
State Q0 Q1 Q2 Q3
0 1 0 0 0
1 0 1 0 0
2 0 0 1 0
3 0 0 0 1
4 1 0 0 0
The state is repeated, therefore
No. of State = 4 states
(b) 8-bit counter
D0 Q0 D1 Q1 D2 Q2 D3 Q3 D4 Q4 D5 Q5 D6 Q6 D7 Q7
Clk
State Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7
0 1 0 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0
2 0 0 1 0 0 0 0 0
3 0 0 0 1 0 0 0 0
4 0 0 0 0 1 0 0 0
5 0 0 0 0 0 1 0 0
6 0 0 0 0 0 0 1 0
7 0 0 0 0 0 0 0 1
8 1 0 0 0 0 0 0 0
The state is repeated, therefore
No. of State = 8 states
JA = E KB = E
J3 K3 J2 K2 J1 K1 J0 K0
Clk
Q3 Q2 Q1 Q0
a. Show the content of the circuit for the next 20 clock ticks (initiating clock). Follow the given table below in showing your
answer
Clock (t) Q3 Q2 Q1 Q0
0 0 0 0 1
1 0 0 0 0
2 1 1 1 1
3 1 1 1 0
4 1 1 0 1
5 1 1 0 0
6 1 0 1 1
7 1 0 1 0
8 1 0 0 1
9 1 0 0 0
10 0 1 1 1
11 0 1 1 0
12 0 1 0 1
13 0 1 0 0
14 0 0 1 1
15 0 0 1 0
16 0 0 0 1
17 0 0 0 0
18 1 1 1 1
19 1 1 1 0
20 1 1 0 1
b. How many states can the circuit assume? Must conform with your truth table
The Circuit can assume 16 states.