Question

Synchronous sequential circuit built using three JK flip-flops Q2, Q1, and Q0 with feedback logic
Synchronous sequential circuit using JK flip-flops

The above synchronous sequential circuit built using JK flip-flops is initialized with Q2Q1Q0=000Q_2 Q_1 Q_0 = 000. The state sequence for this circuit for the next 3 clock cycles is

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2014 answer key

Solution

Write the Boolean flip-flop input equations from the schematic and trace state transitions for 3 consecutive clock cycles.

  1. Determine Flip-Flop Inputs from Circuit:
    From the schematic diagram:

    • Flip-flop 2 (Q2Q_2):
      J2=Q1‾,K2=Q0J_2 = \overline{Q_1},\quad K_2 = Q_0
    • Flip-flop 1 (Q1Q_1):
      J1=Q2,K1=Q2‾J_1 = Q_2,\quad K_1 = \overline{Q_2}
      Notice that J1=Q2J_1 = Q_2 and K1=Q2‾K_1 = \overline{Q_2} means Q1Q_1 acts as a D flip-flop with input D1=Q2D_1 = Q_2, so Q1+=Q2Q_1^+ = Q_2.
    • Flip-flop 0 (Q0Q_0):
      J0=Q1,K0=Q0‾J_0 = Q_1,\quad K_0 = \overline{Q_0}
  2. JK Flip-Flop Characteristic Equation:

    Q+=JQ‾+K‾Q.Q^+ = J\overline{Q} + \overline{K}Q.
  3. Clock-by-Clock Trace from Initial State Q2Q1Q0=000Q_2 Q_1 Q_0 = 000:

    • Clock Cycle 1 (State 000):

      • Inputs:
        J2=0‾=1,  K2=0  ⟹  Q2+=1J_2 = \overline{0} = 1,\; K_2 = 0 \implies Q_2^+ = 1.
        J1=0,  K1=0‾=1  ⟹  Q1+=0J_1 = 0,\; K_1 = \overline{0} = 1 \implies Q_1^+ = 0.
        J0=0,  K0=0‾=1  ⟹  Q0+=0J_0 = 0,\; K_0 = \overline{0} = 1 \implies Q_0^+ = 0.
      • Next state after cycle 1: 100.
    • Clock Cycle 2 (State 100):

      • Inputs:
        J2=0‾=1,  K2=0  ⟹  Q2+=1J_2 = \overline{0} = 1,\; K_2 = 0 \implies Q_2^+ = 1.
        J1=1,  K1=1‾=0  ⟹  Q1+=1J_1 = 1,\; K_1 = \overline{1} = 0 \implies Q_1^+ = 1.
        J0=0,  K0=0‾=1  ⟹  Q0+=0J_0 = 0,\; K_0 = \overline{0} = 1 \implies Q_0^+ = 0.
      • Next state after cycle 2: 110.
    • Clock Cycle 3 (State 110):

      • Inputs:
        J2=1‾=0,  K2=0  ⟹  Q2+=Q2=1J_2 = \overline{1} = 0,\; K_2 = 0 \implies Q_2^+ = Q_2 = 1 (no change).
        J1=1,  K1=1‾=0  ⟹  Q1+=1J_1 = 1,\; K_1 = \overline{1} = 0 \implies Q_1^+ = 1.
        J0=1,  K0=0‾=1  ⟹  Q0+=1J_0 = 1,\; K_0 = \overline{0} = 1 \implies Q_0^+ = 1 (J=1,K=1J=1, K=1 toggles 0→10 \to 1).
      • Next state after cycle 3: 111.
  4. Thus, the state sequence for the next 3 clock cycles is 100, 110, 111 (option C).

Final answer

C

Common trap

Misidentifying the feedback connection of K2 to Q0 or confusing J and K inputs.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 3
Question
55 of 65, printed as CS Q.45
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.