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?
- A. 14 cycles; 60 states
- B. 11 cycles; 54 states
- C. 14 cycles; 54 states
- 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
- A 5-bit Johnson (twisted-ring) counter shifts right and feeds the complement of the last flip-flop back to the first, with no…
- A 6-bit Johnson (twisted-ring) counter (right shift, complement of the last stage fed back to the first) has no self-correcting logic. How…
- A 4-bit register Q3Q2Q1Q0 shifts right every clock; the new value of Q3 is Q3 ⊕ Q1 (Q2 takes the old Q3, and so on). Of the 16 possible…
- A 4-bit register Q3Q2Q1Q0 shifts right on every clock (Q2 ← Q3, Q1 ← Q2, Q0 ← Q1) while the new Q3 = Q3 ⊕ Q1 (old values). It starts at…
- A 5-bit right-shifting register has a new Q4 equal to Q4 ⊕ Q0. What is the length of its longest cycle of states?
- A 4-bit register Q3Q2Q1Q0 shifts right and the new Q3 is Q2 ⊕ Q0. How many distinct state cycles (including the all-zero fixed point) does…