GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 16

Synchronous 1-4-2-3 counter

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

GATE 1998, Q16 5 marks · Descriptive
Report issue

Counters & Timing

Question 16, GATE 1998: Design a synchronous counter producing 1,4,2,3,1,4,... .
Tap to enlarge
Answer & solution

Answer: Three common-clock D flip-flops with state sequence 001→100→010→011→001. (no official key was published)

Represent the displayed numbers by Q2Q1Q0. The required transitions are 001→100, 100→010, 010→011 and 011→001. Use three D flip-flops sharing one clock, with each D input equal to the corresponding next-state bit. Reset to 001 before normal counting.

A complete, self-starting design sends every unused state to 001:

current: 000 001 010 011 100 101 110 111
next:    001 100 011 001 010 001 001 001

Let mi denote the three-variable minterm for binary i. Then D2=m1=¬Q2·¬Q1·Q0; D1=m2+m4=¬Q0(¬Q2·Q1+Q2·¬Q1); D0=m0+m2+m3+m5+m6+m7. Wire these sum-of-products functions to D2,D1,D0. Notice D0 is 1 also for state 010, whose successor is 011. These equations directly implement every row of the table, so no unspecified-state behavior is hidden by don't-care minimization.

All bits update together on the active clock edge; a ripple counter would not implement this arbitrary sequence directly. Four internal states require only two bits if an output decoder is allowed, but three state flip-flops give the requested binary numbers directly and make unused-state recovery explicit.

Original paper, page 7