GATE Computer ScienceHardGATE CS

A 4-bit left-shifting register uses XNOR feedback: Q0 ← XNOR(Q3, Q2), with Q3 ← Q2, Q2 ← Q1, Q1 ← Q0. Starting at 0000, after how many clocks does the state first return to 0000, and which state is the lock-up state (a state that maps to itself)?

  1. A. (16, 1111)
  2. B. (15, 1000)
  3. C. (15, 1111)
  4. D. (15, 0000)

Correct answer: C. (15, 1111)

With XOR feedback the lock-up state is 0000; the XNOR version complements the feedback, so the lock-up state becomes 1111 and 0000 lies on the maximal 15-state cycle (taps 4 and 3 are primitive). Starting from 0000 the state returns after 15 clocks.

More Digital Logic questions

Exams that ask this topic