GATE Computer ScienceHardGATE CS (PYQ pattern)

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

  1. A. 0011
  2. B. 1000
  3. C. 1100
  4. D. 1110

Correct answer: C. 1100

Since the feedback uses Q0, the map is invertible, and from 1000 the state runs through all 15 non-zero states before returning (the feedback polynomial is primitive). 2026 = 15 × 135 + 1, so the state equals the state after 1 clock(s): 1100. Assuming period 16 (2026 mod 16 = 10) gives a wrong state.

More Digital Logic questions

Exams that ask this topic