GATE Computer ScienceModerateGATE CS (PYQ pattern)
Over one complete cycle of 10 counts (back to the starting state), how many flip-flop toggles in total does (i) a synchronous 4-bit BCD (8421) decade counter make, and (ii) a 5-bit Johnson counter make?
- A. 16 and 10
- B. 18 and 20
- C. 18 and 10
- D. 20 and 10
Correct answer: C. 18 and 10
BCD: 0→1 (1), 1→2 (2), 2→3 (1), 3→4 (3), 4→5 (1), 5→6 (2), 6→7 (1), 7→8 (4), 8→9 (1), 9→0 (1001→0000, 2): total 18. A Johnson counter changes exactly one flip-flop per clock: 10. Forgetting the 9→0 wrap gives 16; a binary-counter estimate (2 per count) gives 20.
More Digital Logic questions
- The 8-bit binary-reflected Gray code of x is g(x) = x XOR (x >> 1). For how many of the 256 values of x does g(x) contain exactly two 1…
- For 8-bit patterns a and b, how many ordered pairs satisfy a > b when both are read as signed two's complement numbers, but a < b when…
- A one-digit BCD adder adds digits a, b (0-9) and a carry-in c (0 or 1). Its 4-bit binary adder gives a carry K and sum Z8Z4Z2Z1, and the…
- Two 8-input priority encoders receive the same inputs I7..I0. Encoder H gives priority to the highest-numbered asserted input, encoder L…
- An 8-input priority encoder (I7 highest priority) outputs the index y (0 to 7) of the highest asserted input. Among the 255 non-zero input…
- What is the minimum number of 2:1 multiplexers needed to realise the three-input majority function MAJ(a, b, c) = ab + bc + ca if the…