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?
- A. It goes to 000 on the next clock and counts normally
- B. It goes to 101 and then returns to the normal 6-state sequence
- C. It toggles between 111 and 101
- 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
- A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q2'Q1', K2 = Q1', J1 = Q2'Q1', K1 = Q2Q1, J0 = 1, K0 = Q0. Starting at…
- A Moore machine has states A to G, start state A, and one input X. State next (X=0) next (X=1) output A C B 0 B B C 1 C D F 1 D C F 1 E D…
- Moore machine: the output is 1 exactly when the last four serial input bits (one per clock) are 0110 or 1001, and 0 otherwise (also before…
- A Moore machine outputs 1 when at least three of the last four serial input bits are 1, and 0 otherwise (also before four bits have…
- A serial machine receives an unsigned binary number MSB first, one bit per clock, and must signal whether the number received so far is…
- A Mealy detector for the pattern 1011 is fed the stream 11010110111010110 (left bit first). How many 1s does it output if (i) overlapping…