Professional Documents
Culture Documents
Karnaugh Maps
• Another approach to simplification is
called the Karnaugh map, or K-map. y y
• A K-map is a truth table graph, which 00 01
aids in visually simplifying logic. x 0 1 This minterm
• It is useful for up to 5 or 6 variables, and is expressed as
10 11
is a good tool to help understand the x f = xy .
process of logic simplification. 2 3
• The algebraic approach we have used Two-Variable K-map,
previously is also used to analyze complex labeled for SOP terms.
circuits in industry (computer analysis).
Note the four squares
• At the right is a 2-variable K-map. represent all the com-
• This very simple K-map demonstrates binations of the two
that an n-variable K-map contains all the K-map variables, or
combination of the n variables in the K-
map space. minterms, in x & y
(example above).
3 Lecture #5: Logic Simplification Using Karnaugh Maps © N. B. Dodge 9/15
Erik Jonsson School of Engineering and
The University of Texas at Dallas
Computer Science
Exercise 1
• We will use the Karnaugh map to yz yz yz yz
simplify Boolean expressions by
0000 0001 0011 0010
placing minterm or maxterm
values on the map and then wx 0 0 1 1 3 3 2 2
grouping terms to develop 0100 0101 0111 0110
Exercise 2
yz yz yz yz
• Try your hand at developing 0000 0001 0011 0010
the Boolean expression from wx
the f = Σm designation on a K-
0 0 1 1 3 3 2 2
0100 0101 0111 0110
map. 1 1 1 1
wx 4 4 5 5 7 7 6 6
• The Σm designation of a 1100 1101 1111 1110
Boolean function is given as wx
C 12 D 13 F 15 E 14
f= Σm(9, B, D, F) (SOP). 1000 1001 1011 1010
• Find the Boolean expression by wx 8 8 9 9 B 11 A 10
plotting the 1’s on the chart
and developing the expression
from the minterms.
Prime Implicants
• We will be simplifying Boolean
functions plotting their values on yz yz yz yz
a K-map and grouping them into 0000 0001 0011 0010
prime implicants. wx 0
1 0 1
0 1 3
1 3 2
1 2
• What is a prime implicant? It is 0100 0101 0111 0110
“Prime Implicants”
• As noted two slides back, a “prime Since x & z do not change value over the implicant,
implicant” is the largest square or they are the variables in the new Boolean minterm.
rectangular implicant of cells
occupied by a 1 (SOP) or 0 (POS). yz yz yz yz
Thus a prime implicant will have 1,
2, 4, or 8 cells (16 is a trivial prime). 0000 0001 0011 0010
• How do we determine the Boolean wx 0 0 1 1 3 3 2 2
expression for a prime implicant? 0100 0101 0111 0110
• The Boolean expression for an SOP
wx 1 15 11 1
prime implicant is determined by 4 4 5 7 7 6 6
creating a new minterm whose only 1100 1101 1111 1110
variables are those that do NOT wx 1 13 F 1115
change value (0→1 or 1→0) over the C 12 D E 14
extent of the prime implicant. 1000 1001 1011 1010
• Thus the prime implicant at right wx 8 8 9 9 B 11 A 10
may be represented by the Boolean
Example of a prime implicant
expression: f = xz.
12 Lecture #5: Logic Simplification Using Karnaugh Maps © N. B. Dodge 9/15
Erik Jonsson School of Engineering and
The University of Texas at Dallas
Computer Science
A POS K-Map
• On a POS K-map, the procedure is
the same, except that we map 0’s. y+ z y+z y+z y+z
• Let: 0000 0001 0011 0010
f = (w + x + y + z) ⋅ (w + x + y + z) w + x 0 0 1 1 3 3 2 2
⋅( w + x + y + z ) ⋅ ( w + x + y + z ) 0100 0101 0111 0110
• We find prime implicants exactly w+ x 4
1
4 5
1
5 7
1
7 6
1
6
the same way – except that we look
1100 1101 1111 1110
for variable that produce 0’s. w+ x C 12 D
1 13 F 01 15 E 0 14
• As shown, w and y do not change
over the extent of the function. 1000 1001 1011 1010
Exercise 3
• The truth table below was developed from a “spec.” Show the
SOP expression and then minimize it using a K-map and draw
the minimized circuit.
x y z f
0 0 0 1 y z yz yz yz
0 0 1 0 000 001 011 010
0 1 0 1 x 0 1 3 2
0 1 1 1 100 101 111 110
1 0 0 0 x 4 5 7 6
1 0 1 0
1 1 0 0
1 1 1 1
Resulting Circuit
x
y f
z
case, 3 essential).
wx 11 13 F 1 15
C 12 D E 14
• The simplified expression (and 1000 1001 1011 1010
not very simplified at that) is: wx 1
8 8 9 9 B 11 A 10
f =wz + w xy + x yz + x yz
Exercise 4
A truth table and its Boolean expression are shown below, along
with the circuit of this unsimplified expression. Use the K-map
on the following page to simplify and draw the simplified circuit.
w x y z f
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0 Original Circuit
f = wx yz + wxyz + wxyz + wx yz
1 1 0 1 1
1 1 1 0
1 1 1 1
26 Lecture #5: Logic Simplification Using Karnaugh Maps © N. B. Dodge 9/15
Erik Jonsson School of Engineering and
The University of Texas at Dallas
Computer Science
yz yz yz yz
0000 0001 0011 0010
wx 0 0 1 1 3 3 2 2
0100 0101 0111 0110
wx 1
4 4 5 5 7 7 6 6
1100 1101 1111 1110
wx 1 15
C 12 D 13 F E 14
1000 1001 1011 1010
wx 8 8 9 9 B 11 A 10
cannot happen.
28 Lecture #5: Logic Simplification Using Karnaugh Maps © N. B. Dodge 9/15
Erik Jonsson School of Engineering and
The University of Texas at Dallas
Computer Science
Exercise 5
• An SOP Boolean expression is yz yz yz yz
defined as f=Σm(2, 6, C, D, F, E). 0000 0001 0011 0010