GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 3-bit register Q2Q1Q0 shifts right every clock, and the new Q2 is the XNOR of the old Q2 and old Q0. What is the behaviour of this register?

  1. A. It cycles through 7 states including 111, and 000 is a lock-up state
  2. B. It cycles through all 8 states
  3. C. It cycles through 6 states and 000 and 111 are both lock-up states
  4. D. It cycles through 7 states including 000, and 111 is a lock-up state

Correct answer: D. It cycles through 7 states including 000, and 111 is a lock-up state

With XOR feedback 000 would be the lock-up state; with XNOR the roles swap. Here 111 feeds back to 1 (XNOR(1,1) = 1) and stays 111, while the other seven states 000 → 100 → 010 → 101 → 110 → 011 → 001 → 000 form a cycle.

More Digital Logic questions

Exams that ask this topic