GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 1000. What is its content after 98 clock pulses?
- A. 1000
- B. 0010
- C. 1100
- D. 1001
Correct answer: D. 1001
Sequence: 1000 → 1100 → 1110 → 0111 → 1011 → 0101 → 0010 → 1001 → 1100 → … The feedback ignores Q0, so 1000 and 1001 both lead to 1100: 1000 is a transient, and the cycle 1100 … 1001 has length 7. After k ≥ 1 clocks the state is the ((k − 1) mod 7)-th cycle state counted from 1100; 97 mod 7 = 6 gives 1001. Assuming 1000 lies on the cycle (98 mod 7 = 0) wrongly gives 1000.
More Digital Logic questions
- 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…
- 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…