L-5
L-5
Boolean Algebra
Boolean theorems, Demorgan’s Theorems,
Universality of NAND gates & NOR gates
(3) x . x = x
(1) x . 0 = 0
Prove Theorem (3):
Theorem-1 states that if any variable
If x = 0, then 0 . 0 = 0
is ANDed with 0, the result must be 0.
If x = 1, then 1 . 1 = 1
(2) x . 1 = x
Theorem-2 is also obvious by
comparison with ordinary multiplication. (4) x . x’ = 0
(5) x + 0 = x (7) x + x = x
Theorem-5 is straightforward, as 0 added to Theorem (7) can be proved by
anything does not affect value, either in regular checking for both values of x:
addition or in OR addition. 0+0= 0 and 1+1= 1.
(6) x + 1 = 1 (8) x + x’ = 1
Theorem-6 states that if any variable is
Theorem (8) can be proved similarly.
ORed with 1, the is always 1.
Check values: 0+1= 1 and 1+1= 1
Distributive law
(13a) x(y + z) = xy + xz
(13b) (w + x)(y + z) = wy + wz + xy + xz
Solutions:
x = CD (A + A’B)
= CD (A + B) [(15a) x + x’y = x + y]
= ACD + BCD
(16) (𝐱 + 𝐲) = 𝐱ഥ . 𝐲ഥ
Theorem (16) says inverting the OR sum of two variables is the same as inverting each
variable individually, then ANDing the inverted variables.
(17) (𝐱 . 𝐲) = 𝐱ഥ + 𝐲ഥ
Theorem (17) says inverting the AND product of two variables is the same as inverting each
variable individually and then ORing them.
(17) (𝐱 . 𝐲) = 𝐱ഥ + 𝐲ഥ (16) (𝐱 + 𝐲) = 𝐱ഥ . 𝐲ഥ
Try it yourself
(16) (𝐱 + 𝐲) = 𝐱ഥ . 𝐲ഥ
Try to simplify
T1
B
T2
wxyz+ wxyz’ 0 0 1 0 0
0 0 1 1 0
w
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
x
0 1 1 1 1
T1
1 0 0 0 0
1 0 0 1 1
y 1 0 1 0 1
1 0 1 1 1
1 1 0 0 0
z 1 1 0 1 1
1 1 1 0 1
(b) 1 1 1 1 1
= y’z + xy + wx’y 0 0 0 1 1
0 0 1 0 0
= y’z + y (x + wx’)
0 0 1 1 0
=y’z + y (x+w)(x+x’) X+YZ=(X+Y)(X+Z)
0 1 0 0 0
= y’z + y (w + x) = y’z + wy + xy 0 1 0 1 1
w 0 1 1 0 1
0 1 1 1 1
T1 1 0 0 0 0
x 1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
y Before simplification, total number of
1 1 0 0 0
gates = 11
1 1 0 1 1
z After simplification, total number of 1 1 1 0 1
(e) gates = 05 1 1 1 1 1