Skip to content
Official PYQ · 2021

GATE CS 2021 Set 1 Q28 — Sequential Circuits

Explain with AI

Consider a 33-bit counter, designed using TT flip-flops, as shown below:

Assuming the initial state of the counter given by PQR\text{PQR} as 000000, what are the next three states?

Choose one option
View worked solution

Answer: A

From the given circuit diagram, we can derive the input equations for the three TT flip-flops as follows:

  • TP=Q+RT_P = Q + R
  • TQ=P‾T_Q = \overline{P}
  • TR=Q‾T_R = \overline{Q}

The next state of a TT flip-flop is given by the characteristic equation: Qnext=Q⊕TQ_{next} = Q \oplus T. Let us trace the states starting from the initial state PQR=000PQR = 000:

  1. Initial State PQR=000PQR = 000:
    • TP=0+0=0  ⟹  Pnext=0⊕0=0T_P = 0 + 0 = 0 \implies P_{next} = 0 \oplus 0 = 0
    • TQ=0‾=1  ⟹  Qnext=0⊕1=1T_Q = \overline{0} = 1 \implies Q_{next} = 0 \oplus 1 = 1
    • TR=0‾=1  ⟹  Rnext=0⊕1=1T_R = \overline{0} = 1 \implies R_{next} = 0 \oplus 1 = 1
    • Next State 1: 011011
  2. Current State PQR=011PQR = 011:
    • TP=1+1=1  ⟹  Pnext=0⊕1=1T_P = 1 + 1 = 1 \implies P_{next} = 0 \oplus 1 = 1
    • TQ=0‾=1  ⟹  Qnext=1⊕1=0T_Q = \overline{0} = 1 \implies Q_{next} = 1 \oplus 1 = 0
    • TR=1‾=0  ⟹  Rnext=1⊕0=1T_R = \overline{1} = 0 \implies R_{next} = 1 \oplus 0 = 1
    • Next State 2: 101101
  3. Current State PQR=101PQR = 101:
    • TP=0+1=1  ⟹  Pnext=1⊕1=0T_P = 0 + 1 = 1 \implies P_{next} = 1 \oplus 1 = 0
    • TQ=1‾=0  ⟹  Qnext=0⊕0=0T_Q = \overline{1} = 0 \implies Q_{next} = 0 \oplus 0 = 0
    • TR=0‾=1  ⟹  Rnext=1⊕1=0T_R = \overline{0} = 1 \implies R_{next} = 1 \oplus 1 = 0
    • Next State 3: 000000

Thus, the next three states of the counter are 011,101,000011, 101, 000.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sequential Circuits questions