Skip to content
Official PYQ · 2017

GATE CS 2017 Set 1 Q33 — Sequential Circuits

Explain with AI

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

Initially, both Q0Q_{0} and Q1Q_{1} are set to 11 (before the 1st1^{\text{st}} clock cycle). The outputs

Choose one option
View worked solution

Answer: B

Based on the circuit description:

  • The output of the D\text{D} flip-flop (Q0Q_0) is connected to the input of the T\text{T} flip-flop (T=Q0T = Q_0).
  • The output of the T\text{T} flip-flop (Q1Q_1) is connected to the input of the D\text{D} flip-flop (D=Q1D = Q_1).

The next-state equations for the flip-flops are:

Q1(n+1)=T⊕Q1(n)=Q0(n)⊕Q1(n)Q_1(n+1) = T \oplus Q_1(n) = Q_0(n) \oplus Q_1(n) Q0(n+1)=D=Q1(n)Q_0(n+1) = D = Q_1(n)

Now, let us trace the state transitions starting from the initial state Q1Q0=11Q_1Q_0 = 11:

Clock Cycle Current State (Q1Q0Q_1 Q_0) Next State (Q1+Q0+Q_1^+ Q_0^+)
Initial 1111 Q1+=1⊕1=0Q_1^+ = 1 \oplus 1 = 0, Q0+=1  ⟹  01Q_0^+ = 1 \implies \mathbf{01}
1st1^{\text{st}} Cycle 0101 Q1+=1⊕0=1Q_1^+ = 1 \oplus 0 = 1, Q0+=0  ⟹  10Q_0^+ = 0 \implies \mathbf{10}
2nd2^{\text{nd}} Cycle 1010 Q1+=0⊕1=1Q_1^+ = 0 \oplus 1 = 1, Q0+=1  ⟹  11Q_0^+ = 1 \implies \mathbf{11}
3rd3^{\text{rd}} Cycle 1111 Q1+=1⊕1=0Q_1^+ = 1 \oplus 1 = 0, Q0+=1  ⟹  01Q_0^+ = 1 \implies \mathbf{01}
4th4^{\text{th}} Cycle 0101 —

Thus, after the 3rd3^{\text{rd}} cycle, the state Q1Q0Q_1 Q_0 is 1111, and after the 4th4^{\text{th}} cycle, the state Q1Q0Q_1 Q_0 is 0101.

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

Published
Report a correction
Keep exploringMore Sequential Circuits questions