3. A Boolean function is an expression formed with:
Binary variables
Operators (OR, AND, and NOT)
Parentheses, and equal sign
The value of a Boolean function can be either 0 or 1
A Boolean function may be represented as:
An algebraic expression, or
A truth table
A Logic diagram
80
Boolean Functions
4. 13 / 28
• Boolean Expression
Example: F(x, y) = x + y’ z
• Truth Table
All possible combinations
of input variables
• Logic Circuit
x y z F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
x
y
z
F
BOOLEAN FUNCTIONS
DIGITAL PRINCIPLES AND SYSTEM DESIGN 4
6. Simplification - EXAMPLE
• (A + B)(A + C) = A + BC
• This rule can be proved as follows:
• (A + B)(A + C) = AA + AC + AB + BC Distributive law
• = A + AC + AB + BC AA = A
• = A( 1 + C) + AB + BC 1 + C = 1
• = A. 1 + AB + BC Factoring (distributive law)
• = A(1 + B) + BC 1 + B = 1
• = A. 1 + BC A . 1 = A
• = A + BC
7. Simpification - EXAMPLE
Simplify the following expression
Y = (A + B) (A’ + C) (B' + C’)
Y = (A + B) (A’ + C) (B' + C’)
= (AA' + AC +A'B +BC) (B' + C') [A.A' = 0]
= (AC + A'B + BC) (B' + C’)
= AB'C + ACC' + A'BB' + A'BC' + BB'C + BCC‘
= AB'C + A'BC
8. Simplification - EXAMPLE
• Prove that ABC + ABC' + AB'C + A'BC = AB + AC + BC
• ABC + ABC' + AB'C + A'BC
= AB(C + C') + AB'C + A'BC
= AB + AB'C + A'BC
= A (B + B'C) + A'BC
= A (B + C) (B + B') + A'BC
= AB + AC + A'BC
= B (A + A'C) + AC
= B (A + A') (A + C) + AC
= AB + BC + AC
= AB + AC +BC ...Proved
9. Simplification – Example
•Solve the boolean expression
•(x+ y) (x+ y’)
= x.x+ xy’+ yx+ yy’
= x+ xy’+ xy+ 0 [ x. x= x]; [ y. y’= 0]
= x (1+ y’+ y)
= x (1) [ 1+y= 1 ]
= x.
11. Consensus Theorem
AB + C + BC = AB + C
Proof Steps
AB + C + BC
= AB + C + 1 · BC
= AB + C + (+ A) · BC
= AB + C + BC + ABC
= AB (1+C) +C (1 + B)
= AB . 1 + C . 1
= AB + C
13. The complement of a Boolean function is obtained by
interchanging:
Operators OR and AND
Complementing each literal
This is based on De Morgan’s theorems,
whose general form is:
A 1+A 2 +A 3 +...+An = A 1A 2 A 3 ...An
A 1A 2 A 3 ...An = A 1+A 2 +A 3 +...+An
80
Complement of a Boolean Function
15. SUM OF PRODUCT
• The sum-of-products (SOP) form is a method (or form) of simplifying the Boolean
expressions of logic gates.
• Sum and product derived from the symbolic representations of the OR and AND
functions.
• OR (+) , AND ( . ) , addition and multiplication.
• Minterms : It is a product term that consists of all the varaibles in complemented or
true form
f(A,B,C) = ABC + A’BC’
SUM
PRODUCT TERM
16. A sum-of-products (SOP) expression is a product term
or several product terms logically added (ORed)
together. Examples are:
F(x,y,z)=
xy+z
F(x,y,z) =x+ yz
F(x,y)= xy+
xy
80
Sum-of-Products (SOP) Expression
17. A B C F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
CONVERTING FROM TRUTH TABLE
TO BOOLEAN FUNCTION
Truth Table to Boolean Function
F = A’B’C+ AB'C' + AB'C +ABC
Using Minterms
DIGITAL PRINCIPLES AND SYSTEM DESIGN 17
18. CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
• Sum of Minterms
• F =A’B’C + AB’C’ + AB’C+ ABC
• F= m1 + m4 + m5 + m7
DIGITAL PRINCIPLES AND SYSTEM DESIGN 18
A B C F
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 0
4 1 0 0 1
5 1 0 1 1
6 1 1 0 0
7 1 1 1 1
F = ∑(1,4,5,7)
19. x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
80
The following 3 combinations of the variables produce a 1:
001, 100, and 111
Expressing a Function in its
Sum-of-Products Form (Example)
(Continued on next slide)
20. Expressing a Function in its
Sum-of-Products Form (Example)
(Continued from previous slide..)
Their corresponding minterms are:
x y z, x y z, and x y
z
Taking the OR of these minterms, we get
F1 =xy z+ x y z+ x y
z=m1+m4 m7
80
F1 xy z=1, 4,7
22. CANONICAL FORM
• In SOP or POS form, all individual terms do not
involve all literals.
• For example AB + A’BC the first product term
do not contain literal C.
• If each term in SOP or POS contain all
literals then the expression is known as
canonical form.
23. CONVERT SOP TO CANONICAL
SOP FORM
•Step 1: Find the missing literal in each product term if any.
•Step 2: And each product term having missing literals with
terms form by ORing the literal and its complement.
•Step 3: Expends the term by applying, distributive
law and reorder the literals.
•Step 4: Reduce the repeated product terms.
Because A + A = A (Theorem 1a ).
24. EXAMPLE
f (A,B,C) = AB + BC + AC
Step 1: Find the missing literals in each product
term.
f (A,B,C) = AB + BC + AC
Step 2: AND the product term with missing literal + its
complement.
f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’)
Literal B is missing
Literal A is missing
Literal C is missing
Missing literals and their complements
25. Step 3: Expends the term and reorder the literals.
f (A,B,C) = AB . (C+C’) + BC . (A+A’) + AC . (B+B’)
Expand & Reorder:
ABC + ABC’ + ABC + A’BC + ABC + AB’C
Step 4: Omit repeated product terms.
f(A,B,C)=ABC + ABC’ + ABC + A’BC + ABC + AB’C
f(A,B,C)= ABC + ABC’ + A’BC + AB’C
Write once
26. PRODUCT OF SUM
• When two or more sum terms are multiplied by a Boolean OR operation.
• Sum terms are defined by using OR operation and the product term is
defined by using AND operation.
• Maxterms : It is a sum term that consists of all the varaibles in
complemented or true form
f(A,B,C) = (A’+C) . (A’+B+C’)
PRODUCT
SUM TERM
27. Product-of Sums (POS) Expression
A product-of-sums (POS) expression is a sum term
(maxterm) or several sum terms (maxterms) logically
multiplied (ANDed) together. Examples are:
F(x,y) = x+ yx+ yx+y
F(x,y,z) = x + yx+ y+z
F(x,y) = x+ yx+y
80
28. 21 / 28
A B C F
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
Truth Table to Boolean Function
F = ( A + B +C') ( A' + B + C)( A '+ B + C')( A' + B' + C')
Using Maxterms
DIGITAL PRINCIPLES AND SYSTEM DESIGN 28
29. CONVERTING FROM TRUTH TABLE TO
BOOLEAN FUNCTION
• Productof Maxterms
• F=(A+B+C).(A+B’+C).(A+B’+C’).(A’+B’+C)
• F= m0 . m2 . m3 . M6
DIGITAL PRINCIPLES AND SYSTEM DESIGN 29
A BC F
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 0
4 1 0 0 1
5 1 0 1 1
6 1 1 0 0
7 1 1 1 1
F = Π (0,2,3,6)
30. x y z F1
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
The following 5 combinations of variables produce a 0:
000, 010, 011, 101, and
110
Expressing a Function in its
Product-of-Sums Form
(Continued on next slide)
31. Product-of-Sums Form
(Continued from previous slide..)
Their corresponding maxterms are:
x+ y+ z, x+ y+ z, x+ y+ z,
x+ y+ z and x+ y+ z
Taking the AND of these maxterms, we get:
F1 =x+ y+ zx+ y+ z x+ y+ z x+
y+z
x+ y+z=M0 M2 M3 M5 M6
F1 x,y,z = Π0,2,3,5,6
33. CONVERT POS TO STANDARD
POS FORM
•Step 1: Find the missing literal in each sum term if any.
•Step 2: OR each sum term having missing literals with terms
form by ANDing the literal and its complement.
•Step 3: Expends the term by applying, distributive
law and reorder the literals.
•Step 4: Reduce the repeated product terms. Because A +
A = A (Theorem 1a ).
34. EXAMPLE
f (A,B,C) = (A + B) . (B + C) . (A + C)
Step 1: Find the missing literals in each sum
term.
f (A,B,C) = (A + B) . (B + C) . (A + C)
Step 2: OR the sum term with missing
literal . its complement.
f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A +
C)+(B.B’)
Literal B is missing
Literal A is missing
Literal C is missing
Missing literals and their complements
35. Step 3: Expends the term and reorder the
literals.
f (A,B,C) = (A + B)+(C.C’) + (B + C)+(A.A’) + (A +C)+(B.B’)
Expand & Reorder:
f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C).
(A+B’+C)
Step 4: Omit repeated sum terms.
f(A,B,C)=(A+B+C).(A+B+C’).(A+B+C).(A’+B+C).(A+B+C).(A+B’+C)
f(A,B,C)=(A+B+C).(A+B+C’).(A’+B+C).(A+B’+C)
Write once
36. =
Σ
To convert from one canonical form to another,
interchange the symbol and list those numbers missing
from the original form.
Example:
Fx,y,z= Π0,2,4,5 = Σ1,3,6,7
Fx,y,z 1,4,7 = Σ0,2,3,5,6
Conversion Between Canonical Forms (Sum-of-
Products and Product-of-Sums)
37. Note that each minterm is the complement of its corresponding maxterm and vice-versa
Variables Minterms Maxterms
x y z Term Designation Term Designation
0 0 0
x y z m 0 x y z M 0
0 0 1
x y z m 1 x y z M 1
0 1 0
x y z m 2 x y z M 2
0 1 1
x y z m 3 x y z M 3
1 0 0
x y z m 4 x y z M 4
1 0 1
x y z m 5 x y z M 5
1 1 0
x y z m 6 x y z M 6
1 1 1
x y z m 7 x y z M 7
80
Minterms and Maxterms for three Variables