GATE 2015 CS – Question 21
Consider a 4-bit Johnson counter with an initial value of 0000. The counting sequence of this counter is
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) 0, 8, 12, 14, 15, 7, 3, 1, 0
Explanation
A Johnson counter shifts right and feeds the complement of the last bit back into the first. Starting from 0000 the states are 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001 and then back to 0000. In decimal this is 0, 8, 12, 14, 15, 7, 3, 1, 0.