GATE Computer ScienceHardGATE CS (PYQ pattern)

A 6-bit Johnson counter Q5…Q0 shifts right on each clock (Q4 ← Q5, …, Q0 ← Q1) and loads Q5 ← Q0' (old Q0). Because of noise it starts in the state 010000 instead of 000000. What is its state after 25 clock pulses?

  1. A. 101000
  2. B. 100000
  3. C. 010000
  4. D. 110100

Correct answer: A. 101000

The state sequence from 010000 is 010000, 101000, 110100, 111010, 111101, 011110, 101111, 010111, 001011, 000101, 000010, 100001, 010000: it returns to 010000 after 12 clocks, so it is trapped in a separate 12-state cycle. 25 = 2·12 + 1, so the state is the one after 1 clock: 101000. Assuming the counter rejoins the normal sequence gives 100000.

More Digital Logic questions

Exams that ask this topic