2-input XNOR gate using 2x1 mux: Figure 1 below shows the truth table of a 2-input XNOR gate. If we observe carefully, OUT equals B' when A is '0' and equals B when A is '1'. So, a 2-input XNOR gate can be implemented from a 2x1 mux, if we connect SEL pin to A, D0 to B' and D1 to B.
Figure 1: Truth table of 2-input XNOR gate |
The implementation of 2-input XOR gate using a 2x1 mux is as shown in figure 2.
Figure 2: Implementation of 2-input XNOR gate using 2x1 mux |