Question

Consider a combination of T and D flip-flops connected as shown below. The output of the D flip-flop is connected to the input of the T flip-flop and the output of the T flip-flop is connected to the input of the D flip-flop.

Sequential circuit with a T flip-flop on the left with output Q1 and a D flip-flop on the right with output Q0. The output Q0 of the D flip-flop feeds back to the T input of the T flip-flop. The output Q1 of the T flip-flop connects directly to the D input of the D flip-flop. A common clock line drives both flip-flops.

Initially, both Q0Q_0 and Q1Q_1 are set to 1 (before the 1st clock cycle). The outputs

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2017 answer key

Solution

Derive the next-state excitation equations for the interconnected T and D flip-flops and trace the states over 4 clock cycles.

From the circuit diagram:

  • The input of the T flip-flop is fed by Q0Q_0: T=Q0T = Q_0.
  • The next state of the T flip-flop is: Q1+=T⊕Q1=Q0⊕Q1Q_1^+ = T \oplus Q_1 = Q_0 \oplus Q_1.
  • The input of the D flip-flop is fed by Q1Q_1: D=Q1D = Q_1.
  • The next state of the D flip-flop is: Q0+=D=Q1Q_0^+ = D = Q_1.

The initial state before the 1st clock cycle is Q1Q0=11Q_1 Q_0 = 11.

Trace the circuit state clock by clock:

  • Cycle 1: Q1+=1⊕1=0Q_1^+ = 1 \oplus 1 = 0, and Q0+=1  ⟹  Q1Q0=01Q_0^+ = 1 \implies Q_1 Q_0 = 01.
  • Cycle 2: Q1+=1⊕0=1Q_1^+ = 1 \oplus 0 = 1, and Q0+=0  ⟹  Q1Q0=10Q_0^+ = 0 \implies Q_1 Q_0 = 10.
  • Cycle 3: Q1+=0⊕1=1Q_1^+ = 0 \oplus 1 = 1, and Q0+=1  ⟹  Q1Q0=11Q_0^+ = 1 \implies Q_1 Q_0 = 11.
  • Cycle 4: Q1+=1⊕1=0Q_1^+ = 1 \oplus 1 = 0, and Q0+=1  ⟹  Q1Q0=01Q_0^+ = 1 \implies Q_1 Q_0 = 01.

Thus, after the 3rd cycle Q1Q0=11Q_1 Q_0 = 11, and after the 4th cycle Q1Q0=01Q_1 Q_0 = 01. This corresponds to Option B.

Final answer

B

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

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 1
Question
33 of 65, printed as CS Q.33
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.