GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 many disjoint cycles does its full 64-state diagram contain, and how long is the shortest one?
- A. 5 cycles; shortest has 4 states
- B. 6 cycles; shortest has 4 states
- C. 6 cycles; shortest has 2 states
- D. 2 cycles; shortest has 12 states
Correct answer: B. 6 cycles; shortest has 4 states
The map is invertible, so the diagram is a union of cycles, and every state returns after 2n = 12 clocks (lengths divide 12). Enumerating: the main cycle from 000000 has 12 states; 001100 → 100110 → 110011 → 011001 → 001100 is a 4-cycle; the remaining 48 states form four more 12-cycles. Total 6 cycles, shortest 4 (there is no 2-cycle for n = 6, unlike n = 5).
More Digital Logic questions
- 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…
- A hypothetical LM flip-flop behaves as follows: LM = 00 toggles (Q⁺ = Q'), 01 resets (Q⁺ = 0), 10 sets (Q⁺ = 1) and 11 holds (Q⁺ = Q). It…
- A J-K flip-flop has its inputs driven by J = X and K = X ⊕ Q, where Q is its own output. As seen from the input X, the circuit behaves as