0% found this document useful (0 votes)
54 views26 pages

Karnaugh Maps

The document discusses Karnaugh maps, which provide a systematic method for simplifying Boolean functions into sum-of-products form. It covers the basics of 2, 3, 4 and 5 variable Karnaugh maps, including their layouts and how adjacent cells differ by one literal. The key concept is that grouping adjacent cells containing 1's allows eliminating variables to simplify the Boolean function into fewer product terms.

Uploaded by

Gautam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views26 pages

Karnaugh Maps

The document discusses Karnaugh maps, which provide a systematic method for simplifying Boolean functions into sum-of-products form. It covers the basics of 2, 3, 4 and 5 variable Karnaugh maps, including their layouts and how adjacent cells differ by one literal. The key concept is that grouping adjacent cells containing 1's allows eliminating variables to simplify the Boolean function into fewer product terms.

Uploaded by

Gautam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

Digital Circuit Design

18B11EC215
Lecture 8
Karnaugh Maps

1
Outline
▪ K-Map Introduction
▪ 2-variable K-maps
▪ 3-variable K-maps
▪ 4-variable K-maps
▪ 5 –variable K-maps
▪ Simplification using K-maps

2
K-Map Introduction [1,2]

■ Complexity of digital logic gates that implement a Boolean function is directly


related to the complexity of Boolean expression from which the function is
implemented.
■ Simplification of Boolean functions leads to simpler (and usually faster) digital
circuits.
■ Simplifying Boolean functions using identities is time-consuming and
error-prone.
■ The map method provides a simple procedure for minimizing Boolean functions.
Function Simplification[1,2]
▪ Why simplify?
❖ Simpler expression uses less logic gates.
❖ Thus: cheaper, less power, faster.
▪ Simplification techniques:
❖ Algebraic Simplification.
simplify symbolically using theorems/postulates.
requires skill but extremely open-ended.
❖ Karnaugh Maps.
diagrammatic technique
easy for humans (pattern-matching skills).
simplified standard forms.
limited to not more than 6 variables.
Algebraic Simplification[1,2]
▪ Algebraic simplification aims to minimise
(i) number of literals, and
(ii) number of terms
Algebraic Simplification

▪ Difficulty – needs good algebraic manipulation skills.

▪ Advantage – very open-ended (to your desired form!)


Introduction to K-maps[1,2]
▪ Systematic method to obtain simplified sum-of-products (SOPs)
Boolean expressions.

▪ Objective: Fewest possible terms/literals.

▪ Diagrammatic technique

▪ Advantage: Easy with visual aid.

▪ Disadvantage: Limited to 5 or 6 variables.


2-variable K-maps[1]
▪ Karnaugh-map (K-map) is an abstract form of Venn diagram,
organised as a matrix of squares, where
❖ each square represents a minterm
❖ adjacent squares always differ by just one literal (so that the
unifying theorem may apply: a + a' = 1)
▪ For 2-variable case (e.g.: variables a,b), the map can be drawn as:
2-variable K-maps
▪ Alternative layouts of a 2-variable (a, b) K-map

Alternative 2:
a
Alternative 1: a

b b
OR
OR a'b' ab' m0 m2

a'b' a'b m0 m1
b ab b m1 m3
a'b
a ab' ab a m2 m3
2-variable K-maps
▪ The K-map for a function is specified by putting
❖ a ‘1’ in the square corresponding to a minterm
❖ a ‘0’ otherwise
▪ For example: Carry and Sum of a half adder.
b b

0 0 0 1

a 0 1 a 1 0

C = ab S = ab' + a'b
3-variable K-maps[1,2]
▪ There are 8 minterms for 3 variables (a, b, c). Therefore, there are 8 cells in a
3-variable K-map.
b b

bc bc
a a 00 01 11 10
00 01 11 10
a'b'c' a'b'c a'bc a'bc' 0 m0 m1 m3 m2
0
OR
a m4 m5 m7 m6
a ab'c' ab'c abc abc' 1
1

c c

Above arrangement ensures that minterms of Note Gray code sequence


adjacent cells differ by only ONE literal. (Other
arrangements which satisfy this criterion may
also be used.)
3-variable K-maps
▪ There is wrap-around in the K-map:
❖ a'.b'.c' (m0) is adjacent to a'.b.c' (m2)
❖ a.b'.c' (m4) is adjacent to a.b.c' (m6)

bc
a
00 01 11 10
0 m0 m1 m3 m2

m4 m5 m7 m6
1

Each cell in a 3-variable K-map has 3 adjacent neighbours. In


general, each cell in an n-variable K-map has n adjacent
neighbours. For example, m0 has 3 adjacent neighbours: m1, m2
and m4.
4-variable K-maps
▪ There are 16 cells in a 4-variable (w, x, y, z) K-map.

y
yz
wx 00 01 11 10
00 m0 m1 m3 m2

m4 m5 m7 m6
01
x
m12 m13 m15 m14
11
w
m8 m9 m11 m10
10
z
4-variable K-maps
▪ There are 2 wrap-arounds: a horizontal wrap-around and a vertical wrap-around.
▪ Every cell thus has 4 neighbours. For example, the cell corresponding to minterm
m0 has neighbours m1, m2, m4 and m8.

yz y
wx
m0 m1 m3 m2

m4 m5 m7 m6
x
m12 m13 m15 m14
w
m8 m9 m11 m10

z
5-variable K-maps
▪ Maps of more than 4 variables are more difficult to use as combining
adjacent squares becomes difficult.

▪ For 5 variables, e.g. vwxyz, need 25 = 32 squares.


5-variable K-maps
v' v
Organised as two 4-variable K-maps:
y y
yz yz
wx 00 01 11 10 wx 00 01 11 10
00 m0 m1 m3 m2 00 m16 m17 m19 m18

m4 m5 m7 m6 m20 m21 m23 m22


01 01
x x
m12 m13 m15 m14 m28 m29 m31 m30
11 11
w w
m8 m9 m11 m10 m24 m25 m27 m26
10 10
z z

Corresponding squares of each map are adjacent.


Can visualise this as being one 4-variable map on TOP of the other
4-variable map.
Larger K-maps
▪ 6-variable K-map is pushing the limit of human
“pattern-recognition” capability.

▪ K-maps larger than 6 variables are practically unheard of!


Simplification Using K-maps
▪ Based on the Unifying Theorem:
A + A' = 1
▪ In a K-map, each cell containing a ‘1’ corresponds to a minterm of a
given function F.
▪ Each group of adjacent cells containing ‘1’ (group must have size in
powers of twos: 1, 2, 4, 8, …) then corresponds to a simpler product
term of F.
▪ Grouping 2 adjacent squares eliminates 1 variable, grouping 4 squares
eliminates 2 variables, grouping 8 squares eliminates 3 variables, and so
on. In general, grouping 2n squares eliminates n variables.
Simplification Using K-maps

▪ Group as many squares as possible.


❖ The larger the group is, the fewer the number of literals in the
resulting product term.
▪ Select as few groups as possible to cover all the squares (minterms) of
the function.
❖ The fewer the groups, the fewer the number of product terms in the
minimized function.
Example
min terms sop
■ Simplify the Boolean function:
F(a, b, c) = ∑(0, 2, 4, 5, 6)

b
bc
a
00 01 11 10
0 1 1

a 1 1 1
1

F = c’ + ab’
Example
The function can be expressed in sum of minterms form:
F(a,b,c) = ∑(1, 2, 3,5,7) b
F = c +a’b bc
a
00 01 11 10
0 1 1 1

a 1 1
1

21
Simplification Using K-maps
▪ Example:
F (w, x, y, z) = Σ m(4, 5, 10, 11, 14, 15)

y
yz
wx 00 01 11 10
00

01 1 1
x (cells with ‘0’ are not
1 1
w
11 shown for clarity)
1 1
10
z
Simplification Using K-maps
▪ Each group of adjacent minterms (group size in powers of twos)
corresponds to a possible product term of the given function.

y
yz
wx 00 01 11 10
00
A
01 1 1
x
11 1 1
w
10 1 1 B

z
Simplification Using K-maps

▪ There are 2 groups of minterms: A and B, where:


A = w'.x.y'.z' + w‘.x.y'.z
= w'.x.y'.(z' + z)
= w'.x.y'

B = w.x'.y.z' + w.x'.y.z + w.x.y.z' + w.x.y.z y


= w.x'.y.(z' + z) + w.x.y.(z' + z) yz
= w.x'.y + w.x.y wx 00 01 11 10
= w.(x'+x).y 00
= w.y A
01 1 1
x
11 1 1
w
10 1 1 B

z
Simplification Using K-maps

▪ Each product term of a group, w'.x.y' and w.y, represents the sum of minterms in
that group.
▪ Boolean function is therefore the sum of product terms (SOP) which represent all
groups of the minterms of the function.

F(w,x,y,z) = A + B = w'.x.y' + w.y


References
[1]. M. M. Mano, Digital logic and computer design, 5th ed., Pearson Prentice Hall, 2013.

[2]. M. M. Mano and M. D. Ciletti, Digital design, 5th ed., Pearson Prentice Hall, 2013.

You might also like