GATE Computer ScienceHardGATE CS (PYQ pattern)
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 the state 010000 instead of 000000. What is its state after 25 clock pulses?
- A. 101000
- B. 100000
- C. 010000
- D. 110100
Correct answer: A. 101000
The state sequence from 010000 is 010000, 101000, 110100, 111010, 111101, 011110, 101111, 010111, 001011, 000101, 000010, 100001, 010000: it returns to 010000 after 12 clocks, so it is trapped in a separate 12-state cycle. 25 = 2·12 + 1, so the state is the one after 1 clock: 101000. Assuming the counter rejoins the normal sequence gives 100000.
More Digital Logic questions
- 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…
- A Moore machine has states A to H, start state A and one input X. Each row lists: state, next state for X=0, next state for X=1, output. A…