GATE / CS ARCHIVE

GATE CSE 2011 / QUESTION 15

Flip-flops for modulus258

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

GATE 2011, Q15 1 mark · MCQ
Report issue

Counters & Timing

Question 15, GATE 2011: What is the minimum number of D flip-flops needed for a modulo-258 counter?

(A) 9
(B) 8
(C) 512
(D) 258
Tap to enlarge
Your answer
Answer & solution

Official answer: A

k flip-flops provide at most 2k states. Since28=256<258≤512=29, at least 9 are needed; a 9-bit counter with suitable reset logic suffices. Hence A.

A modulo-m counter needs m distinct states before repeating. Each flip-flop stores one binary bit, so k of them encode at most 2k different combinations. Taking a ceiling gives k=ceil(log2 258)=9. The 9-bit device has extra possible combinations, but logic can reset or redirect the sequence after 258 states. Options 258 and 512 confuse the number of states with the number of storage bits.

Original paper, page 4 · Answer key