A ripple counter using negative edge-triggered D-flip flops is shown in b…
A ripple counter using negative edge-triggered D-flip flops is shown in below Fig the flip flops are cleared to '0' by a '0' at the R input. The feedback logic is to be designed to obtain the count sequence shown in the same figure. The correct feedback logic is: \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_0}}, c2=1, n2=1, t6={\ensuremath{Q_0}}, t4={\ensuremath{\overline{Q_0}}}, td=R, nd=1}] (F0) {}; \draw (F0.pin 4) -- ++(0.5,0) |- ([xshift=-0.5cm]F0.pin 1 |- 0,2.0) -- ([xshift=-0.5cm]F0.pin 1) -- (F0.pin 1); \draw (5.0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c2=1, n2=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}, td=R, nd=1}] (F1) {}; \draw (F1.pin 4) -- ++(0.5,0) |- ([xshift=-0.5cm]F1.pin 1 |- 0,2.0) -- ([xshift=-0.5cm]F1.pin 1) -- (F1.pin 1); \draw (10.0,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c2=1, n2=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}, td=R, nd=1}] (F2) {}; \draw (F2.pin 4) -- ++(0.5,0) |- ([xshift=-0.5cm]F2.pin 1 |- 0,2.0) -- ([xshift=-0.5cm]F2.pin 1) -- (F2.pin 1); \draw (F0.pin 2) -- ++(-1.4,0) node[left]{Clock}; \draw (F0.pin 6) -- ++(1.0,0) node[circ]{} |- (F1.pin 2); \draw (F1.pin 6) -- ++(1.0,0) node[circ]{} |- (F2.pin 2); \draw (F2.pin 6) -- ++(1.0,0) node[circ]{} -- ++(0.6,0); \node[draw, minimum width=2.6cm, minimum height=1.8cm, align=center] (G) at (8.6,-4.6) {Feedback\\ logic}; \draw ([xshift=1.0cm]F2.pin 6) |- ([yshift=0.5cm]G.east); \draw ([xshift=1.0cm]F1.pin 6) -- ([xshift=1.0cm]F1.pin 6 |- 0,-2.6) -| ([xshift=1.6cm]G.east |- 0,-2.6) |- (G.east); \draw ([xshift=1.0cm]F0.pin 6) -- ([xshift=1.0cm]F0.pin 6 |- 0,-6.2) -| ([xshift=2.2cm]G.east |- 0,-6.2) |- ([yshift=-0.5cm]G.east); \node[font=\small, above] at ([xshift=0.5cm, yshift=0.5cm]G.east) {\ensuremath{Q_2}}; \node[font=\small, above] at ([xshift=0.5cm]G.east) {\ensuremath{Q_1}}; \node[font=\small, above] at ([xshift=0.5cm, yshift=-0.5cm]G.east) {\ensuremath{Q_0}}; \draw (G.west) -- ++(-0.8,0) node[above]{F} -| (F1.down); \draw (F0.down) |- (F2.down |- 0,-2.0) -- (F2.down); \draw (F1.down |- 0,-2.0) node[circ]{}; Count sequence in the order of Q_2Q_1Q_0 : 000 \to 001 \to 010 \to 011 \to 100 \to 101 \to 000
- $F = \overline{Q_2 Q_1 \overline{Q_0}}$
- $F = Q_2\overline{Q_1}\,\overline{Q_0}$
- $F = \overline{Q_2}\,\overline{Q_1}Q_0$
- $F = \overline{Q_2}\,\overline{Q_1}$
Correct answer
A. $F = \overline{Q_2 Q_1 \overline{Q_0}}$
Explanation
The counter counts up from $000$. To make it mod-6 ($000$ to $101$) it must be cleared as soon as it reaches $110$. $R$ is active-low, so $F$ must be $0$ in state $110$ and $1$ in every valid state. F = \overline{Q_2\,Q_1\,\overline{Q_0}} This is $0$ only when $Q_2Q_1Q_0 = 110$. The other options fail: - (b) is $0$ in most states, so it would keep the counter cleared. - (c) is $0$ in $000$ and holds the counter at $000$. - (d) $= \overline{Q_2}\,\overline{Q_1}$ is $0$ in $010$, which would truncate the count. Answer: (a).