4. Complete the Sequence Generator

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+.

Q1Q0CTRQ1+Q0+D1D0
0001010
0010101
0100000
0111111
1001111
1010000
1100101
1111010

The K-map rows use Q1Q0 = 00, 01, 11, 10. The columns use CTR = 0, 1.

K-map for D1

Q1Q0 \ CTR01
0010
0101
1101
1010

K-map for D0

Q1Q0 \ CTR01
0001
0101
1110
1010

The simplified equations are:

D1 = Q0'.CTR' + Q0.CTR
   = Q0 ⊙ CTR

D0 = Q1'.CTR + Q1.CTR'
   = Q1 ⊕ CTR