Boolean Algebra and Logic Simplification
Boolean Algebra and Logic Simplification
Boolean Algebra and Logic Simplification
- Sum Term:
o In Boolean algebra a sum term is a sum of literals
o In logic circuits a sum term is implemented as OR gate
- A sum term is equal to 1 when one or more of its literal are 1
- A sum term is equal to 0 if all of its literals ar 0
___________________________________________________________________________
Example 4.1:
Determine the values of A, B, C, and D that make the sum term +C+ equal to 0.
Solution
For the sum term to be 0, each of the literals in the term must be 0. Therefore, A = 0, B = 1
so that = 0, C = 0, and D = 1 so that = 0.
1
Chapter 4 Boolean Algebra and Logic Simplification
___________________________________________________________________________
Boolean Multiplication:
- Boolean multiplication is equivalent to AND operation
- Product Term:
o In Boolean algebra a product term is a product of literals
o In logic circuits a product term is implemented as AND gate
- A product term is equal to 0 if one or more of its literals are 0
- A product term is equal to 1 if all of its terms are 1
___________________________________________________________________________
Example 4.2:
Determine the values of A, B, C, and D that make the product term A C equal to 1.
For the term to be 1, each of the literals in the term must be 1. Therefore, A = 1, B = 0 so
that = 1, C = 1, and D = 0 so that =1.
___________________________________________________________________________
Associative Laws:
2
Chapter 4 Boolean Algebra and Logic Simplification
- ( ) ( )
- ( ) ( )
Distributive Law:
( )
Rule 1:
3
Chapter 4 Boolean Algebra and Logic Simplification
Rule 2:
Rule 3:
Rule 4:
Rule 5:
Rule 6:
Rule 7:
Rule 8:
Rule 9:
Rule 10:
4
Chapter 4 Boolean Algebra and Logic Simplification
Rule 11:
Rule 12: ( )( ) ( )
5
Chapter 4 Boolean Algebra and Logic Simplification
Demorgan’s Theorims:
Demorgan’s First Theorem:
The complement of a product of variables is equal to the sum of complements of
variables
6
Chapter 4 Boolean Algebra and Logic Simplification
Demorgan’s law apply also to expressions in which there are more than one variable
___________________________________________________________________________
Example 4.3:
Solution
(b) Let ABC = X and DEF = Y. The expression is of the form and
can be rewritten as
=( )( )
Next, apply DeMorgan’s theorem to each of the terms and
( )( )=( )( )
(c) Let A = X. D = Y. and EF = Z The expression is of the form
= And can be rewritten as
=( )( )( )
Next, apply DeMorgan’s theorem to each of the terms , ,and
( )( )( ) = ( + B)( C + )( + )
_______________________________________________________________________
7
Chapter 4 Boolean Algebra and Logic Simplification
A B C D CD B+CD A(B+CD)
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 1 0 0 0 0
0 0 1 1 1 1 0
0 1 0 0 0 1 0
0 1 0 1 0 1 0
0 1 1 0 0 1 0
0 1 1 1 1 1 0
1 0 0 0 0 0 0
1 0 0 1 0 0 0
1 0 1 0 0 0 0
1 0 1 1 1 1 1
1 1 0 0 0 1 1
1 1 0 1 0 1 1
1 1 1 0 0 1 1
1 1 1 1 1 1 1
8
Chapter 4 Boolean Algebra and Logic Simplification
___________________________________________________________________________
Example 4.4:
AB + A(B + C) + B(B + C)
Solution
Step1: Apply the distributive law to the second and third terms in the expression, as follows:
AB +AB + AC+ BB + BC
AB + AB + AC + B + BC
AB + AC + B + BC
AB + AC + B
B + AC
___________________________________________________________________________
Example 4.5:
9
Chapter 4 Boolean Algebra and Logic Simplification
[A ( ) ]C
Note that brackets and parentheses mean the same thing: the term inside is multiplied
(ANDed) with the term outside.
Solution
Step1: Apply the distributive law to the terms within the brackets.
(A C + A )C
(A )C
(A C + 0 + )C
(A C + )C
A CC +
A C+ C
( )
10
Chapter 4 Boolean Algebra and Logic Simplification
___________________________________________________________________________
Example 4.6:
Solution
( )( )+
( )( )+
___________________________________________________________________________
11