GATE Computer ScienceEasyGATE CS (PYQ pattern)

A 5-bit Johnson counter Q4Q3Q2Q1Q0 shifts right (Q3 ← Q4, …, Q0 ← Q1) with Q4 ← Q0' and starts at 00000. Each of its 10 states is decoded by one 2-input AND gate. Which inputs decode the states 11100 and 00000 respectively?

  1. A. Q4·Q2 and Q4'·Q3'
  2. B. Q2·Q1' and Q1'·Q0'
  3. C. Q2·Q1' and Q4'·Q0'
  4. D. Q3·Q1' and Q4'·Q0'

Correct answer: C. Q2·Q1' and Q4'·Q0'

Sequence: 00000, 10000, 11000, 11100, 11110, 11111, 01111, 00111, 00011, 00001. Every state has a single 1→0 (or 0→1) boundary, and two adjacent bits at that boundary identify it: 11100 is the only state with Q2 = 1, Q1 = 0. The all-0 and all-1 states have no internal boundary and use the end bits: 00000 is the only state with Q4 = 0 and Q0 = 0. Q1'·Q0' is also true for 10000, 11000 and 11100.

More Digital Logic questions

Exams that ask this topic