Question
Consider a 4-bit Johnson counter with an initial value of . The counting sequence of this counter is:
Official answer and solution
- Official answer
- D
- From
- Official GATE 2015 answer key
Solution
Trace the register state transitions of a 4-bit twisted ring (Johnson) counter.
A 4-bit Johnson counter uses four flip-flops where the serial input to the highest bit is the inverted output of the lowest bit: , with shift .
Tracing starting from :
- State 0:
- Next:
- Next:
- Next:
- Next:
- Next:
- Next:
- Next:
- Next:
The sequence of decimal states is:
This matches option D.
D
Tracing in the opposite shift direction without checking the option values, or confusing Johnson counter with a standard ring counter.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 1
- Question
- 30 of 65, printed as CS Q.20
- 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.