- 2075 Chaitra · 4+2 marks
De Morgan; X-NOR using a universal gate
Short answer
De Morgan's theorems: (A + B)' = A'B' and (AB)' = A' + B'. An XNOR gate can be built with four NOR gates: compute G1 = (A+B)', G2 = (A+G1)', G3 = (B+G1)', then Y = (G2+G3)' which gives AB + A'B'.
State and prove De Morgan's theorem. Design X-NOR gate using anyone of universal gate.
De Morgan's theorems
De Morgan's theorems tell us how to complement a sum or a product of variables.
Theorem 1: The complement of a sum equals the product of the complements.
Theorem 2: The complement of a product equals the sum of the complements.
In words: to complement an expression, change every OR into AND (and every AND into OR) and complement each variable. So a NOR gate is the same as an AND gate with inverted inputs ("bubbled AND"), and a NAND gate is the same as an OR gate with inverted inputs ("bubbled OR").
Proof by truth table
| A | B | ||||||
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
Column 4 equals column 5 for all inputs, which proves Theorem 1. Column 7 equals column 8, which proves Theorem 2.
Algebraic proof of Theorem 1: if and , then is the complement of only if and .
So . Theorem 2 follows by duality.
X-NOR gate using NOR gates only
Four NOR gates are enough:
A ──┬──────────────┐
│ [NOR]── G2 ──┐
├──[NOR]── G1 ─┤ [NOR]── Y = A XNOR B
│ [NOR]── G3 ──┘
B ──┴──────────────┘
(G1 = NOR(A,B); G2 = NOR(A,G1); G3 = NOR(B,G1); Y = NOR(G2,G3).)
| A | B | G1 | G2 | G3 | Y |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 0 | 1 |
The output is 1 only when A = B, so the circuit is an X-NOR gate. (With NAND gates, four NANDs give X-OR and a fifth NAND used as an inverter gives X-NOR.)
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- De Morgan; NOR gate from NAND gates · Digital Logic, chapter 2
- De Morgan's laws; XNOR using NOR gates · Digital Logic, chapter 2
- De Morgan; positive NAND equals negative NOR · Digital Logic, chapter 2
- Prove De Morgan's theorems; XOR using NAND · Digital Logic, chapter 2 · asked 3×
- State and prove De Morgan's laws · Digital Logic, chapter 2 · asked 2×
- De Morgan's theorem and (-47+27) by 2's complement · Digital Logic, chapter 2
- State and prove De Morgan's theorems · Basic Electronics Engineering, chapter 6 · asked 4×
- De Morgan's theorem and duality theorem · Basic Electronics Engineering, chapter 6
- Why NOR and NAND are universal gates · Basic Electronics Engineering, chapter 6
- K-map and universal gate: xy + x'z + yz · Basic Electronics Engineering, chapter 6