Chapter 2 Boolean Algebra and Logic Gates 45
Chapter 2 Boolean Algebra and Logic Gates 45
Chapter 2 Boolean Algebra and Logic Gates 45
1.Closure (+ and)
2.The identity elements
(1) +: 0
(2) : 1
April 22, 2017 Addis Abeba Science and Technology University 9
Postulates of Two-Valued Boolean
Algebra
3. The commutative laws
4. The distributive laws
y+ x x x (x y)+
x y z
z (y+z) y z (x z)
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 1 0 1 1
1 1 0 1 1 1 0 1
1 1 1 1 1 1 1 1
Show that xx = x.
xx = xx+0 by 2(a)
= xx+xx by 5(b)
= x(x+x) by 4(a)
= x1 by 5(a)
=x by 2(b)
Q.E.D.
April 22, 2017 Addis Abeba Science and Technology University 17
Proof of x+1=1
Theorem 2(a): x + 1 = 1
Huntington postulates:
x + 1 = 1 (x + 1) by 2(b)
Post. 2: (a) x+0=x, (b) x1=x
=(x + x')(x + 1) 5(a)
Post. 3: (a) x+y=y+x, (b) xy=yx
= x + x' 1 4(b) Post. 4: (a) x(y+z) = xy+xz,
(b) x+yz = (x+y)(x+z)
= x + x' 2(b) Post. 5: (a) x+x=1, (b) xx=0
=1 5(a) Th. 1: (a) x+x=x
Theorem 2(b): x 0 = 0 by duality
Theorem 3: (x')' = x
Postulate 5 defines the complement of x, x +
x' = 1 and x x' = 0
The complement of x' is x is also (x')'
x y xy x+x
y
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1
April 22, 2017 Addis Abeba Science and Technology University 19
DeMorgans Theorem
Theorem 5(a): (x + y) = xy
Theorem 5(b): (xy) = x + y
By means of truth table
x y z F1 F2 F3 F4
0 0 0 0 0 0 0
0 0 1 0 1 1 1
0 1 0 0 0 0 0
0 1 1 0 0 1 1
1 0 0 0 1 1 1
1 0 1 0 1 1 1
1 1 0 1 1 0 0
1 1 1 0 1 0 0
F2 = x + y'z
F4 = x y' + x' z
Multi-level implementation
AND
xy = yx
(x y)z = x(y z) = x y z
Simulation
Physical realization
ASIC, FPGA, PLD