GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 61

T-flip-flop excitation for Gray sequence

Digital Logic · Counters & Timing · Full GATE CSE 2004 paper

GATE 2004, Q61 2 marks · MCQ
Report issue

Counters & Timing

Question 61, GATE 2004: A synchronous two-bit counter uses T flip-flops with outputs Q2 (MSB) and Q1 (LSB), driven by a common clock. Its required cycle is 0→2→3→1→0. The figure wires XNOR(Q1,Q2) to T2; the unknown X drives T1. What is X?
Options:
(A) Q2′
(B) Q2+Q1
(C) (Q1⊕Q2)′
(D) Q1⊕Q2
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Use state order Q2Q1=00→10→11→01→00. Since a T flip-flop toggles exactly when T=1, the LSB excitation Q1 XOR Q1(next) takes values 0,1,0,1 at states 00,10,11,01.

2. This is Q1 XOR Q2. The MSB excitation is its complement, agreeing with the pictured XNOR feedback into T2.

3. Thus X=Q1⊕Q2.

4. Teaching check: For each present state, calculate toggle=present bit XOR next bit. At 00,10,11,01 the LSB toggles 0,1,0,1 and the MSB toggles 1,0,1,0. These complementary sequences explain the given XNOR and required XOR together.

Original paper, page 9