Loading simulator…
Solution Explanation
The State bus is formed directly from the state-register outputs:
State[1] = Q1
State[0] = Q0
The state diagram is decoded into the following D-flip-flop excitation table. For a D flip-flop, D1 = Q1+ and D0 = Q0+.
Q1 | Q0 | CTR | Q1+ | Q0+ | D1 | D0 |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 | 0 |
The K-map rows use Q1Q0 = 00, 01, 11, 10. The columns use CTR = 0, 1.
K-map for D1
Q1Q0 \ CTR | 0 | 1 |
|---|---|---|
00 | 1 | 0 |
01 | 0 | 1 |
11 | 0 | 1 |
10 | 1 | 0 |
K-map for D0
Q1Q0 \ CTR | 0 | 1 |
|---|---|---|
00 | 0 | 1 |
01 | 0 | 1 |
11 | 1 | 0 |
10 | 1 | 0 |
The simplified equations are:
D1 = Q0'.CTR' + Q0.CTR
= Q0 ⊙ CTR
D0 = Q1'.CTR + Q1.CTR'
= Q1 ⊕ CTR