GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 50

Next state of a three-flip-flop counter

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 2011 paper

GATE 2011, Q50 2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 50, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R. The source circuit connects R directly to D_P, a NOR of P and R to D_Q, and an AND of Q and the complemented R output to D_R. All sample simultaneously at a clock edge. If PQR=010 immediately before the edge, what is PQR afterward?

(A) 000
(B) 001
(C) 010
(D) 011
Question 50, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R. The source circuit connects R directly to D_P, a NOR of P and R to D_Q, and an AND of Q and the complemented R output to D_R. All sample simultaneously at a clock edge. If PQR=010 immediately before the edge, what is PQR afterward?

(A) 000
(B) 001
(C) 010
(D) 011
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Tracing the wires, including the bridge crossings, gives next-state equations P_next=R, Q_next=NOT(P OR R), and R_next=Q AND NOT R. The upper two gate inputs are P and R; the lower AND gate uses Q and the complemented output of R. All D flip-flops update simultaneously from the pre-edge values. For PQR=010 this gives P_next=0, Q_next=1, R_next=1, so the next state is 011, option D.

For a D flip-flop, the output after the edge equals its D input just before the edge. Substitute the old values P=0,Q=1,R=0 into all three equations: D_P=0; D_Q=NOT(0 OR 0)=1; D_R=1 AND NOT 0=1. Assemble the new values in P,Q,R order as 011. Do not feed the newly computed R back into P in this same step; that would model sequential assignments rather than simultaneous hardware sampling.

Original paper, page 14 · Answer key