Logical Function Simplification
Logical Function Simplification
SIMPLIFICATION OF
BOOLEAN FUNCTIONS
April, 2020 Prof. Gustavo Sanchez
[email protected]
Professor Automation & Data Science
JK Lakshmipat University, India
2
MOTIVATION
3
• We discuss a method to
generate the simplests
algebraic expressions for Prof. Maurice Karnaugh
any Boolean function: U.S.A scientist
Karnaugh maps
• Why is it convenient to generate
5
CONCEPTS
K-maps
7
′
𝑤 𝑥𝑦𝑧+ 𝑤𝑥𝑦𝑧 =
′
𝑤 + 𝑤 𝑥𝑦𝑧 = 𝑥𝑦𝑧
𝑤𝑥𝑦𝑧′ 𝑥𝑦
Implicants
22
𝑥𝑦
Implicants
23
′
𝑥 𝑦, 𝑥𝑦, 𝑦
Implicants
24
′ ′
𝑥𝑦 𝑧, 𝑦𝑧, 𝑥𝑦 , 𝑥𝑧 …
Prime ( ′ )
25
′
If 𝑥 = 1 then 𝑥 = 0
′
If 𝑥 = 0 then 𝑥 = 1
Prime integer
26
METHOD
Simplication rules
29
x y f 𝑓 = 𝑥 𝑦 + 𝑥𝑦 + 𝑥𝑦
′ ′
0 0 0 𝑓 = 𝑚1 + 𝑚2 + 𝑚3
0 1 1
1 0 1
1 1 1
𝑓 =𝑥+𝑦
Let’s try to combine
adjacent squares: 2 or 4!
Three-variable K-map
32
x y z F 𝑓 = 𝑚2 + 𝑚3 + 𝑚4 + 𝑚5
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0
′ ′
𝑓 = 𝑥 𝑦+𝑥𝑦 = 𝑥 ⊕ 𝑦
Three-variable K-map
34
x y z F 𝑓 = 𝑚3 + 𝑚4 + 𝑚6 + 𝑚7
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
′
𝑓 = 𝑦𝑧+𝑥𝑧
Three-variable K-map
35
x y z F 𝑓 = 𝑚0 + 𝑚2 + 𝑚4 + 𝑚5 + 𝑚6
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
′
𝑓 = 𝑧 + 𝑥𝑦′
Four-variable K-map
36
′ ′ ′
𝑓 = 𝑤 𝑧 + 𝑥𝑧 + 𝑦′
Four-variable K-map
38
′ ′ ′ ′ ′
𝐹 = 𝐵 𝐶 + 𝐵 𝐷 + 𝐴 𝐶𝐷′
Essential prime implicants
39