Skip to main content

De Morgan's laws; XNOR using NOR gates

Short answer

De Morgan’s laws: (A+B)′ = A′B′ and (AB)′ = A′+B′. A 2-input XNOR gate can be realized with four NOR gates: G1 = (A+B)′, G2 = (A+G1)′, G3 = (B+G1)′, then Y = (G2+G3)′ = (A′B+AB′)′ = A⊙B, matching the equivalence function.

State De Morgan's Laws. Construct 2 input XNOR gate using only NOR gates.

De Morgan's laws

First theorem: the complement of a sum (OR) of variables equals the product (AND) of their complements.

A+B‾=Aˉ⋅Bˉ\overline{A + B} = \bar{A} \cdot \bar{B}

Second theorem: the complement of a product (AND) of variables equals the sum (OR) of their complements.

A⋅B‾=Aˉ+Bˉ\overline{A \cdot B} = \bar{A} + \bar{B}

In words: "break the bar and change the sign".

Example: Aˉ+B‾=ABˉ\overline{\bar A + B} = A \bar B and ACˉ‾=Aˉ+C\overline{A \bar C} = \bar A + C.

2-input XNOR using only NOR gates

Y=A⊙B=AB+AˉBˉ=ABˉ+AˉB‾Y = A \odot B = AB + \bar A \bar B = \overline{A\bar B + \bar A B} needs four 2-input NOR gates (the dual of the 4-NAND XOR).

G1=A+B‾G2=A+G1‾=Aˉ(A+B)=AˉBG3=B+G1‾=Bˉ(A+B)=ABˉY=G2+G3‾=AˉB+ABˉ‾=A⊙B\begin{aligned} G_1 &= \overline{A + B} \\ G_2 &= \overline{A + G_1} = \bar A (A + B) = \bar A B \\ G_3 &= \overline{B + G_1} = \bar B (A + B) = A \bar B \\ Y &= \overline{G_2 + G_3} = \overline{\bar A B + A \bar B} = A \odot B \end{aligned}
 A --+---------------[NOR G2]--+
     |                 |       |
     +--[NOR G1]---G1--+       +--[NOR G4]-- Y
     |                 |       |
 B --+---------------[NOR G3]--+
ABG1G_1G2G_2G3G_3Y
001001
010100
100010
110001

Y = 1 only when A = B, which is the XNOR function.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 2 questions →