The digital block in the figure is realized using two positive edge trigg…
The digital block in the figure is realized using two positive edge triggered D flip-flops. Assume that for t < t_0 , Q_1 = Q_2 = 0 . The circuit in the digital block is given by
- (a) \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (4.8,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F1.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F2.pin 6) -- ++(0.7,0) node[right]{Y}; \draw (F2.pin 4) -- ++(0.5,0); \draw (F2.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F1.pin 3) -- ++(-1.2,0) node[left]{X}; \draw (F1.pin 6) -- ++(1.3,0) |- (F2.pin 3); \draw (F1.pin 4) -- ++(0.5,0);
- (b) \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, n3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (4.8,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, n3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F1.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F2.pin 6) -- ++(0.7,0) node[right]{Y}; \draw (F2.pin 4) -- ++(0.5,0); \draw (F2.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F1.pin 3) -- ++(-1.2,0) node[left]{X}; \draw (F1.pin 4) -- (F2.pin 3); \draw (F1.pin 6) -- ++(0.5,0);
- (c) \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (4.8,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F1.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F2.pin 6) -- ++(0.7,0) node[right]{Y}; \draw (F2.pin 4) -- ++(0.5,0); \draw (F1.pin 4) -- ++(0.9,0) |- (F2.pin 1); \draw (F1.pin 6) -- ++(0.5,0); \draw (F1.pin 3) -- ++(-0.6,0) node[circ]{} -- ++(-0.6,0) node[left]{X}; \draw ([xshift=-0.6cm]F1.pin 3) |- (0,-2.0) -| ([xshift=-0.6cm]F2.pin 3) -- (F2.pin 3);
- (d) \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, n3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (4.8,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, n3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F1.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F2.pin 6) -- ++(0.7,0) node[right]{Y}; \draw (F2.pin 4) -- ++(0.5,0); \draw (F1.pin 4) -- ++(0.9,0) |- (F2.pin 1); \draw (F1.pin 6) -- ++(0.5,0); \draw (F1.pin 3) -- ++(-0.6,0) node[circ]{} -- ++(-0.6,0) node[left]{X}; \draw ([xshift=-0.6cm]F1.pin 3) |- (0,-2.0) -| ([xshift=-0.6cm]F2.pin 3) -- (F2.pin 3);
Correct answer
C. (c) \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (4.8,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F1.pin 1) -- ++(-0.6,0) node[left]{1}; \draw (F2.pin 6) -- ++(0.7,0) node[right]{Y}; \draw (F2.pin 4) -- ++(0.5,0); \draw (F1.pin 4) -- ++(0.9,0) |- (F2.pin 1); \draw (F1.pin 6) -- ++(0.5,0); \draw (F1.pin 3) -- ++(-0.6,0) node[circ]{} -- ++(-0.6,0) node[left]{X}; \draw ([xshift=-0.6cm]F1.pin 3) |- (0,-2.0) -| ([xshift=-0.6cm]F2.pin 3) -- (F2.pin 3);
Explanation
The output $Y$ must go high at the first rising edge $t_0$, fall at the next rising edge $t_1$, and then stay low. **(c)** Both flip-flops are clocked by $X$; $D_1 = 1$ and $D_2 = \overline{Q_1}$. - At $t_0$: $Q_1$ becomes $1$, and $Q_2$ takes the old $\overline{Q_1} = 1$, so $Y = 1$. - At $t_1$: $Q_2$ takes $\overline{Q_1} = 0$, so $Y = 0$. - After that $Q_1$ stays $1$, so $Y$ stays $0$. This matches the waveform. The other circuits do not: - **(a)** $Q_2$ becomes $1$ and never returns to $0$. - **(b)** and **(d)** use negative-edge (bubbled) clocks, so they change on falling edges, not at $t_0, t_1$. Answer: (c).