0% found this document useful (0 votes)
19 views56 pages

K Map

The document discusses Karnaugh maps, which are a graphical representation of truth tables used to simplify Boolean algebra expressions. It defines terms related to K-maps like subcubes and adjacency. It also provides examples of 2, 3, 4, 5 and 6 variable K-maps and shows how to use them to determine simplified Boolean functions in sum of products form.

Uploaded by

Sheena Quito
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)
19 views56 pages

K Map

The document discusses Karnaugh maps, which are a graphical representation of truth tables used to simplify Boolean algebra expressions. It defines terms related to K-maps like subcubes and adjacency. It also provides examples of 2, 3, 4, 5 and 6 variable K-maps and shows how to use them to determine simplified Boolean functions in sum of products form.

Uploaded by

Sheena Quito
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/ 56

Lecture 4

KARNAUGH MAP
(K-MAP)
K- map is the graphical representation of the truth table.
STEPS IN K-MAPPING
KARNAUGH MAP (K-MAP)
Determine the number of squares or cells of the K-
map.
• 2n= N ; where: n= no. of inputs

N= no. of squares or cells

Construct the map and place the output states

(0’s and 1’s) in their respective cells.

Group adjacent cells into subcubes that will lead


to a minimum expression.

*The minimum expression is composed of all


variables that remain constant over the subcube.
KARNAUGH MAP (K-MAP) DEFINITION OF TERMS

SUBCUBES - a set of exactly 2m


adjacent
cells containing ones or

zeroes.

ADJACENT - identical except in


one
variable
RULES IN FINDING THE
MINIMUM NO. OF SUBCUBES
Begin with cells that are adjacent to no other cell.

Find all cells that are adjacent to only one other cell.

Find those cells that lead to maximal subcubes of 4 cells. Find subcubes of 8
cells, etc.

The minimal expression is formed from a collection of as few subcubes as


possible, each of which is as large as possible.
TWO-VARIABLE K-MAP
B
A 0 1
0 0 1

1 2 3

A
B 0 1
0 0 2

1 1 3
THREE-VARIABLE K-MAP

BC
A 00 01 11 10

0 0 1 3 2

1 4 5 7 6
THREE-VARIABLE K-MAP

AB
C 00 01 11 10

0 0 2 6 4

1 1 3 7 5
FOUR-VARIABLE K-MAP

CD
AB 00 01 11 10
00 0 1 3 2

01 4 5 7 6

11 12 13 15 14

10 8 9 11 10
FOUR-VARIABLE K-MAP

AB
CD 00 01 11 10
00 0 4 12 8

01 1 5 13 9

11 3 7 15 11

10 2 6 14 10
FOUR-VARIABLE K-MAP

CD C
AB
0 1 3 2

4 5 7 6
B
A 12 13 15 14

8 9 11 10

D
FOUR-VARIABLE K-MAP

CD C
AB
0 1 3 2

4 5 7 6
B
A 12 13 15 14

8 9 11 10

D
FIVE-VARIABLE K-MAP
A=0 A=1
DE DE
00 01 11 10 00 01 11 10
BC BC
00 00
0 1 3 2 16 17 19 18
01 01
4 5 7 6 20 21 23 22

11 11 28 29 31 30
12 13 15 14
10 10
8 9 11 10 24 25 27 26
SIX-VARIABLE K-MAP
u=0 u=1

yz yz
00 01 11 10 00 01 11 10
wx wx
00 00
0 1 3 2 32 33 35 34
01 01
v=0 4 5 7 6 36 37 39 38

11 12 13 15 14 11 44 45 47 46
10 10
8 9 11 10 40 41 43 42

yz yz
00 01 11 10 00 01 11 10
wx wx
00 00
16 17 19 18 48 49 51 50
01 01
v=1 20 21 23 22 52 53 55 54

11 11
28 29 31 30 60 61 63 62
10 10
24 25 27 26 56 57 59 58
SIX-VARIABLE K-MAP
u=0 u=1
yz yz
y y
wx wx

0 1 3 2 32 33 35 34

v=0 4 5 7 6 36 37 39 38
x x

12 13 15 14 44 45 47 46
w w

8 9 11 10 40 41 43 42
z z
yz yz
y y
wx wx

16 17 19 18 48 49 51 50

v=1 20 21 23 22 x 52 53 55 54
x

w 28 29 31 30 w 60 61 63 62

24 25 27 26 56 57 59 58
z z
In determining the simplified Boolean function in SOP
form, the following steps are done:
In determining the simplified Boolean function in
POS form, the following steps are done:
TWO-VARIABLE K-MAP
Ex. 1. Design a combinational network that will
accomplish the given truth table.

A B Z
0 0 1 Z = A’B’ + AB’ + AB
0 1 0
1 0 1
1 1 1
This is the equation derived
using SOP
TWO-VARIABLE K-MAP
B
A 0 1

0 1 0

1 1 1
A
Z
Z = AB’ B
A
B 0 1

0 1 1

1 0 1

Z = AB’
THREE-VARIABLE K-MAP
Ex. 2. Design a combinational network that will
accomplish the given below.

Z(A,B,C) = m(1,2,3,5,7)
Solution
Z(A,B,C) = m(1,2,3,5,7)
BC
A 00 01 11 10

0 0 1 1 1

1 0 1 1 0

Z = A’B + C A
B
Z
C
Solution
Z(A,B,C) = m(1,2,3,5,7)
AB
C 00 01 11 10

0 0 1 0 0

1 1 1 1 1

Z = A’B + C A
B
Z
C
Ex. 1. Z(A,B,C,D) =m(0,4, 5,8,12,13,15)

CD C
00 01 11 10
AB 0 1 3 2
00 1
4 5 7 6
01 1 1
12 13 15 14
B
11 1 1 1
A 8 9 11 10
10 1

Z = CD + BC’ + ABD
Ex. 1. Z(A,B,C,D) =m(0,4,5,8,12,13,15)

AB
CD 00 01 11 10
0 4 12 8
00 1 1 1 1
1 5 13 9
1 1
01
3 7 15 11

11 1
2 6 14 10

10

Z = CD + BC’ + ABD
FIVE-VARIABLE K-MAP
Ex. F(A,B,C,D,E) =m(0,2,4,6,9,13,21,23,25,29,31)

1 1

1 1 1 1 1

1 1

1 1

F = A’B’E’ + BD’E + ACE


KARNAUGH MAP WITH "DON'T CARE"
CONDITIONS

Sometimes a situation arises in which some input variable


combinations are not allowed. For example, recall that in the BCD code,
there are six invalid combinations. For NBCD: 1010, 1011, 1100, 1101, 1110
and 1111. Since these unallowed states will never occur in an application
involving the BCD code, they can be treated as "don't care" terms with
respect to their effect on the output. That is, for these "don't care" terms
either a 1 or a 0 may be assigned to the output; it really does not matter since
they will never occur.

For each "don't care" term, an X is placed in the cell. The "don't care"
terms can be used as an advantage when simplifying because when
grouping the 1s (or 0's), the Xs can be treated as 1s (or 0's) to maximize the
number of elements in a group. Note that maximizing the number of element
per group would result to simpler product term (or sum term).
DON’T CARES
- does not affect the system, could be 1 or 0
- 0’s and 1’s are the priorities

Ex. 1. ABC Z BC
A B

000 d d d 1
A 1 1 1 d
001 0 C

010 1
011 d
100 1 BC
A B
101 1 A d 0 d
110 d d
C C
111 1
DON’T CARES
Ex. 2. F(A,B,C,D,E) =m(0,10,20) +d(26-31)

A=0 A=1
DE DE
D D
BC BC
1 0 1 3 2 16 17 19 18

4 5 7 6 1 20 21 23 22
C C
d d d d
12 13 15 14 28 29 31 30
B B
8 9 11
1 10 24 25
d 27
d 26
E E
DON’T CARES
Ex. 2. F(A,B,C,D,E) =m(0,10,20) +d(26-31)

A A’
DE DE
D D
BC BC
0 0 0 C 0 0 0 0 C
0 1 3 2 16 17 19 18
B B
0 4 0 5 0 7 0 6 20 0 21 0 23 0 22

0 0 0 0 d d d d
12 13 15 14 28 29 31 30

0 0 0 C 0 0 d d C
8 9 11 10 24 25 27 26
E E E E
THANK YOU!

You might also like