GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 28

GATE CSE 2021 Set 1 Q28

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q28 2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 28, GATE 2021: A synchronous three-bit T-flip-flop counter has outputs P,Q,R and common clock. The circuit connects R to T_P, complemented P to T_Q, and complemented Q to T_R. Starting at PQR=000, what are its next three states? A 011,101,000; B 001,010,111; C 011,101,111; D 001,010,000.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The inspected wiring gives T_P=R, T_Q=¬P, T_R=¬Q, with a shared clock. Since a T flip-flop updates by Q_next=Q XOR T, the simultaneous transition equations are P_next=P XOR R, Q_next=Q XOR ¬P, R_next=R XOR ¬Q. From000 they give 011, then 101, then 000. Thus A. Every right-hand side uses the old state.

The transition trace is: old 000 gives T=(0,1,1), new 011; old 011 gives T=(1,1,0), new 101; old 101 gives T=(1,0,1), new 000. A T input of 0 holds its flip-flop and 1 toggles it. Since all receive the same clock, updating P first and then using the new P to compute Q would incorrectly simulate a sequential program instead of a synchronous circuit.

Original paper, page 25 · Answer key