GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 4-bit register Q3Q2Q1Q0 shifts right on every clock (Q2 ← Q3, Q1 ← Q2, Q0 ← Q1) while the new Q3 = Q3 ⊕ Q1 (old values). It starts at 1000. What is its content after 98 clock pulses?

  1. A. 1000
  2. B. 0010
  3. C. 1100
  4. D. 1001

Correct answer: D. 1001

Sequence: 1000 → 1100 → 1110 → 0111 → 1011 → 0101 → 0010 → 1001 → 1100 → … The feedback ignores Q0, so 1000 and 1001 both lead to 1100: 1000 is a transient, and the cycle 1100 … 1001 has length 7. After k ≥ 1 clocks the state is the ((k − 1) mod 7)-th cycle state counted from 1100; 97 mod 7 = 6 gives 1001. Assuming 1000 lies on the cycle (98 mod 7 = 0) wrongly gives 1000.

More Digital Logic questions

Exams that ask this topic