The digital logic shown in the figure satisfies the given state diagram w…
The digital logic shown in the figure satisfies the given state diagram when Q_1 is connected to input A of the XOR gate. \draw (0,0) node[flipflop, flipflop def={t1={\ensuremath{D_1}}, c3=1, t6={\ensuremath{Q_1}}, t4={\ensuremath{\overline{Q_1}}}}] (F1) {}; \draw (6.4,0) node[flipflop, flipflop def={t1={\ensuremath{D_2}}, c3=1, t6={\ensuremath{Q_2}}, t4={\ensuremath{\overline{Q_2}}}}] (F2) {}; \draw (F2.pin 1) -- ++(-0.6,0) node[xor port, anchor=out] (X) {}; \draw (F1.pin 6) -- ++(0.9,0) |- (X.in 1) node[above left]{A}; \draw (X.in 2) -- ++(-0.5,0) -- ++(0,-1.2) node[below]{S}; \draw (F1.pin 4) -- ++(0.6,0); \draw (F2.pin 4) -- ++(0.6,0); \draw (F2.pin 6) -- ++(0.8,0) |- ([xshift=-0.8cm]F1.pin 1 |- 0,2.4) -- ([xshift=-0.8cm]F1.pin 1) -- (F1.pin 1); \draw (F1.pin 3) -- ++(-0.6,0) -- ([xshift=-0.6cm]F1.pin 3 |- 0,-2.6) node[circ]{} -- ++(-1.0,0) node[left]{CLK}; \draw ([xshift=-0.6cm]F1.pin 3 |- 0,-2.6) -- ([xshift=-0.6cm]F2.pin 3 |- 0,-2.6) -- ([xshift=-0.6cm]F2.pin 3) -- (F2.pin 3); State diagram (state Q_1Q_2 ): Suppose the XOR gate is replaced by an XNOR gate. Which one of the following options preserves the state diagram?
- Input $A$ is connected to $\overline{Q_2}$
- Input $A$ is connected to $Q_2$
- Input $A$ is connected to $\overline{Q_1}$ and $S$ is complemented
- Input $A$ is connected to $\overline{Q_1}$
Correct answer
D. Input $A$ is connected to $\overline{Q_1}$
Explanation
With the XOR gate: $D_1 = Q_2$ and $D_2 = A \oplus S = Q_1 \oplus S$, which produces the given diagram. With an XNOR gate, $D_2 = \overline{A \oplus S}$. We need this to still equal $Q_1 \oplus S$. Since complementing one input of an XOR complements its output, \overline{\overline{Q_1} \oplus S} = Q_1 \oplus S so $A = \overline{Q_1}$ works. - (a), (b): use $Q_2$, so $D_2$ no longer depends on $Q_1$. - (c): complementing both inputs leaves the XNOR output unchanged, $\overline{\overline{Q_1} \oplus \overline{S}} = \overline{Q_1 \oplus S}$, which is wrong. Answer: (d).