GATE / CS ARCHIVE

GATE CSE 2015 SET 1 / QUESTION 21

GATE CSE 2015 Set 1 Q21

Digital Logic · Counters & Timing · Full GATE CSE 2015 Set 1 paper

GATE 2015 Set 1, Q21 1 mark · MCQ
Report issue

Counters & Timing

Question 21, GATE 2015: A 4-bit Johnson counter starts at 0000. Choose its decimal sequence. A 0,1,3,7,15,14,12,8,0; B 0,1,3,5,7,9,11,13,15,0; C 0,2,4,6,8,10,12,14,0; D 0,8,12,14,15,7,3,1,0.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Our answer: D for one shift orientation; A for the reverse

A Johnson counter feeds the complement of one end bit into the other end of a shift register. With the right-shift/MSB-insertion convention, bits fill with ones and then zeros, producing eight states before returning. Reversing the bit-weight convention reflects each four-bit word and converts D into A. Therefore the official D is consistent but not uniquely forced by the direction-free wording; B and C are not this eight-state twisted-ring cycle.

Solution: Complemented end-bit feedback with right shifts gives 0000→1000→1100→1110→1111→0111→0011→0001→0000, the official D. With left shifts and the opposite end-bit feedback, the equally valid Johnson counter gives 0, 1, 3, 7, 15, 14, 12, 8, 0, option A. The question does not specify shift direction or bit-weight orientation; D is conventional, not uniquely implied.

Original paper, page 9 · Answer key