4.updated Lecture Chapter 3
4.updated Lecture Chapter 3
Gate-Level Minimization
Karnaugh Maps
POS Simplification
Don’t Care Conditions
NAND and NOR
Exclusive OR
K-Map
• A two-variable map
holds four minterms for
two variables.
– We mark the squares of the
minterms that belong to a
given function.
Representing 2-Variable Functions
• A three-variable map
holds eight minterms for
three variables.
– Again, we mark the squares
of the minterms that belong
to a given function.
– Note that the sequence is not
arranged in a binary way.
– The sequence used, similar
to Gray code, allows only one
bit to change from column to
column and row to row.
Three-Variable Map
Mapping Functions
Y
Minimization Example
Y
Note on Adjacency
Y
Another Example
Y
3-Variable Map Patterns
1 1
x 1 1 1
B
0 1
A
0 0 1
1 1 1 F=A+B
• Three variable maps.
– F=AB’C’ +AB C +ABC +ABC + A’B’C + A’BC’
BC
00 01 11 10
A
0 0 1 0 1
1 1 1 1 1 F=A+B C +BC
Another Minimization Example
a
b 0 1 a
0 0 1 b 0 1
1 0 1 0 1 1
1 0 0
f=a
g = b'
ab ab
c 00 01 11 10 c 00 01 11 10
0 0 0 1 0 0 0 0 1 1
1 0 1 1 1 1 0 0 1 1
cout = ab + bc + ac
f=a
Example 3-1
– F(x,y,z) = (3,4,6,7)
• Sol:
– 1 is marked in each minterm
that represents the function
– Find the possible adjacent
squares and mark them with
rectangles
– Two adjecent squares are
combined in the third
column to give a two-literal
term yz
– The remaining two squares
with 1’s are enclosed in half
rectangles. This gives two-
literal term xz’
– The logical sum of these
two terms gives:
F = yz + xz’
Example 3-3
– F(x,y,z) = (0,2,4,5,6)
• Sol:
– 1 is marked in each minterm
that represents the function
– Find the possible adjacent
squares and mark them with
rectangles
– We combine four adjacent
squares to get a single literal
term z’ as m0+m2+m4+m6
= x'y'z'+x'yz'+xy'z'+xyz‘
= x'z'(y'+y) +xz'(y'+y)
= x'z' + xz‘ = z'
– The remaining two squares
with 1’s are enclosed by a
rectangle (with one square that
is already used once). This
gives two-literal term xy’
– The logical sum of these two
terms gives:
F = z’ + xy’
Example 3-4
– F = A'C + A'B + AB'C + BC
– express it in sum of minterms
find the minimal sum of
products expression
• Sol:
– The two squares corresponding
to the first term A’C. (A’ first
row and C two middle columns)
– A’B has 1’s in squares 011 and
010 in the same way
– AB’C has 1 square 101 and BC
has two 1’s in squares 011 and
111
– The function has total of 5
minterms as shown in figure
– Find the possible adjacent
squares and mark them with
rectangles as shown in the map
– It can be simplified with only
two terms giving:
F = C + A’B
Four-Variable Map
CD
00 01 11 10
AB
00 0 0 0 1
01 1 1 0 1
11 1 1 1 1 F=BC +CD + AC+ AD
10 1 0 1 1
Another Example
• F(A,B,C,D) = m(0,3,5,8,9,10,11,12,13,14,15)
– F = C + A’BD + B’D’
C + A’BD + B’D’
A 1111
0111
1 0 0 1
0 1 0 0
D
C
1 1 1 1 D
A
C 1000
1 1 1 1 0000 B
B
A A A
0 0 0 0 1 0 0 0 0 1 1 1
1 0 0 0 0 1 0 0 0 0 1 1
D D D
1 1 0 1 0 0 1 0 0 0 0 0
C C C
1 1 0 0 0 0 0 1 0 0 1 0
B B B