GATE / CS ARCHIVE

GATE CSE 2006 / QUESTION 37

XOR feedback register trace

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

GATE 2006, Q37 2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 37, GATE 2006: Three D flip-flops q₂,q₁,q₀ start at 000 and share a clock. Wiring: D₂=q₁, D₁=q₀⊕q₂, D₀=data. Feed the bits 100110000, left to right, one per clock. What is the final q₂q₁q₀?
Options:
(A) 000
(B) 001
(C) 010
(D) 101
Question 37, GATE 2006: Three D flip-flops q₂,q₁,q₀ start at 000 and share a clock. Wiring: D₂=q₁, D₁=q₀⊕q₂, D₀=data. Feed the bits 100110000, left to right, one per clock. What is the final q₂q₁q₀?
Options:
(A) 000
(B) 001
(C) 010
(D) 101
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. On each clock, update simultaneously(q2,q1,q0)←(q1,q0⊕q2,data). Starting000 and feeding 100110000 left to right gives 001,010,100,011,111,100,010,100,010.

2. The final state is 010, C. All right-hand-side register values are from before the clock edge.

3. Teaching check: Simultaneous updates mean q₂ receives the old q₁, not a value just calculated in the same cycle. Keep two state triples, old and new, when tracing. The supplied nine-bit string includes four trailing zero inputs; those clocks still shift and feed back state.

Original paper, page 5