Handouts Week 6 Lecture 1
Handouts Week 6 Lecture 1
Slide 1
Today’s Lecture
Simplification of SOP expressions using K-map
Mapping directly from truth tables or table functions
Don’t care conditions
Slide 3 3
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
Slide 4 4
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
Notice the “wrap around” 4-cell group that includes the top row and the bottom row of 1s. The
remaining 1 is absorbed in an overlapping group of two cells. The group of four 1s produces a
single variable term, B*. This is determined by observing that within the group, B* is the only
variable that does not change from cell to cell. The group of two 1s produces a 2-variable term
A*C. This is determined by observing that within the group, A* and C do not change from one cell
to the next. The product term for each group is shown. The resulting minimum SOP expression is
B *+ A*C
Keep in mind that this minimum expression is equivalent to the original standard expression.
0 1
AB\C
A\BC 00 01 11 10
00 0 1
0 0 1 1 1
01 1 0
1 1 0 0 0
11 1 1
10 0 1 A .B .C A .C A .B
Slide 5 5
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
•Consider the 3-variable column based K-map in which the SOP expression has been mapped.
•The SOP expression has 5 minterms marked by 1s in the K-map.
•Three groups of two cells each are formed.
•The first group of 1s comprising of cells 2 and 6 forms the product term BC*
•The second group of 1s comprising of cells 5 and 7 forms the product term AC
•The third group of 1s comprising of cells 1 and 5 forms the product term B*C
•The five term SOP expression simplifies to a 3 term SOP expression
•Consider the 3-variable row based K-map in which the SOP expression has been mapped.
•The SOP expression has 4 minterms marked as 1s in the K-map.
•Two groups of 2 cells each and a third group of single cell are formed.
•The single cell group comprising of cell 4 forms the product term AB*C*
•The second group of 1s comprising of cells 1 and 3 forms the product term A*C
•The third group of 1s comprising of cells 2 and 3 forms the product term A*B
•The four term SOP simplifies to a 3 term SOP expression
Simplification of SOP expressions using K-
map
B A .C
0 1
AB\C
A\BC 00 01 11 10
00 0 0
0 0 0 1 1
01 1 1
1 1 1 1 0
11 1 1
10 0 1 A .B B .C A .B
Slide 6 6
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
AB\CD 00 01 11 10
00 0 1 1 0
01 0 0 1 1
11 1 1 1 1
10 1 1 1 0
Slide 7 7
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
AB\CD 00 01 11 10
00 0 0 1 0
01 0 0 1 1
11 1 0 1 1
10 1 0 1 0
Slide 8
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected] 8
AB\CD 00 01 11 10
00 1 0 1 1
01 0 0 0 1
11 0 1 1 0
10 1 0 1 1
Slide 9 9
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
Slide 10 10
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
You have seen how to map a Boolean expression; now you will learn how to go directly from a
truth table to a Karnaugh map. Recall that a truth table gives the output of a Boolean expression
for all possible input variable combinations. An example of a Boolean expression and its truth
table representation is shown in Figure. Notice in the truth table that the output X is 1 for four
different input variable combinations. The 1s in the output column of the truth table are mapped
directly onto a Karnaugh map into the cells corresponding to the values of the associated input
variable combinations, as shown in Figure. In the figure you can see that the Boolean expression,
the truth table, and the K-map are simply different ways to represent a logic function.
Slide 11 11
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
•Consider a logical circuit that accepts 4-bit binary numbers representing decimal numbers 0 to
15.
•The circuit checks the four bit binary equivalent of the decimal number.
•If the number is odd and it is a prime number the function outputs a one.
•Before designing the logic circuit a function table is implemented with all the input output
combinations.
•The function table for the odd prime number checker is shown.
•The output is a 1 for inputs 1, 3, 5, 7, 11 and 13.
AB\CD 00 01 11 10
00 0 1 1 0
01 0 1 1 0
11 0 1 0 0
10 0 0 1 0
Slide 12 12
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
Slide 13 13
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
The “don’t care” terms can be used to advantage on the Karnaugh map. 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.
Slide 14 14
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
•Consider the number checker circuit that only checks for the odd prime numbers between 0
and 9
•To modify the operation of the number checker circuit the function table is modified to show
don’t care output states for the inputs 10 to 15.
AB\CD 00 01 11 10
00 0 1 1 0
01 0 1 1 0
11 x x x x
10 0 0 x x
Slide 15 15
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
AB\CD 00 01 11 10
00 0 1 1 0
01 0 1 1 0
11 x x x x
10 0 x x x
Slide 16 16
DR. JAVED IQBAL (SUIT PESHAWAR) [email protected]
•Assuming that the circuit checks for odd prime numbers for the first 9 numbers ranging from 0
to 8, the remaining combinations never occur.
•The function table is modified to include a don’t care state for the input combination 1001.
•Mapping the function table to a 4-variable K-map leads to 7 cells having don’t care state.
•The 4 cells 9, 11, 13 and 15 marked with x indicate the don’t care state are assumed to be 1s.
•Forming a group of 8 adjacent cells comprising cells 1, 3, 5, 7, 9, 11, 13 and 15 result in the
simplest expression D
END OF LECTURE