GATE Computer ScienceModerateGATE CS (PYQ pattern)
A 5-bit asynchronous up-counter Q4..Q0 (Q4 the MSB) has its active-low asynchronous clear driven by a 3-input NAND of Q4, Q1 and Q0. The input clock has frequency f. Ignoring the brief reset glitch, what are the frequency of Q4 and the fraction of the period for which Q4 is high?
- A. f/20 and 4/20
- B. f/19 and 3/19
- C. f/19 and 4/19
- D. f/16 and 3/16
Correct answer: B. f/19 and 3/19
The first count with Q4 = Q1 = Q0 = 1 is 10011 = 19, which is cleared at once, so the stable states are 0-18: mod 19, giving f/19. Q4 is high for the counts 16, 17 and 18: 3 of 19 clock periods. Counting the momentary state 19 as a full state gives f/20.
More Digital Logic questions
- 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…
- 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 →…