4 Boolean Algebra Spring25v2
4 Boolean Algebra Spring25v2
Boolean Algebra
❑ The complement is the inverse of a variable and is indicated by a bar over the
variable (overbar). The complement of the variable A is read as "not A" or "A
bar."
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Precedence Operator
level
1 brackets ( )
2 Boolean complement NOT
3 Boolean product AND
4 Boolean sum OR
Note:
Brackets have the highest precedence, i.e.,
everything inside brackets is evaluated first.
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Boolean Addition
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB
Boolean Multiplication
Boolean multiplication is equivalent to the AND operation
0*0=0
0*1=0
1*0=0
1*1 =1
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
A + (B + C) = (A + B) + C
❑ Distributive Law:
A(B + C) = AB + AC
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
11
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
:
DeMorgan’s Theorem
DeMorgan's first theorem is stated as follows:
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB
Remember:
“Break the bar,
change the sign”
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
• Standard SOP: It is an expression where all the variables are present in each
product terms. The products in a SSOP are called min terms (𝐦𝐢) .
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
• Product of Sum: A Sum is defined as a term consisting of sum of the literals. When
two or more sum terms are multiplied in a Boolean Expression, it is called the Product-
of Sum (POS).
• Standard POS: It is an expression where all the variables are present in each sum
terms. Each sum terms are called max terms (𝐌𝐢) .
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
From the truth table determine the standard SOP expression and the equivalent POS
expression.
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Boolean expression.
A Karnaugh map provides a systematic method for simplifying Boolean expressions and,
if properly used, will produce the simplest SOP or POS expression possible, known as the
minimum expression.
The effectiveness of algebraic simplification depends on your familiarity with all the laws,
rules, and theorems of Boolean algebra and on your ability to apply them. The Karnaugh
map, on the other hand, provides a "cookbook" method for simplification.
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Cell Adjacency
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
A Boolean expression must first be in standard form before you use a Karnaugh map.
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
1 1 1 1 1 1 1
1 1 1 1 1 1
1 1 1
1 1 1 1 1 1
1 1 1 1 1 1 1
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Determining the Minimum SOP Expression from the Map: When all the 1s representing the
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB
standard product terms in an expression are properly mapped and grouped, the process of
determining the resulting minimum SOP expression begins. The following rules are applied
to find the minimum product terms and the minimum SOP expression:
1. Group the cells that have 1s. Each group of cells containing 1s creates one product term
composed of all variables that occur in only one form (either un-complemented or
complemented) within the group. Variables that occur both un-complemented and
complemented within the group are eliminated. These are called contradictory variables.
2. Determine the minimum product term for each group.
a. For a 3-variable map:
(1) A 1-ceIl group yields a 3-variable product term
(2) A 2-cell group yields a 2-variable product term
(3) A 4-cell group yields a 1-variable term
(4) An 8-cell group yields a value of 1 for the expression
b. For a 4-variable map:
(1) A 1-cell group yields a 4-variable product term
(2) A 2-cell group yields a 3-variable product term
(3) A 4-cell group yields a 2-variable product term
(4) An 8-cell group yields a 1-variable term
(5) A 16-cell group yields a value of 1 for the expression
3. When all the minimum product terms are derived from the Karnaugh map, they are
summed to form the minimum SOP expression.
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
ABCD ABCD
0011 0100
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB
0010 0101
0111 0111
0110 0110
------- 1100
A’ C 1101
1111
ABCD 1110
1101 -------
1001 B
-------
A C’D
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
34
Nafiz A. Chisty
Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
36
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz A. Chisty
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
For example, in BCD code there are six invalid combinations: 1010, 1011, 1100, 1101,
1110, and 1111. Since these un-allowed states will never occur in an application involving
the BCD code, they can be treated as "don't care" terms with respect to their effect on the
output. That is, for these "don't care" terms either a 1 or a 0 may be assigned to the
output: it really does not matter since they will never occur.
The "don't care" terms can be used to advantage on the Karnaugh map. Figure below
shows that for each "don't care" term, an X is placed in the cell. When grouping the 1s, the
Xs can be treated as 1s to make a larger grouping or as 0s if they cannot be used to
advantage. The larger a group, the simpler the resulting term will be.
40
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
Reference:
[1] Thomas L. Floyd, “Digital Fundamentals” 11th edition, Prentice Hall.
[2] M. Morris Mano, “Digital Logic & Computer Design” Prentice Hall.
Thanks
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
000 001
0
0 1
1
2 010 011
2 3
3
4 110 111
5 6 7
6 100 101
7 4 5
Nafiz Ahmed Chisty| Head (UG) and Associate Professor, Dept. of EEE, FE, AIUB Nafiz Ahmed Chisty| Associate Professor and Head (UG), Dept. of EEE, FE, AIUB| chisty@[Link]
0
1
2 0000 0001 0011 0010
3 0 1 3 2
4
5
0100 0101 0111 0110
6
7 4 5 7 6
8
9 1100 1101 1111 1110
10 13 15 14
12
11
12
13 1000 1001 1011 1010
14 8 9 11 10
15