EEE130 Digital Electronics I Lecture #4: - Boolean Algebra and Logic Simplification
EEE130 Digital Electronics I Lecture #4: - Boolean Algebra and Logic Simplification
Lecture #4
- Boolean Algebra and Logic Simplification -
• Associative laws – this law states that when ORing or ANDing more than two
variables, the result is the same regardless of the grouping of the variables
• Distributive law – this law states that ORing two or more variables and then
ANDing the result with a single variable is equivalent to ANDing the single
variable with each of the two or more variables and then ORing the products.
This law expresses the process of factoring in which the common variable A
is factored out of the product terms
4-2 (2) Cont’d
• Basic Laws and Boolean expressions
– Commutative law
A+B = B +A AB = BA
– Associative law
A + (B + C) = (A + B) + C A(BC) = (AB)C
– Distributive law
A(B + C) = AB + AC
Rules of Boolean Algebra
• There are 12 rules for Boolean 1. A + 0 = A
expressions. These rules are 2. A + 1 = 1
used to manipulate and simplify
Boolean expressions 3. A ¢ 0 = 0
• What are the rules?? Refer to 4. A ¢ 1 = A
the table on the right for list
below for details (or Table 4-1 5. A + A = A
in your text book)
¹=1
6. A + A
7. A ¢ A = A
¹=0
8. A ¢ A
¹=A
9. A
10. A + AB = A
¹ =A+B
11. A + AB
12. (A + B)(A + C) = A + BC
Rules Explanation(1)
1. A + 0 = A
2. A + 1 = 1
3. A ¢ 0 = 0
4. A ¢ 1 = A
5. A + A = A
¹=1
6. A + A
7. A ¢ A = A
¹=0
8. A ¢ A
¹=A
9. A
10. A + AB = A
¹ =A+B
11. A + AB
12. (A + B)(A + C) = A + BC
Rules Explanation(2)
1. A + 0 = A
2. A + 1 = 1
3. A ¢ 0 = 0
4. A ¢ 1 = A
5. A + A = A
¹=1
6. A + A
7. A ¢ A = A
¹=0
8. A ¢ A
¹=A
9. A
10. A + AB = A A + AB = A(1 + B)
¹ =A+B
11. A + AB = A¢1
12. (A + B)(A + C) = A + BC
=A
Rules Explanation(3)
1. A + 0 = A ¹ = (A + AB) + AB ¹
A + AB
2. A + 1 = 1 = (AA + AB) + AB ¹
= AA + AB + AA ¹ + AB
¹
3. A ¢ 0 = 0
¹
= (A + A)(A + B)
4. A ¢ 1 = A = 1 ¢ (A + B)
5. A + A = A = A+B
¹=1
6. A + A
(A + B)(A + C) = AA + AC + AB + BC
7. A ¢ A = A = A + AC + AB + BC
¹=0
8. A ¢ A = A(1 + C) + AB + BC
= A ¢ 1 + AB + BC
¹=A
9. A = A(1 + B) + BC
10. A + AB = A = A ¢ 1 + BC
¹ =A+B
11. A + AB
= A + BC
12. (A + B)(A + C) = A + BC
4-3 DeMorgan’s Theorems
• Why DeMorgan’s Theorems are important for Boolean algebra?
– It provides mathematical verification of the equivalency of the NAND
and negative-OR gates and NOR and negative-AND gates
– In other words, it helps us to simplify Boolean expressions by utilizing:
• NAND or negative-OR
• NOR or negative-AND
• So please remember these two diagrams (and the truth table, of
course)
XY = XY X +Y = X +Y
X +Y = X +Y XY = X Y
4-4 Boolean Analysis of Logic
Circuits
• Boolean algebra provides a concise way to express the operation of
a logic circuit formed by a combination of logic gates so that the
output can be determined for various combinations of input values
• Boolean expression for a logic circuit
– Method of implementation
• Begin at the left-most inputs and work toward the final output, writing the
expression for each gate
• Let’s try to do example in Figure 4-16 (in the text book)
• Constructing a truth table for a logic circuit
– Subsequent to the Boolean expression determination, the truth table is
developed
– We need to evaluate the Boolean expression for all possible
combinations of values for the input variables
– So, if there are n inputs then we need to evaluate 2n combinations…
Figure 4-16
The answer is
A(B + CD)
Evaluating the Expression
• We need to do these following items when evaluating the
expression
– Find the values of variables that make the expression equal to 1
(use Boolean addition and multiplication)
• Evaluate the first term, A
A(B + CD) = 1 ¢ 1 = 1 if A = 1; B + CD = 1
• Evaluate the second term, (B + CD)
B + CD = 1 + 0 = 1 if B = 1
B + CD = 0 + 1 = 1 if CD = 1
B + CD = 1 + 1 = 1 if B = 1; CD = 1
– As we may see,
• A(B+CD)=1
– when A=1 and B=1 regardless of the values of C and D, or
– when A=1 and C=1 and D=1 regardless of the value of B
• A(B+CD) = 0 for other conditions
Putting the results in truth table
format
• Remember these following items:
1. List out the 16 (or the n) input variable combinations
of 1s and 0s in a binary sequence
2. Place a 1 in the output column for each combination
of input variables that was determined in the
evaluation
• What are the inputs involved here??
– Remember the observations that we made in the previous
slide
3. Finally, place a 0 in the output column for all other
combinations of input variables
4-5 Simplification using Boolean
Algebra
INPUTS OUTPUT
A B C D A(B+CD)
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
4-5 Simplification using Boolean
Algebra
• In logic circuits applications, we need to
reduce an expression to its simplest form
or change its form to a more convenient
one to implement the expression more
efficiently
• How to do this??
– We need to understand the laws, rules,
DeMorgan Theorems and of course, basics in
logic circuits like AND, OR, NAND, NOR,
XOR, XNOR, NOT, etc.
Example of simplified logic circuits