GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 5-bit Johnson (twisted-ring) counter shifts right and feeds the complement of the last flip-flop back to the first, with no self-correcting logic. Its main sequence from 00000 has 10 states. What happens to the other 22 states?
- A. They form two more 10-state cycles and one 2-state cycle
- B. They form one separate 22-state cycle
- C. They form two separate 11-state cycles
- D. They all fall into the main sequence within 5 clocks
Correct answer: A. They form two more 10-state cycles and one 2-state cycle
The twisted-ring map is a permutation (it is invertible), so every state lies on a cycle; nothing can 'fall into' the main loop. Each state returns after 2n = 10 clocks unless it has a shorter period: 10101 → 01010 → 10101 is a 2-cycle. So 22 = 10 + 10 + 2.
More Digital Logic questions
- 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…
- 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…