GATE Computer ScienceHardGATE CS

A synchronous 3-bit counter has next-state equations D2 = Q1 ⊕ Q0, D1 = Q2 and D0 = Q1' (state Q2 Q1 Q0). Let c be the number of states in the cycle that contains 000 and k the number of power-up states from which the counter can never reach 000. What is (c, k)?

  1. A. (8, 0)
  2. B. (7, 1)
  3. C. (6, 2)
  4. D. (7, 0)

Correct answer: B. (7, 1)

The transitions are 000→001→101→111→010→100→011→000, a cycle of 7 states. The eighth state, 110, maps to itself (D2 = 1, D1 = 1, D0 = 0), so the counter locks there and never reaches 000: k = 1.

More Digital Logic questions

Exams that ask this topic