GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q0, K2 = Q0', J1 = Q2Q0', K1 = Q2Q1, J0 = Q2', K0 = Q2'Q0. After power-up the counter happens to be in state 111. What happens?

  1. A. It goes to 000 on the next clock and counts normally
  2. B. It goes to 101 and then returns to the normal 6-state sequence
  3. C. It toggles between 111 and 101
  4. D. It goes to 101 and stays there forever (a lock-up state)

Correct answer: D. It goes to 101 and stays there forever (a lock-up state)

The normal cycle is 000 → 001 → 100 → 010 → 011 → 110 → 000. For 111: J2 = 1, K2 = 0 gives Q2 = 1; J1 = 0, K1 = 1 gives Q1 = 0; J0 = 0, K0 = 0 holds Q0 = 1, so next is 101. For 101: J2 = 1, K2 = 0 keeps Q2 = 1; J1 = 0, K1 = 0 holds Q1 = 0; J0 = 0, K0 = 0 holds Q0 = 1, so 101 maps to itself.

More Digital Logic questions

Exams that ask this topic