1.4 K Maps
1.4 K Maps
Learning Objectives
On the successful completion of this session you
will be able to:
• Explain the concept of the K-Map
• Explain the canonical form of the Boolean
expression
• Convert the Non-canonical form to canonical
form.
• Simplify the Boolean expression with K-Map.
Canonical Form
• When each term of a logic expression contains
all variables, it is said to be in the canonical
form. When a sum of product form of logic
expression is in canonical form, each product
term is called a minterm. Each minterm contains
all variables. The canonical form of a sum of
products expression is also called minterm
canonical form or standard sum of product.
How to convert into Canonical Form
• If the expression is not in canonical form, first we need to convert it into
canonical form then we can use it for simplification with K-maps.
• For Example, Express the Boolean function F = x + y z into its canonical
form.
• Solution: This function has three variables: x, y, and z. All terms must have
these three variables. Thus, we need to expand the first term by ANDing it
with (y + y') (z + z'), and we expand the second term with (x + x') to get
• F=x+yz
• = x (y + y') (z + z') + (x + x') y z
• = x y z + x y z' + x y' z + x y' z' + x y z + x' y z
• = x' y z + x y' z' + x y' z + x y z' + x y z
• = m3 + m4 + m5 + m6 + m7
• = Σ(3, 4, 5, 6, 7)
Karnaugh Map
Karnaugh Map
• The Karnaugh map method is a graphical
technique for simplifying Boolean function. The
Karnaugh map is a two-dimensional
representation of a truth table. It provides a
simpler method for minimizing logic expression.
The map method is ideally suited for four or less
variables. But it becomes cumbersome for five
or more variables.
What is Karnaugh Map?
• The Karnaugh map, also known as the K-map, is a
method to simplify Boolean algebra expressions. The
Karnaugh map reduces the need for extensive
calculations.
• A Karnaugh map provides a pictorial method of
grouping together expressions with common factors
and therefore eliminating unwanted variables.
• Karnaugh maps are used to simplify Boolean
expressions so that they can be implemented using a
minimum number of physical logic gates.
Graphical representation of 2 and3
• 2-variable map
Graphical representation of 2 and3
• 3-variable map
Graphical representation
4 variable K-Map:
Steps to create K-Map:
• Convert the Boolean expression in canonical form.
• Draw the map by using Gray code.
• Construct the K-map and place 1’s in the squares according to the
SOP expression or truth table
• Find the largest grouping of 1’s that are not already all in a group;
if there is more than one possibility; choose a grouping that
minimizes the total number of groups
• Repeat step 2 until only isolated 1’s remaining.
• Form single groups of the remaining isolated 1’s.
• Find the product term that corresponds to each group.
• Summingtheresultingproductterms
Rules of Simplification through K-Maps
• No zeroes allowed.
• No diagonals.
• Only power of 2 numbers of cells in each group.
• Groups should be as large as possible.
• Every 1 must be in at least one group.
• Overlapping allowed.
• Wrap around allowed.
• Fewest numbers of groups possible.
K-Map: Rules of Grouping
•Each group should be as large as possible.