Professional Documents
Culture Documents
BOOLEAN ALGEBRA
Lesson Outcome
At the end of the lesson, students
should be able to describe and
explain:
• Boolean Operations and Expressions
• Laws and Rules of Boolean Algebra
• De Morgan’s Theorems
• Boolean Analysis of Logic Circuits
• Standard Forms of Boolean Expressions (SOP and POS)
• Simplification using Boolean Algebra
• Karnaugh Map Minimization up to 4 variables (SOP and POS)
INTRODUCTION
• Logic can be expressed in algebraic form.
• Boolean algebra is a tool for analysis and
design of digital systems.
• Boolean algebra consist of Boolean
constant and variables.
1 A 0 A
2 A 1 1
3 A 0 0
4 A 1 A
5 A A A
6 A A A
7 A A A
8 A A 0
9 A A
15 A BC D AC AD BC BD
16 A AB A @ A( A B) A
17 A AB ( A A)( A B )
A B
@
A BC ( A B )( A C )
18 A BC A B A C
ECE351 Chapter 3: Boolean Algebra 98
BOOLEAN SIMPLIFICATION
Example 1:
Simplify the equations using Boolean Algebra Theorem
(A + B)(A + C) = AA + AC + AB + BC
= A + AC + AB + BC
= A(1 + C + B) + BC
= A . 1 + BC
= A + BC
Example 2:
Simplify the equations
From rules no 17 : F X XY
X X X Y
X Y
ECE351 Chapter 3: Boolean Algebra 99
BOOLEAN SIMPLIFICATION
Example 2:
Solution F X XY
X X X Y
X Y
F X XY F X XY
X 1 Y X Y X 1 Y X Y
X X X Y XY
X X X Y XY
XX X X XY X Y XX X X XY X Y
XX XY X X X Y (rules 15) X (X X ) Y(X X )
( X X )( X Y ) X (1) Y (1)
X Y
(1)( X Y ) X Y
(1)( X Y ) ( X X )( X Y )
1. X Y X Y
2.
X Y X Y
• Also valid for 3 or more inputs
X Y Z X Y Z
X Y Z X Y Z
F ( A C ) ( B D)
AC B D
A C BD
A C B D
where D D and A A
Y AB A B C B B C
Y AB A B C B B C
AB A( B.C ) B( B.C )
AB AB.C ) ( B B)C
AB AB.C ) 0
AB(1 C )
AB
ECE351 Chapter 3: Boolean Algebra 104
DE MORGAN’S THEOREM
Example 5:
Simplify the equations below Using NAND gate only
X AB AC
Solution
X AB AC
AB AC
Example 6:
Simplify the equations below Using NOR gate only
X AB AC
Solution
X AB AC
A( B C )
A( B C )
A (B C)
f ABD C C ABCD
f ABDC ABDC ABCD Standard
SOP
A B CC A B C
A B C A B C A B C Standard
SOP
Apply rules no 17
A B CC
A B C A B C
f A,B,C (A B C) ( A B C) ( A B C) (A B C)
A 1 A B C 000 M0
A0 A B C 101 M5
A B C 011 M3
Π POS = 0 A B C 111 M7
ECE351 Chapter 3: Boolean Algebra 110
SOP POS CONVERSION
• Steps:
– Find the binary # for each term in
SOP / POS and evaluate it
– Find the combination of the binary #
that not include in (1)
– Derive equation for each binary in (2)
• Step 3
f A B C A B C A B C
ECE351 Chapter 3: Boolean Algebra 112
POS SOP
f A B C A B C A B C
4 100 A B C ABC 111 7
3 011 A B C AB C 110 6
2 010 A B C A BC 101 5
A BC 001 1
A BC 000 0
Input Output
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 0
1 1 0 0
1 1 1 1
ECE351 Chapter 3: Boolean Algebra 116
Example 8:
F ( A B C )( A B C )( A B C )( A B C )( A B C )
Input Output
A B C F
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Input Output
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 0
1 1 0 0
1 1 1 1
ECE351 Chapter 3: Boolean Algebra 118
Example 9:
For given truth table, obtain:
a) SOP expression Input Output
b) POS expression A B C F
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
- 4 inputs 0
0
0
0
0
0
0
1
1
1
0 0 1 0 0
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
ECE351 Chapter 3: Boolean Algebra 123
Solution: K-Map – 4 inputs
a b c d f
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 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 X
1 0 1 1 X
1 1 0 0 X
1 1 0 1 X
1 1 1 0 X
1 1 1 1 X
• Problem Statement
• Design a logic circuit that has three inputs, A,
B and C and whose output will be ‘1’(high)
only when majority of the inputs is high.
Solution
Step 1
Interpret problem and set up the truth table
129
Step 1 :Truth Table
A B C X Step 2 :
1 0 0 0
1 0 1 1 AB C
1 1 0 1 AB C
1 1 1 1 AB C
130
Step 3
Write the SOP expression for the output
Step 4
Simplify the output expression (using K-Map)
131
Step 5
Implement the circuit for final expression
132
DESIGN QUESTION
• Steps:-
– Identify the input then build the truth table
– Identify the MSB and LSB bit
– Identify whether SOP or POS equation.
– Simplify using K-Map
F ( A, B, C ) AB AC B ABC ABC
can be simplified as
F ( A, B, C ) AC B
136
3. State 2 methods that can be used to simplify Boolean
expressions.
a) A+B
b) A–B
F ( A, B, C ) AC AB B
5. Explain the Karnaugh Map simplification technique.
137
7. Answer the questions:
138
8. Answer the questions:
139
9. Answer the questions:
140
11.
141