GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 17

GATE CSE 2015 Set 2 Q17

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

GATE 2015 Set 2, Q17 1 mark · NAT
Report issue

Counters & Timing

Question 17, GATE 2015: Minimum JK flip-flops for synchronous count output sequence 0, 0, 1, 1, 2, 2, 3, 3, 0, 0, …?
Tap to enlarge
Answer & solution

Official answer: 3

The repeated output at each count needs an internal phase bit: the two appearances of 0 must have different next outputs eventually and cannot be the same deterministic state. The sequence has period 8, requiring eight states and at least 3 bits. A3-bit modulo 8 counter with the low bit suppressed in the output realizes it, so 3 JK flip-flops suffice.

Although only four output values appear, the repeated occurrences need different internal states. If the two consecutive zeros were the same state of an autonomous deterministic counter, they would have the same successor and could not later advance to 1. The complete repeating pattern has period 8, so at least 8 internal states and ceil(log 2 8)=3 flip-flops are required. A modulo 8 counter outputs its two upper bits, holding each value for two clocks, which attains the bound.

Original paper, page 32 · Answer key