GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 3-bit register Q2Q1Q0 shifts right every clock, and the new Q2 is the XNOR of the old Q2 and old Q0. What is the behaviour of this register?
- A. It cycles through 7 states including 111, and 000 is a lock-up state
- B. It cycles through all 8 states
- C. It cycles through 6 states and 000 and 111 are both lock-up states
- D. It cycles through 7 states including 000, and 111 is a lock-up state
Correct answer: D. It cycles through 7 states including 000, and 111 is a lock-up state
With XOR feedback 000 would be the lock-up state; with XNOR the roles swap. Here 111 feeds back to 1 (XNOR(1,1) = 1) and stays 111, while the other seven states 000 → 100 → 010 → 101 → 110 → 011 → 001 → 000 form a cycle.
More Digital Logic questions
- A 6-bit Johnson counter Q5…Q0 shifts right on each clock (Q4 ← Q5, …, Q0 ← Q1) and loads Q5 ← Q0' (old Q0). Because of noise it starts in…
- A combinational datapath with stage delays of 3 ns, 5 ns and 4 ns is split into three pipeline stages by registers, each register adding…
- A 16-bit carry-select adder is built from ripple-carry blocks. Every full adder produces its carry 2 gate delays after its inputs/carry-in…
- A rising-edge D flip-flop has D = 1 permanently and an active-low asynchronous clear. The flip-flop starts at Q = 0. Rising clock edges…
- A Mealy machine has states A (start), B, C and one input X; entries are next state / output. A: X=0 → A/0, X=1 → B/0. B: X=0 → C/0, X=1 →…
- A 3-bit register Q2Q1Q0 is clocked synchronously with D2 = Q1, D1 = Q0 and D0 = (Q2 + Q1)' (NOR). Starting at 000 it follows a repeating…