Professional Documents
Culture Documents
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
1 1
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
• Example 3-7
• Simplify the Boolean function
F(V,W,X,Y,Z) = (0,2,4,6,9,13,21,23,25,29,31)
vxz
v’w’z’
wy’z
xz yz
0
w’x 0 0 0 0 xy
0 0 0
0
• F’ = w’x + yz + xz + xy
• F = (F’)’
• =(w’x + yz + xz + xy)’ = (w + x’)(y’ + z’)(x’ + z’)(x’ + y’)
Example 3-8
– F = (0,1,2,5,8,9,10)
– Simplify the function in
» sum of products (SOP)
» Product of sums (POS)
• Sol:
– The squares marked with 1’s
represents minterms and are
combined to form simplified
function in sum of products
(SOP). F=B’D’+B’C’+A’C’D
– If the squares marked with
0’s are are combined we
obtain the simplified
complemented function
F’=AB+CD+BD’
– Applying DeMorgan’s
theorem we obtain the
simplified function in
product of sum form (POS)
F=(A’+B’)(C’+D’)(B’+D)
SOP Gate Implementation
F = (0,1,2,3,7,11,15) ; F = (1,3,5,7,11,15)
Either of two are acceptable
More Examples with Don’t Care
CD
00 01 11 10
AB
00 0 1 0 0
01 x x x 1 F=ACD+B+AC
11 1 1 1 x
10 x 0 1 1
CD
00 01 11 10
AB
00 0 1 0 0
01 x x x 1 F=ABCD+ABC+BC+AC
11 1 1 1 x
10 x 0 1 1
NAND and NOR Implementations
• Wired Logic
– a wire connection between the outputs of two gates to provide a
specific logic function
– open-collector TTL NAND gates when tied together performs
wired-AND logic
– the NOR output of ECL gates when tied together performs wired-
OR logic
– Wired gates are not physical gates but only a symbol to designate
the function obtained from the wired connection
Nondegenerate Forms