GATE Computer ScienceHardGATE CS (PYQ pattern)

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 clocked by Q0 and toggles on a falling edge of Q0; FF2 is clocked by Q1 and toggles on a rising edge of Q1; FF3 is clocked by Q2 and toggles on a falling edge of Q2. All flip-flops start at 0. What is Q3Q2Q1Q0 after 14 input clock pulses?

  1. A. 1110
  2. B. 1101
  3. C. 0011
  4. D. 0010

Correct answer: D. 0010

Simulate pulse by pulse. FF0 toggles on every pulse and FF1 on every second pulse as in an up counter, but FF2 toggles on the rising edge of Q1 and so changes at the opposite phase from a normal up counter, giving a non-binary sequence. The plain binary count 1110 is the usual wrong answer.

More Digital Logic questions

Exams that ask this topic