GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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. 31
- B. 15
- C. 7
- D. 21
Correct answer: D. 21
The feedback polynomial x⁵ + x⁴ + 1 factors as (x² + x + 1)(x³ + x + 1), so it is not primitive. The state space splits into cycles of lengths 1, 3, 7 and 21, not a 31-cycle.
More Digital Logic questions
- 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
- A D flip-flop is to be made from a J-K flip-flop with J = D and K = D', but by mistake it is wired with J = K = D. Starting from Q = 0…
- A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q0, K2 = Q0', J1 = Q2Q0', K1 = Q2Q1, J0 = Q2', K0 = Q2'Q0. After power-up…
- A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q2'Q1', K2 = Q1', J1 = Q2'Q1', K1 = Q2Q1, J0 = 1, K0 = Q0. Starting at…