Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates
• AND Operation
• OR Operation
• NOT Operation
Proving the Distributive Law
Duality
P2 x+0 =x x1=x
p5 x+x‘ = 1 x x‘ = 0
T1 x+x=x xx=x
T2 x+1=1 x0=0
T3, involution (x‘)’ = x
p3 x+y = y+x xy = yx
T4 x+(y+z)=(x+y)+z x(yz) =(xy)z
P4 x(y+z)=xy+xz x+yz=(x+y)(x+z)
T5, DeMorgan (x+y)‘ =x’y‘ (xy)‘=x’+y‘
T6, absorption x+xy = x x(x+y) =x
Basic Theorems
x+x=x
x + x = (x + x) · 1 By postulate: 2(b)
= (x + x) · (x + x’) 5(a)
= x + x · x’ 4(b)
=x+0 5(b)
=x 2(a)
Proving Theorem 1(b)
x.x=x
x.x=xx+0 By postulate: 2(a)
= x x + xx‘ 5(b)
= x (x + x') 4(a)
=x.1 5(a)
=x 2(b)
Proving Theorem 2(a)
x+1=1
x + 1= 1 . (x + 1) By postulate: 2(b)
= (x + x’)(x + 1) 5(a)
= x + x' 1 4(b)
= x + x' 2(b)
=1 5(a)
• Theorem 2(b) can be proved by duality:
x.0=0
Proving Theorem 6(a)
x +x . y = x
=x.1+x.y by postulate: 2(b)
= x . (1 + y) 4(a)
= x . (y + 1) 3(a)
=x.1 by theorem: 2(a)
=x by postulate: 2(b)
Proving Theorem 6(b)
x · (x + y) =
= (x + 0) · (x + y) by postulate: 2(a)
=x+0·y 4(b)
=x+y·0 3(b)
=x+0 by theorem: 2(b)
=x by postulate: 2(a)
DeMorgan’s Theorem
A A B C F
B 0 0 0 0
F 0 0 1 0
A 0 1 0 0
C F = AB + AC
0 1 1 0
B 1 0 0 0
C
1 0 1 1
F
A 1 1 0 1
F = A(B + C) 1 1 1 1
Gate Implementation (Examples)
A
A B F
F
0 0 1
B F = A’ B’ 0 1 0
1 0 0
A 1 1 0
F
B
F = (A + B)’
Minimization
• Minimized
Function
Algebraic Manipulation
• If F1 = A+B+C
• Then F1’
=(A+B+C)'
= (A+X)’ let B+C = X
= A'X' by DeMorgan's
= A'(B+C)'
= A'(B'C') by DeMorgan's
= A'B'C' associative
Complement of a Function (More Examples)
• (x'yz' + x'y'z)'
= (x'yz')' (x‘y'z)'
= (x+y'+z) (x+y+z')
• [x(y'z'+yz)]'
= x' + ( y'z'+yz)'
= x' + (y'z')' (yz)'
= x' + (y+z) (y'+z')
• A simpler procedure
– take the dual of the function (interchanging AND and OR operators a
nd 1’s and 0’s) and complement each literal. {DeMorgan’s Theorem}
– x'yz' + x'y'z
The dual of function is (x'+y+z') (x'+y'+z)
Complement of each literal: (x+y'+z)(x+y+z')
Representation Conversion
Circuit Boolean
Expression
Truth
Table
Canonical Forms
x y z Minterm x y z Maxterm
0 0 0 x’y’z’ m0 0 0 0 x+y+z M0
0 0 1 x’y’z m1 0 0 1 x+y+z’ M1
… …
1 0 0 xy’z’ m4 1 0 0 x’+y+z M4
… …
1 1 1 xyz m7 1 1 1 x’+y’+z’ M7
Obtaining Sum of Minterms Form