Chapter 2 (Full) - Boelean Algebra & Logic Functions
Chapter 2 (Full) - Boelean Algebra & Logic Functions
Boolean algebra
and Logic functions
Boolean algebra
and Logic functions
Truth table.
Truth Table
+ NOT gate:
+ 2-input OR gate:
Meaning:
Basic logic operations
and logic gates
+ Pulse diagram of 2-input NOR diagram:
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Basic logic operations
and logic gates
Theorems of logic algebra
Theorems of logic algebra
DeMorgan’s Theorem
(X+Y)’ = X’ . Y’
(X.Y)’ = X’ + Y’
The complement of the sum is the product of the complements
The complement of the product is the sum of the complements
In general
(A+B+….+Z)’ = A’ . B’ . … . Z’
(A.B.C….Z)’ = A’+ B’+ ….+Z’
PRACTICE
c
Chapter 2
Boolean algebra
and Logic functions
Part 2
Boolean algebra
Boolean algebra
A Minterm:
A Minterm:
With n variables 2n minterms.
Symbol for minterm: mi , whereas i is the value of binary
combination of variables.
Example:
If X, Y and Z are the input variables, the minterms are:
X’Y’Z’ X’Y’Z X’YZ’ X’YZ XY’Z’ XY’Z XYZ’ XYZ
Boolean algebra
A Maxterm:
mi = M i
M i = mi
Boolean algebra
Whereas:
mi is the ith minterm.
Fi is the F-function’s value corresponding to the ith minterm.
Example:
Boolean algebra
Boolean algebra
Example:
Write the expression form of the following functions.
Boolean algebra
Whereas:
Mi is the ith maxterm.
Fi is the F-function’s value corresponding to the ith maxterm.
Example:
Boolean algebra
Example:
Write the expression form of the following functions.
“Don’t care”
In practical, there are some cases in which the binary
combinations of variables does not exist. Thus, the output
(the value of the function) corresponding to these binary
combinations can be 0 or 1 (called “don’t care”), symbol “d”.
When filling in the Truth Table for the “don’t care” cases, the
symbol “x” is used.
Boolean algebra
Example:
Write the Truth Table for F
Boolean algebra
Example:
Write the Truth Table for F
Chapter 2
Boolean algebra
and Logic functions
Part 3
Karnaugh map
Karnaugh map
Karnaugh map
2-variable K-map
3-variable K-map
Karnaugh map
4-variable K-map
Karnaugh map
5-variable K-map
Karnaugh map
Fill values in K-map:
We can fill only two symbols “0” and “x” or “1” and “x” in the
K-map. The blank cells are implicit.
Fill in the K-map the following function
F DC F DC
00 01 11 10 00 01 11 10
BA BA
00 X 1 00 0 X 0
0 4 12 8 0 4 12 8
01 X 1 1 5 1 13 01 X 0
9
1 5 13 9
11 13 X15 1 11 11 0 X 15
7
3 7 11
10 12 6
1 14 10 0 0
10 2 6 14 10
Karnaugh map
Fill values in K-map:
2. If the function F is given in the Standard form 2 (-form)
Fill “0” in cells having the ordinal numbers corresponding
to maxterms,
F AB F AB
00 01 11 10 01 11 10
CD CD 00
00 0 4 0 12 X 8 00 1 X8
0 0 4 12
01 05 01 1 1 1
1 13 9 1 5 13 9
11 X 3 X 7 0 15 X 11 11 X3 X7 X 11
15
10 0 14 10 1 1 1
2 6 10 2 6 14 10
Karnaugh map
Fill values in K-map:
A B C F F AB
C 00 01 11 10
0 0 0 0
0 0
1 2
X 6
1 4
0 0 1 0
1 1 3 7
X 5
0 1 0 1
0 1 1 0 F AB
1 0 0 1 C 00 01 11 10
1 0 1 x 0 0 0 2
X 6 4
1 1 0 x 1 0 1
0 3
0 7
X 5
1 1 1 0
Karnaugh map
Fill values in K-map:
Two cells are adjacent if they lie close each other or they are
symmetric through axis. The feature of two adjacent cells is
they are corresponding to two minterms (or maxterms)
which are different in only 1 bit.
Simplify the Boolean function
using K-map
Similarly:
01 01 01
11 11 11 1 1
10 1 1 10 1 10
Simplify the Boolean function
using K-map
01 01 01 1 1
11 1 1 11 11 1 1
10 1 1 10 10
Simplify the Boolean function
using K-map
01 1 01 01
11 1 11 11
10 1 10 1 1 10 1 1
Simplify the Boolean function
using K-map
1 1 01 01 1 1
01
1 11 11 1 1
11 1
10 1 1 10 1 1 1 1 10 1 1
Simplify the Boolean function
using K-map
01 01 01
11 11 11 0 0
10 0 0 10 0 10
Simplify the Boolean function
using K-map
01 01 01 0 0
11 0 0 11 11 0 0
10 0 0 10 10
Simplify the Boolean function
using K-map
01 0 01 01
11 0 11 11
10 0 10 0 0 10 0 0
Simplify the Boolean function
using K-map
0 0 01 01 0 0
01
0 11 11 0 0
11 0
10 0 0 10 0 0 0 0 10 0 0
Simplify the Boolean function
using K-map
F
AB
00 01 11 10
CD
00 1 1 1 1
01 1 1 1 1
11
10 1 1 1
Simplify the Boolean function
using K-map
F
AB
00 01 11 10
CD
00 1 1
01 1 1
11
10 1 1 1
Simplify the Boolean function
using K-map
F
AB
00 01 11 10
CD
00 0 0 0 0
01 0 0 0 0
11
10 0 0 0
Simplify the Boolean function
using K-map
0
Simplify the Boolean function
using K-map