04 K-Map
04 K-Map
University of Raparin
College of Engineering
Department: Software
1
15/5/2025
𝐴 1 0 1
4
2
15/5/2025
3
15/5/2025
4
15/5/2025
𝐴ҧ𝐵ത 𝐶ҧ 𝐷 ҧ 𝐶ҧ 𝐷
ഥ 𝐴𝐵 ഥ 𝐴𝐵 𝐶ҧ 𝐷
ഥ 𝐴𝐵ത 𝐶ҧ 𝐷
ഥ 𝐴ҧ𝐵ത 𝐶ҧ 𝐷
ഥ 𝐴ҧ𝐵ത 𝐶𝐷
ҧ 𝐴ҧ𝐵𝐶𝐷
ത 𝐴ҧ𝐵𝐶
ത 𝐷ഥ
𝐴ҧ𝐵ത 𝐶𝐷
ҧ 𝐴𝐵
ҧ 𝐶𝐷
ҧ 𝐴𝐵 𝐶𝐷
ҧ 𝐴𝐵ത 𝐶𝐷
ҧ ҧ 𝐶ҧ 𝐷
𝐴𝐵 ҧ 𝐶𝐷
ഥ 𝐴𝐵 ҧ 𝐴𝐵𝐶𝐷
ҧ ҧ 𝐷
𝐴𝐵𝐶 ഥ
𝐴ҧ𝐵𝐶𝐷
ത ҧ
𝐴𝐵𝐶𝐷 ത
𝐴𝐵𝐶𝐷 𝐴𝐵𝐶𝐷 𝐴𝐵 𝐶ҧ 𝐷 ҧ 𝐴𝐵𝐶𝐷 𝐴𝐵𝐶 𝐷
ഥ 𝐴𝐵𝐶𝐷 ഥ
𝐴ҧ𝐵𝐶
ത 𝐷 ҧ 𝐷
ഥ 𝐴𝐵𝐶 ഥ 𝐴𝐵𝐶 𝐷
ഥ 𝐴𝐵𝐶
ത 𝐷ഥ 𝐴𝐵ത 𝐶ҧ 𝐷 ҧ 𝐴𝐵𝐶𝐷
ഥ 𝐴𝐵ത 𝐶𝐷 ത ത 𝐷
𝐴𝐵𝐶 ഥ
9
𝑚0 𝑚4 𝑚12 𝑚8 𝑚0 𝑚1 𝑚3 𝑚2
𝑚1 𝑚5 𝑚13 𝑚9 𝑚4 𝑚5 𝑚7 𝑚6
5
15/5/2025
𝐹 = 𝐴ҧ𝐵ത 𝐶ҧ + 𝐴ҧ𝐵𝐶
ത + 𝐴𝐵ത 𝐶ҧ + 𝐴𝐵𝐶ҧ + 𝐴𝐵𝐶
The given expression is in the standard SOP form.
Each term represents a minterm.
We have to enter ‘1’ in the boxes corresponding to each minterm as below:
𝐵ത 𝐶ҧ ത
𝐵𝐶 𝐵𝐶 𝐵 𝐶ҧ
𝐴ҧ𝐵ത 𝐶ҧ 𝐴ҧ 𝐵𝐶
ത
𝐴𝐵ത 𝐶ҧ 𝐴ҧ 1 1 0 0 𝐴𝐵𝐶
𝐴 1 0 1 1 𝐴𝐵 𝐶ҧ
11
Simplification of K-map
Once we plot the logic function or truth table on K-map, we have to use the
grouping technique for simplifying the logic function.
Grouping means the combining the terms in adjacent cells.
The grouping of either 1’s or 0’s results in the simplification of Boolean expression.
If we group the adjacent 1’s then the result of simplification is SOP form.
If we group the adjacent 0’s then the result of simplification is POS form.
Grouping: While grouping, we should group most number of 1’s.
The grouping follows the binary rule i.e. we can group 1, 2, 4, 8, 16, 32, …
number of 1’s.
We cannot group 3,5,7,………number of 1’s 12
6
15/5/2025
Grouping
Pair: A group of two adjacent 1’s is called as Pair.
Quad: A group of four adjacent 1’s is called as Quad.
Octet: A group of eight adjacent 1’s is called as Octet.
14
7
15/5/2025
A Quad eliminates
two variable.
15
A Quad eliminates
two variable.
16
8
15/5/2025
A Octet eliminates
three variable.
17
Not Accepted
Not Accepted
18
9
15/5/2025
Not Accepted
19
20
10
15/5/2025
21
11
15/5/2025
𝐵 𝐶ҧ
23
24
12
15/5/2025
25
𝐹 = 𝑚(0,1,2,5,13,15)
𝐹 = 𝐴ҧ𝐵ത 𝐷
ഥ + 𝐴ҧ𝐶𝐷
ҧ + 𝐴𝐵𝐷
26
13
15/5/2025
27
𝐹(𝐴, 𝐵, 𝐶) = 𝑚(0,1,3,4,5)
14
15/5/2025
𝐹(𝐴, 𝐵, 𝐶, 𝐷) = σ 𝑚(0,1,3,4,5,7)
𝐹 = 𝐴ҧ𝐶ҧ + 𝐴𝐷
ҧ
29
Simplify:
𝐹(𝐴, 𝐵, 𝐶) = 𝑚(1,2,4,6,7)
Simplify:
Simplify:
30
15
15/5/2025
Karnaugh map can also be used for Boolean expression in the Product of
sum form (POS).
The procedure for simplification of expression by grouping of cells is also
similar.
Complemented letters (e.g., 𝐴)ҧ represent 1 in binary, while uncomplemented
letters (e.g., 𝐴) represent 0.
A zero is put in the cell for which there is a term in the Boolean expression.
Grouping is done for adjacent cells containing zeros.
31
Example #1
Simplify:
𝐹(𝐴, 𝐵, 𝐶, 𝐷) = ς 𝑀 (0,1,3,5,6,7,10,14,15)
32
16
15/5/2025
Example #2
Simplify:
𝐹(𝐴, 𝐵, 𝐶, 𝐷) = ς 𝑀 (4,6, 10,12, 13,15)
33
17