3 Boolean Algebra
3 Boolean Algebra
BOOLEAN ALGEBRA
• Parenthesis ( )
• NOT
• AND
• OR
• Ex. (x + yz)’
BOOLEAN FUNCTION
• Boolean algebra
• is an algebra that deals with binary variables and logic operations
• Boolean function
• Expresses the logical relationship between binary variables and is
evaluated by determining the binary value of the expression for all
possible values of the variables.
• Ex. F = x + y’z
BOOLEAN FUNCTION CONT…
• F = x + y’z
• Truth Table => number of rows is determined through 2n
where n is the number of variables in a function.
•Logic diagram
ALGEBRAIC MANIPULATION
• Ex.
• 1. xy + xy’
• 2. (a + b + c’)(a’ b’ + c)
• F = F’
• Obtained from an interchange of 0’s and 1’s
• Applying DeMorgan’s theorems achieves complement of a function.
• Ex.
• (A + B + C) = (A + B + C)’ = A’B’C’
IN SHORT:
• The generalized form of DeMorgan’s theorems states that the complement
of a function is obtained by interchanging AND and OR operators and
complementing each literal.
COMPLEMENT OF A FUNCTION
• F2 = x(y’z’ + yz)
CANONICAL AND STANDARD FORMS
Taking the complement of the above functions will obtain the product of
maxterms of f1
• Product meaning the ANDing of terms
Hence:
Sum of Minterms
or
Product of Maxterms
• F = A + B’C
• 3 variables
• 1st term has two missing variables B and C
• 2nd term has one missing variable A
• Therefore: (EXPAND AND DISTRIBUTE)
• F = A + B’C = A(B+B’)(C+C’) + B’C(A+A’)
• = ABC + ABC’ + AB’C + AB’C’ + AB’C + A’B’C
• = ABC + ABC’ + AB’C + AB’C’ + A’B’C
• ARRANGE IN ASCENDING ORDER
F = A’B’C + AB’C’ + AB’C + ABC’ + ABC
F = m 1 + m4 + m5 + m6 + m7
F = Σ(1,4,5,6,7)
EXAMPLE 1 ALTERNATE PROCEDURE
• F = Σ(1,4,5,6,7)
EXPRESSING THE FOLLOWING FUNCTION
AS A PRODUCT OF MAXTERMS
• To express a Boolean function as a product of maxterms,
• it must first be brought into a form of OR terms. This may be
done by using the distributive law,
• x + yz = (x + y)(x + z).
• Then any missing variable x in each OR term is ORed with
xx’.
EXAMPLE 1
• F = xy + x’z
• (expand by applying distributive law of OR over AND)
CONVERSION BETWEEN CANONICAL
FORMS
• F(A, B, C) = Σ(1, 4, 5, 6, 7)
• F’(A, B, C) = Σ(0, 2, 3) => COMPLEMENT
• F’(A, B, C) = m0 + m2 + m3
• (F’)’(A, B, C) = (m0 + m2 + m3)’ => involution
• F(A, B, C) = m0‘• m2‘• m3‘
• F(A, B, C) = M0• M2• M3 => where: mj’=Mj
• F(A, B, C) = ᴨ(0, 2, 3)
STANDARD FORMS
• SUM OF PRODUCTS
• A boolean expression containing AND terms called product terms with
one or more literals each term.
• Ex. F1 = y’ + xy + x’yz’
• The following circuit diagram configured as two-level implementation
where variables are directly available in their complements.
STANDARD FORMS
• PRODUCT OF SUMS
• is a Boolean expression containing OR terms, called sum terms. Each
term may have any number of literals.
• Ex. F2 = x(y’ + z)(x’ + y + z’)
• The following is its circuit diagram in two-level
implementation
NON STANDARD FORM
• XOR gate
• The exclusive‐OR and equivalence gates are both
commutative and associative and can be extended to more
than two inputs.
END