Ch02-B.ppt
Ch02-B.ppt
Ch 2 Part B
Boolean Algebra and Logic Gates
2
Contents
▪ Digital circuits
▪ Boolean Algebra
▪ Two-Valued Boolean Algebra
▪ Boolean Algebra Postulates
▪ Precedence of Operators
▪ Truth Table & Proofs
▪ Duality
3
x x
x.y x+y x x'
y y
7. Consensus/redundancy theroem.
(a) x.y + x'.z + y.z = x.y + x'.z
(b) (x+y).(x'+z).(y+z) = (x+y).(x'+z)
22
Basic Theorems of Boolean
Algebra
▪ Theorems can be proved using the truth table
method. (Exercise: Prove De-Morgan’s theorem
using the truth table.)
▪ They can also be proved by algebraic manipulation
using axioms/postulates or other basic theorems.
23
Basic Theorems of Boolean
Algebra
▪ Theorem 4a (absorption) can be proved by:
x + x.y = x.1 + x.y (identity)
= x.(1 + y) (distributivity)
= x.(y + 1) (commutativity)
= x.1 (Theorem 2a)
=x (identity)
▪ By duality, theorem 4b:
x.(x+y) = x
▪ Try prove this by algebraic manipulation.
24 Simplification of Boolean
Algebra
(x + y)(x + y') = x + yy' = x
25 Boolean Functions
▪ Examples:
F1= xyz'
F2= x + y'z
F3=(x'y'z)+(x'yz)+(xy')
F4=xy'+x'z
Example: F1 = xyz'
Complement:
F1' = (xyz')'
= x' + y' + (z')' DeMorgan
= x' + y' + z Involution
28 Complement of Functions
▪ More general DeMorgan’s theorems useful for
obtaining complement functions:
(A + B + C + ... + Z)' = A' . B' . C' … . Z'
(A . B . C ... . Z)' = A' + B' + C' + … + Z'
29 Standard Forms
▪ Certain types of Boolean expressions lead to
gating networks which are desirable from
implementation viewpoint.
▪ Two Standard Forms:
Sum-of-Products and Product-of-Sums
▪ Literals: a variable on its own or in its
complemented form. Examples: x, x' , y, y'
▪ Product Term: a single literal or a logical product
(AND) of several literals.
Examples: x, xyz', A'B, AB
30 Standard Forms
▪ Sum-of-Minterms ⇒ Product-of-Maxterms
❖ Rewrite minterm shorthand using maxterm shorthand.
❖ Replace minterm indices with indices not already used.
▪ Product-of-Maxterms ⇒ Sum-of-Minterms
❖ Rewrite maxterm shorthand using minterm shorthand.
❖ Replace maxterm indices with indices not already used.
End of segment