GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 51

Reachable cycle of a three-flip-flop counter

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

GATE 2011, Q51 2 marks · MCQ
Report issue

Counters & Timing

Question 51, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R and connections D_P=R, D_Q=NOR(P,R), D_R=AND(Q,NOT R). All sample simultaneously. Starting with all flip-flops reset to zero, how many distinct output states occur?

(A) 3
(B) 4
(C) 5
(D) 6
Question 51, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R and connections D_P=R, D_Q=NOR(P,R), D_R=AND(Q,NOT R). All sample simultaneously. Starting with all flip-flops reset to zero, how many distinct output states occur?

(A) 3
(B) 4
(C) 5
(D) 6
Tap to enlarge
Your answer
Answer & solution

Official answer: B

From the figure the synchronous next-state equations are P_next=R, Q_next=NOT(P OR R), and R_next=Q AND NOT R. Starting from the power-on reset 000 gives 000→010→011→100→000. These four states are distinct, and the return to 000 repeats the same deterministic cycle. Thus the number of reachable states from reset is 4, option B; the question does not ask for all eight possible register patterns.

Evaluate every transition with the same pre-edge rule. At 000 the next bits are 0,1,0. At 010 they are 0,1,1. At 011 they are 1,0,0. At 100 they are 0,0,0. The reset state is included in the count, so there are four distinct states before repetition, not three transitions away from reset. A three-bit register can represent eight states, but its next-state logic and initialization restrict the reachable sequence.

Original paper, page 14 · Answer key