محاضرة 5
Circuit Simplification, DeMorgan's Laws, and K-Maps
استخدام نظريات التبسيط الجبرية، قوانين (DeMorgan)، ومقدمة لخرائط كارنوف (K-Maps).
ملخص المحاضرة
📜 Lecture 5: Boolean Algebra & Simplification
This lecture introduces the algebraic rules used to simplify Boolean expressions, which leads to smaller, cheaper, and faster circuits.
Key Concepts
-
DeMorgan's Laws:
(X + Y)' = X' · Y'(Break the bar, change the OR to AND)(X · Y)' = X' + Y'(Break the bar, change the AND to OR)- Extended Example:
(X·Y' + Z)' = (X·Y')' · Z' = (X' + Y) · Z'
-
Basic Boolean Laws (Summary):
- Operations with 0/1:
X + 0 = XX · 1 = X(Identity)X + 1 = 1(Annihilator)X · 0 = 0(Annihilator)
- Idempotent Law:
X + X = XX · X = X
- Complementarity Law:
X + X' = 1X · X' = 0
- Distributive Laws:
X(Y + Z) = XY + XZX + YZ = (X + Y) · (X + Z)(This is a key rule)
- Commutative/Associative Laws: Order doesn't matter.
X + Y = Y + XX(YZ) = (XY)Z = XYZ
- Operations with 0/1:
-
Duality:
- To find the Dual (F^D) of an expression: Swap all
+and·, and swap all0and1. - Crucially: Variables and complements are not changed.
- Example:
F = A·B' + C - Dual:
F^D = (A + B') · C
- To find the Dual (F^D) of an expression: Swap all
-
Relationship between Dual and Complement:
- The Complement (
F') and the Dual (F^D) are related. F'(A,B,C) = F^D(A', B', C')- (The complement of a function is the dual of that function with all inputs complemented).
- The Complement (
-
Graphical DeMorgan's Law:
- A method for transforming gates visually.
- Example: A NOR-NOR circuit
( (A+B)' + (C+D)' )'can be transformed. Applying DeMorgan's to the final NOR gives(A+B)'' · (C+D)'' = (A+B)·(C+D). This is an OR-AND circuit. - The lecture shows a NAND-NOR circuit
( (AB)' + (CD)' )'simplifying to(AB)'' · (CD)'' = AB · CD, which is a single 4-input AND gate.
-
Simplification Theorems:
- Absorption Law:
X + XY = XX(X + Y) = X(Dual)
- Adjacency Law:
XY + XY' = X(X + Y)(X + Y') = X(Dual)
- Redundancy Theorem:
XY + X'Z + YZ = XY + X'Z- The
YZterm is redundant and can be removed.
- Absorption Law:
-
Circuit Minimization Example (from Lecture 4):
- Function:
f = A'BC' + A'BC + AB'C + ABC - Step 1: Group adjacent terms using
X+X=X(Idempotent Law) to duplicate a term:f = (A'BC' + A'BC) + (A'BC + ABC) + (AB'C + ABC) - Step 2: Apply Adjacency Law (
XY + XY' = X) to each group:(A'B)(C' + C) = A'B(BC)(A' + A) = BC(AC)(B' + B) = AC
- Step 3: Resulting expression:
f = A'B + BC + AC - Step 4: Apply Redundancy Theorem (
XY + X'Z + YZ = XY + X'Z):- Here
X=A,Y=C,Z=B. The termBC(orYZ) is redundant.
- Here
- Final Simplified Function:
f = A'B + AC
- Function: