GATE / CS ARCHIVE

GATE CSE 1994 / QUESTION 2.1

Flip-flops for a modulo counter

Digital Logic · Counters & Timing · Full GATE CSE 1994 paper

GATE 1994, Q2.1 Other
Report issue

Counters & Timing

Question 2.1, GATE 1994: Fill in the minimum number of flip-flops required for a binary modulo-N counter.
Tap to enlarge
Answer & solution

Answer: ceil(log₂N), for N≥2 (no official key was published)

With k flip-flops, the state register has at most 2^k distinct binary states. A modulo-N counter must distinguish N positions before repeating, so 2^k≥N and k≥ceil(log₂N). This many bits are sufficient: use N of the available states and arrange the transition after N−1 to return to zero. Non-power-of-two counters leave unused codes, whose recovery behavior should be designed separately. The degenerate N=1 counter can be a constant output with no state bits in the abstract model.

Original paper, page 3