GATE Computer ScienceHardGATE CS (PYQ pattern)
A 4-bit register Q3Q2Q1Q0 shifts right every clock (Q2 ← Q3, Q1 ← Q2, Q0 ← Q1), and the new Q3 = Q3 ⊕ Q0 (old values). It starts at 1000. What is its content after 2026 clock pulses?
- A. 0011
- B. 1000
- C. 1100
- D. 1110
Correct answer: C. 1100
Since the feedback uses Q0, the map is invertible, and from 1000 the state runs through all 15 non-zero states before returning (the feedback polynomial is primitive). 2026 = 15 × 135 + 1, so the state equals the state after 1 clock(s): 1100. Assuming period 16 (2026 mod 16 = 10) gives a wrong state.
More Digital Logic questions
- A 4-bit ripple counter uses toggle flip-flops with T = 1. FF0 is clocked by the input clock and toggles on each rising edge. FF1 is…
- A synchronous circuit has two D flip-flops with D1 = X ⊕ Q2 and D2 = Q1 ⊕ X, and output Z = Q1·Q2'. It starts at Q1Q2 = 00. Which…
- A single 2:1 multiplexer (output = s ? y : x) has each of its three inputs connected to one of 0, 1, a or b (no inverters). How many…
- A 128-to-1 multiplexer is built as a tree of 4-to-1 multiplexers only (unused data and select inputs may be tied to constants). What is…
- A 17-input XOR (parity) function is built only from 3-input XOR gates (no 2-input gates). What are the minimum number of gates and the…
- A 1.2 MHz clock drives a mod-5 counter whose most significant output (high for 1 of every 5 counts) clocks a 4-flip-flop Johnson counter…