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?

  1. A. f/20 and 4/20
  2. B. f/19 and 3/19
  3. C. f/19 and 4/19
  4. 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

Exams that ask this topic