GATE Computer ScienceVery hardGATE CS (PYQ pattern)
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 000, how many distinct states are visited before the sequence repeats, and what happens in the other states?
- A. 6 states; the unused states 010 and 011 both go to 000 on the next clock
- B. 8 states; it is a full-length counter
- C. 6 states; 010 goes to 011 and 011 returns to the main sequence
- D. 6 states; the unused states 010 and 011 form their own 2-state loop
Correct answer: D. 6 states; the unused states 010 and 011 form their own 2-state loop
Simulating all 8 states gives next states 000→111→100→001→110→101→000, so 6 states in the main cycle. The unused states map 010 → 011 and 011 → 010, a separate 2-state loop, so the counter is not self-starting.
More Digital Logic questions
- 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…
- An 8-bit synchronous up-counter uses T flip-flops (clock-to-Q 8 ns, setup 3 ns). In design S the toggle inputs come from a serial chain of…