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?
- A. 1110
- B. 1101
- C. 0011
- 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
- A synchronous circuit has two D flip-flops with D1 = X ⊕ Q2 and D2 = Q1 ⊕ X, and output Z = Q1·Q2'. It starts at Q1Q2 = 00. Which…
- A single 2:1 multiplexer (output = s ? y : x) has each of its three inputs connected to one of 0, 1, a or b (no inverters). How many…
- A 128-to-1 multiplexer is built as a tree of 4-to-1 multiplexers only (unused data and select inputs may be tied to constants). What is…
- A 17-input XOR (parity) function is built only from 3-input XOR gates (no 2-input gates). What are the minimum number of gates and the…
- A 1.2 MHz clock drives a mod-5 counter whose most significant output (high for 1 of every 5 counts) clocks a 4-flip-flop Johnson counter…
- A 5-bit Johnson counter Q4Q3Q2Q1Q0 shifts right (Q3 ← Q4, …, Q0 ← Q1) with Q4 ← Q0' and starts at 00000. Each of its 10 states is decoded…