GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 6-bit ring counter (right shift, the last flip-flop's output fed back to the first) has no self-correcting logic, so all 64 states appear in its state diagram. How many distinct cycles does the diagram contain, and how many of the 64 states lie on cycles of length exactly 6?

  1. A. 14 cycles; 60 states
  2. B. 11 cycles; 54 states
  3. C. 14 cycles; 54 states
  4. D. 12 cycles; 60 states

Correct answer: C. 14 cycles; 54 states

A state's cycle length is its rotational period. Period 1: 000000, 111111 (2 states); period 2: 010101, 101010 (2); period 3: 001001-type, 6 states with period 3 (2 cycles); the rest 64 − 2 − 2 − 6 = 54 have period 6, forming 54/6 = 9 cycles. Total 2 + 1 + 2 + 9 = 14 cycles (the number of binary necklaces of length 6). Subtracting only the 4 period-1/2 states gives the 60 trap.

More Digital Logic questions

Exams that ask this topic