Question
Official answer and solution
- Accepted answers
- 7 to 8
- From
- Official GATE 2025 answer key
Solution
Recognize the 4-flip-flop circuit with and as a 4-bit Johnson (twisted-ring) counter and find the length of its state cycles.
The circuit is a 4-bit Johnson counter (twisted-ring shift register) with next-state equations:
Over the possible 4-bit states :
- Starting from
0000, the circuit cycles through 8 distinct states before repeating0000:
0000 -> 1000 -> 1100 -> 1110 -> 1111 -> 0111 -> 0011 -> 0001 -> 0000 - Even if initialized to one of the 8 unused states (such as
0101), it also cycles through 8 distinct states (0101 -> 0010 -> 1001 -> 0100 -> 1010 -> 1101 -> 0110 -> 1011 -> 0101).
Thus the period of the circuit from any initial state is 8 distinct states (or 7 intermediate states strictly between leaving and returning to the initial state; the official GATE key accepts both 7 and 8).
8 (7 to 8 accepted)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 60 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.