- 2081 Baisakh · 2+3 marks
De Morgan's laws; XOR from NAND gates
Short answer
De Morgan's laws allow complementing expressions, converting SOP/POS forms for NAND/NOR realization, and simplifying circuits. A two-input XOR uses four NAND gates: Y = NAND( NAND(A, NAND(A,B)), NAND(B, NAND(A,B)) ).
What is the importance of De-Morgan's laws? Show how a two-input XOR gate can be constructed from a two-input NAND gate with required expressions.
Importance of De Morgan's laws
De Morgan's laws, and , are important because:
- They let us complement any Boolean expression (break the bar, change AND ↔ OR).
- They convert SOP forms to NAND-NAND and POS forms to NOR-NOR circuits, so any circuit can be built with one type of universal gate, which reduces IC types and cost.
- They show gate equivalences: NAND = bubbled OR, NOR = bubbled AND; useful for reading and drawing circuits with active-low signals.
- They help in simplifying expressions and in proving positive/negative logic equivalences.
XOR from 2-input NAND gates
needs four 2-input NAND gates.
Gates: , , , .
A --+---------------[NAND G2]--+
| | |
+--[NAND G1]--G1--+ +--[NAND G4]-- Y
| | |
B --+---------------[NAND G3]--+
| A | B | Y | |||
|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 0 |
| 0 | 1 | 1 | 1 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 1 | 0 |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- De Morgan's laws; XOR using 3-input NAND · Digital Logic, chapter 2
- De Morgan; NOR gate from NAND gates · Digital Logic, chapter 2
- Prove De Morgan's theorems; XOR using NAND · Digital Logic, chapter 2 · asked 3×
- De Morgan's laws; XNOR using NOR gates · Digital Logic, chapter 2
- XOR gate using minimum NAND gates · Digital Logic, chapter 2 · asked 2×
- 3-input XOR using NAND gates only · Digital Logic, chapter 2 · asked 2×
- X-OR gate using NAND gates only · Basic Electronics Engineering, chapter 6