Professional Documents
Culture Documents
6
Two Variable Map
F = xy
Z=x+y
y is varying, x is constant
=x
1
x is varying, y is constant
1 1 =y
Z = x’y + xy’ + xy Z=x+y 7
Three Variable Map
3 Variables 8 minterms 8 squares
m0 + m1
= x’y’z’ + x’y’z
= x’y’(z’+z)
= x’y’
Rule 1
Group may not include any square containing a zero.
Wrong Correct
Rule 2
Group may be horizontal or vertical , but not in diagonal direction
Wrong
Correct
9
Karnaugh map rules
Rule 3
Groups must contain 1,2 4,8 …. In general 2n squares ie if n=1,group should
contain 21=2 ones , For n=2 , no of ones in the group should be 22=4 etc.
Correct
Group of 2 Group of 4
Wrong
Group of 3 Group of 5
Karnaugh map rules
Rule 4
Each group should be as large as possible.
Correct
Even no Boolean law broken , minimal
expression is not formed
𝑌 = 𝐴 𝐵 + 𝐴 𝐵 + A𝐵 𝑌 =𝐴+𝐵
Rule 5
Each group containing a one must be at least in one group.
11
Karnaugh map rules
Rule 6
Groups may be overlapped.
12
Karnaugh map rules
Rule 8
The map should contain as few groups as possible which covers all the minterms
/ones of the function.
Summary:
No zeros covered
No diagonals formation of groups
Number of squares in each group should be in powers of 2
Groups should be as large as possible
Every ‘one’ must be covered in atleast one group
Overlapping of groups are allowed
Wrap around the squares allowed
Form the Smallest number of groups as possible as.
13
Example
• F(x, y) = Σ m(0,3) Look for 2n combination
1
F = x’y’ + xy
1
• F(x, y) = Σ m(0,2)
𝐹 = 𝑥 ′ 𝑦 ′ + 𝑥𝑦 ′ = 𝑦 ′ 𝑥 ′ + 𝑥 = 𝑦′
𝐹 = 𝑦′
14
Example
• F(x, y, z) = Σ m(2,3,4,5)
1 1
1 1
1 1
𝑌 = 𝐴𝐵 + 𝐴𝐵𝐶
16
Example
F = Σ m(0,1,3,4,5,7)
Higher order 2n combination
1 1 1
1 1 1
F = y’ + z
17
Example
F = Σ m(0,2,3,4,5,6)
Higher order 2n combination
F = z’ + xy’ + x’y
18
Given the Boolean Function 𝐹 = 𝐴′ 𝐶 + 𝐴′ 𝐵 + 𝐴𝐵′ 𝐶 + 𝐵𝐶
a) Express it in sum of minterms
b) Find the minimal sum of products expression.
𝑏) 𝐹 = 𝐶 + 𝐴′ 𝐵
𝑎) 𝐹 𝐴, 𝐵, 𝐶 = 𝑚(1,2,3,5,7)
20
Example
• Reduce the Boolean expression
Y = (𝐴 + 𝐵 + 𝐶)(𝐴 + 𝐵 + 𝐶 )(𝐴 + 𝐵 + 𝐶)(𝐴 + 𝐵 + 𝐶 )
POM form
Y’ = A’C + BC’
0 0 0
Y = (A+C’)(B’+C)
0
21
Four Variable Map
4 variables 24=16 minterms 16 squares
• The rows and columns are numbered in
a Gray code sequence, with only one
digit changing value between two
adjacent rows or columns.
• The minterm corresponding to each
square can be obtained from the
concatenation of the row number with
the column number.
• For example, the numbers of the third
row (11) and the fourth column (10),
when concatenated, give the binary
number 1110, the binary equivalent of
decimal 14.
• The square in the third row and fourth
column represents minterm m14.
22
Four Variable Map
Minimization:
Adjacent squares are defined to be squares next to each other.
In addition, the map is considered to lie on a surface with the top and bottom
edges, as well as the right and left edges, touching each other to form adjacent
squares.
For example, m0 and m8, m1 and m9 etc & m4 and m6 , m12 and m14 etc are
form adjacent squares
24
Four Variable Map Examples
Simplify the following Boolean Function
𝐹 𝑤, 𝑥, 𝑦, 𝑧 = (0,1,2,4,5,6,8,9,12,13,14)
𝑭 = 𝒚′ + 𝒘′ 𝒛′ + 𝒙𝒛′ 25
Reduce and Implement the following Boolean Expression
𝑌 = 𝐴 𝐵𝐶 𝐷 + 𝐴𝐵𝐶𝐷 + 𝐴𝐵𝐶𝐷 + 𝐴𝐵𝐶𝐷 + 𝐴 𝐵 𝐶 𝐷 + 𝐴𝐵𝐶 𝐷 + 𝐴 𝐵 C D + 𝐴 𝐵 𝐶 𝐷
In values, 𝑌 = 0010 1110 1010 1011 1000 1100 0011 0000
Mapping Implementation
𝑌 = 𝐵𝐶 + A𝐷 + 𝐵 𝐷
26
Reduce the following Boolean expression
𝐹 = 𝐵′ 𝐶 ′ + 𝐴𝐵′ + 𝐴𝐵𝐶 ′ + 𝐴𝐶𝐷′ + 𝐴′ 𝐵′ 𝐶 ′ 𝐷 + 𝐴𝐵′ 𝐶𝐷
27
𝐹 = 𝐵′ 𝐶 ′ + 𝐴𝐷′ + 𝐴𝐶 ′ + 𝐴𝐵′
28
Example:
Simplification of Product of sums(POS/POM)
Simplify the following function using K map 𝑓 = 𝑀(0,2,3,8,9,12,13,15)
𝑓 ′ = 𝐴′ 𝐵′ 𝐶 + 𝐴𝐵𝐷 + 𝐴′ 𝐵′ 𝐷′ + 𝐴𝐶′