GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 initial states, how many eventually reach the all-zero state?
- A. 1
- B. 2
- C. 3
- D. 4
Correct answer: B. 2
0001 shifts to 0000 (Q0 is simply dropped), so both 0000 and 0001 end in zero. The 14 other states all drain into a 7-state cycle, so this is not a maximal-length generator.
More Digital Logic questions
- 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
- 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…