Documente Academic
Documente Profesional
Documente Cultură
It originated from the map method proposed by Veitch also called the Veitch
Diagram and then modified by Karnaugh.
pee ess:
Each square represents one minterm.
Since any Boolean function can be expressed as a sum of minterms, it follows that a
Boolean function is recognized graphically in the map from the area enclosed by
those squares whose minterms are included in the function.
Map Set-Up
A.) Two-Variable K-Map
Given: F(a,b)
0
1
a'b'
m0
ab'
m2
a'b
m1
ab
m3
# of Cells/
Group
# of Inputs
to represent the group
2
1
1
2
4
grouping of 1s - F = 1
grouping of 0s - F = 0
ab
bc
00
00 01 11 10
0
1
01
11
10
# of Cells/
Group
1
2
4
8
SWIDLEC Lecture Notes
Edzel R. Lapira
zell@mozcom.com
a'b'c'
m0
a'bc'
m2
abc'
m6
ab'c'
m4
a'b'c
m1
a'bc
m3
abc
m7
ab'c
m5
# of Inputs
to represent the group
3
2
1
grouping of 1s - F = 1
grouping of 0s - F = 0
cd
ab
00 01 11 10
00
m0
m1
m3
m2
01
m4
m5
m7
m6
11
10
m8
m9
# of Cells/
Group
m11 m10
# of Inputs
to represent the group
4
3
2
1
1
2
4
8
16
grouping of 1s - F = 1
grouping of 0s - F = 0
cde
ab 000 001 011 010
00
m0
m1
m3
01
m8
m9
m11 m10
11
10
m2
m6
m7
m5
m4
Cell Adjacency
The cells in a Karnaugh map are arranged so that there is only a single -variable
change between adjacent cells.
Adjacency is defined by a single-variable change. Cells that differ by only one
variable are adjacent. Cells with values that differ by more than one variable are not adjacent.
Physically, each cell is adjacent to the cells that are immediately
next to it on any of its four sides. A cell is not adjacent to the
cells that diagonally touch any of its corners. Also, the cells
in the top row are adjacent to the corresponding cells in
the bottom row and the cells in the outer left column are
adjacent to the corresponding cells in the outer right
column. This is called wrap-around adjacency.
Steps:
1. Determine the binary value of each product in the standard SOP
expression.
2. As each product term si evaluated, place a 1 on the Karnaugh map in the
cell having the same value as the product term.
C
AB
0
00 1
1
1
ABC + A BC + ABC + A BC
000
01
11 1
10 1
Additional Exercises
F(W,X,Y,Z) = (0,1,6,12,15)
F(A,B,C) = ABC + ABC + ABC + ABC
F(A,B,C,D) = (1,3, 4,10, 12,13,15)
001
110
100
C
AB
0
00 1
1
1
01 1
A + A B + ABC
000 100
001 101
010
011
110
11 1
10 1
Additional Exercises:
F(A,B,C,D) = BC + AB +ABC + ABCD+ ABCD + ABCD
F(A,B,C,D) = A + CD + ACD + ABCD
Inputs
A B C
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Output
F
1
0
0
0
1
0
1
1
C
AB
0
00 1
01
11 1
10 1
Grouping the 1s
Group the 1s on the Karnaugh map according to the following rules by enclosing
those adjacent cells containing 1s. The goal is to maximize the size of the group and to
minimize the number of groups.
1. A group must contain either 1, 2, 4, 8, 16, 32 or 64 cells. (or
power of 2!)
2. Each cell in a group must be adjacent to one or more cells in that
same group, but all cells in the group do not have to be adjacent
to each other.
3. Always include the largest possible number of 1s in a group in
accordance with rule 1.
4. Each 1 on the map must be included in at least one group. The 1s
already in a group can be included in another group as long as the
overlapping groups include noncommon 1s.
C
AB
0
00 1
C
AB
0
00
01
01
11 1
11 1
10
10
C
AB
0
C
AB
0
1
1
00 1
00 1
01 1
1
1
01 1
11
11
10 1
10 1
Wrap-around adjacency
CD
00 01 11 10
00 1 1
AB
01 1
11
10
CD
00 01 11 10
00 1 1
AB
01 1
11
1
10
CD
00 01 11 10
00 1
1
AB
CD
00 01 11 10
00 1
1
AB
01 1
01 1
11 1
11 1
10 1
10 1
Wrap-around adjacency
C
AB
0
00
A'B'C'
01
11 1
BC
10
AB
F(A,B,C) = A'B'C'+BC+AB
C
AB
0
00 1
1
1
01 1
A'C'
11
10 1
AC
B'
F(A,B,C) = A'C'+AC+B'
SWIDLEC Lecture Notes
Edzel R. Lapira
zell@mozcom.com
CD
00 01 11 10
00 1 1
A'C'
01 1
A'B
AB
11
10
AB'D
F(A,B,C,D) = A'C+A'B+AB'D
CD
00 01 11 10
00 1
1
AB
01
11
10
D'
BC'
F(A,B,C,D) = AB'C+BC'+D'
AB'C
Example: Create a function that would give a 1 output only when NBCD code for 7, 8 or 9 is
present on the inputs.
Inputs Output
ABCD
F
0 0 0 0
0
0 0 0 1
0
0 0 1 0
0
0 0 1 1
0
0 1 0 0
0
0 1 0 1
0
0 1 1 0
0
0 1 1 1
1
1 0 0 0
1
1 0 0 1
1
0 1 0 0
X
0 1 0 1
X
0 1 1 0
X
0 1 1 1
X
1 0 0 0
X
1 0 0 1
X
AB
CD
00 01 11 10
00
1
01
BCD
11 X
10 1
F(A,B,C,D) = A+BCD
C
AB
0
00 0
(A+B+C)(A+B'+C)(A'+B'+C)(A'+B+C')
000
010
110
101
01 0
11 0
10
CD
A + B + C' + D'
00 01 11 10
0 0
00
AB
A + B + C' + D
01
11 0
10
A' + B' + C + D
CD
00 01 11 10
00
0 0
A + B + C'
01
A' + B' + C + D
AB
11 0
10
CD
A+B+C
01 0
C+D
00 01 11 10
00 0
0
AB
11 0
10 0
A' + B
CD
00 01 11 10
00
0 0 0
A + B + C'
00 01 11 10
00 1 0 0 0
01 0
B' + C + D
01 0
11 0
10 1
AB
AB
11 0
10
B + C + D'
CD
00 01 11 10
00 1 0 0 0
B'C'D'
BD
01 0
BC
11 0
10 1
AB
F(A,B,C,D) = B'C'D' + BD + BC + AC
AC
Additional Exercises:
F (A,B,C,D) = (0,2,4,5,7,8,9,10,11,13,15)
F(A,B,C,D,E) = (0,2,4,6,9,13,21,23,28,29,31)
Design a 4-bit even number detector
F(w,x,y,z) = wxy + yz + xyz + xy
5. F(A,B,C,D,E) = ABCE + ABCD + BDE + BCD + CDE
+BDE
1.
2.
3.
4.