Professional Documents
Culture Documents
The Karnaugh map (K -map) is most commonly used method for simplifying logic
functions for up to six variables. For logic functions having more than six variables, the
Quine-McCluskey tabular method (which will be discussed later!) is more suitable.
CD
00 01 11 10
00 1 0 0 0
AB
01 0
11 0D 1
10 1
Steps :
1. Group all the 1s counting all the map-entered variables (MEVs) as 0s just like an
ordinary k-map.
2. Take each map-entered variable separately and find an encirclement using each
previously circled 1 as a dont care. Or, treat other map-entered variables as 0s and
1s as dont cares.
3. The expression found in step 1 should be eliminated if the 1s that are grouped are
double covered. Only those that are not double-covered should be included in the
minimized expression.
NB: A 1 in a VEM is double-covered if its covered twice, i.e., once by a cluster
containing the complement of the same map-entered variable.
A VEM that contains two or more variables ORed together or two or more variables
ANDed together must follow the following procedure:
1. Cover or group each map-entered variable in the OR expression with dont cares;
other map-entered variables are taken as 0s and 1s as dont cares.
2. For an AND expression, the minimum expression is found by simply covering the
AND expression while treating all other map-entered variables as 0s and all 1s as
dont cares.
F ( w,x,y,z ) = (1,4,6,7,8,9,10,11,15)
Example:
wxyz
0001
0100
1000
wxyz
1
4
8
0110
1001
6
9
1010
10
0111
1011
11
1111
15
Exercise:
SWIDLEC Lecture Notes
Edzel R. Lapira
zell@mozcom.com
wxyz
-001
01-0
100-
1,9
4,6
8,9
(8)
(2)
(1)
10-0
8,10
(2)
6,7
(1)
01110-1
101-
9,11 (2)
10,11 (1)
-111
1-11
7,15 (8)
11,15 (4)
10-10--
8,9,10,11
8,9,10,11
F ( w,x,y,z ) = (1,2,8,10,11,14,15 )
(1,2)
(1,2)
Prime Implicants
-001
1,9
01-0
011-111
4,6
6,7
7,15
1-11
10--
11,15
8,9,10,11
10
11
15
Prime Implicants
-001
1,9
01-0
4,6
011-111
1-11
10--
10
6,7
7,15
11,15
8,9,10,11
11
15
CUBES
A cube is usually defined as a solid object bounded by six equal squares.
This concept can be generalized to other than three dimensions. A twodimensional cube is a square, a one-dimensional cube is a line, and a zerodimensional cube is a point.
One can represent the truth table of an n-input Boolean
function as a cube in an n-dimensional Boolean space. There
is one axis for each variable, over which it can take exactly two
values: 0 or 1. Each node is labeled with its coordinates in the ndimensional space.
1-cube
xyz
011
xy
11
01
111
010
110
001
y
y
00
10
101
z
x
000
2-cube
100
3-cube
1011
0011
0111
wxyz
1111
1110
1010
1001
0010
1101
0110
0001
y
0000
0101
z
w
x
0100
1100
1000
4-cube
F(x,y) = (2,3)
xy
11
01
y
00
10
F(x,y) = x
Another example:
F(x,y,z) = (3,5,6,7)
yz
xyz
111
011
010
xz
110
001
101
000
100
xy
F(x,y,z) = (4,5,6,7)
xyz
111
011
010
110
001
y
000
101
z
x
100
LOGIC GATES
(ANSI/IEEE Standard 91-1984)
NOT
&
AND
>=1
OR
&
NAND
>=1
NOR
=1
XOR
=1
XNOR
Digital circuits are more frequently constructed with NAND or NOR gates than with
AND and OR gates. NAND and NOR gates are easier to fabricate with electronic
components and are the basic gates used in all IC digital logic families.
Because of the prominence of NAND and NOR gates in the design of digital circuits,
rules and procedures have been developed for the conversion from Boolean functions given
in terms of AND, OR and NOT into equivalent NAND and NOR logic diagrams.
a
b
a
b
AND-Invert (NAND)
c
Invert-OR
NOR GATE
a
b
c
OR-Invert (NOR)
a
b
c
Invert-AND
A
AB
A
B
AB = AB
A
B
AB
AB = A + B
A
B
A+B
A+B
A
B
A+B
AB = A + B
A
A+B
A
B
A+B
A
B
A+B
A + B = AB
A
B
AB
A
AB
AB
A
B
AB
Two-Level Implementations
The logic diagram of any function can be drawn using a two-level implementation.
The first level takes care of the base term (either a sum term or a product term). The number
of first-level gates to be used to implement the function depends on the number of base terms.
The second level takes into consideration the operation being
done on the base
terms. There is always a single gate at the second level.
There are four basic types of gates:
AND, OR, NAND and NOR. If one type of
gate is assigned for the first level and one type
for the second, there will be 16 possible
combinations.
Degenerate Forms
Of the sixteen combinations, there are eight (8) degenerate forms. They are called
such because they degrade to a single operation. The degenerate forms are:
AND-AND = AND
AND-NAND = NAND
NOR-NAND = OR
NOR-AND = NOR
OR-OR = OR
OR-NOR = NOR
NAND-NOR = AND
NAND-OR = NAND
Nondegenerate Form
The other eight (8) combinations are nondegenerate forms that produce an
implementation in sum of products or product of sums. They are:
AND OR
NAND NAND
NOR OR
OR NAND
OR AND
NOR NOR
NAND AND
AND NOR
Note that any two forms listed in the same line are the duals of each other.
Nondegenerate Forms
1. AND - OR
Required: F in SOP
Example: F = AB + CD
A
C
B
D
C
AB + CD
2. OR - AND
Required: F in POS
Example: F = (A + B)(C + D)
A
C
B
D
C
(A + B)(C + D)
3. NAND - NAND
Required: F in SOP
Example: F = AB + CD F = ABCD
A
C
B
D
C
ABCD
4. NOR - NOR
Required: F in POS
Example: F = ( A + B ) ( C + D ) F = ( A + B ) + ( C + D )
A
C
B
D
C
( A + B) + ( C + D )
5. AND - NOR
Required: F in POS
Example: F = ( A + B ) ( C + D ) F = ( A + B ) + ( C + D ) F = AB + CD
A
C
B
D
C
AB + CD
or
Required: F in SOP
Example: F = AB + CD F = AB + CD F = AB + CD
A
C
B
D
C
AB + CD
6. NAND - AND
Required: F in POS
( )( )
Example: F = ( A + B ) ( C + D ) F = ( A + B ) + ( C + D ) F = AB + CD F = AB CD
A
( AB )( CD)
or
Required: F in SOP
Example: F = AB + CD F = AB + CD F = AB + CD F = ( AB) ( CD )
A
D
C
( AB) ( CD )
7. OR NAND
Required: F in SOP
)(
Example: F = AB + CD F = ABCD F = A + B C + D
A
C
B
D
C
( A + B)( C + D)
or
Required: F in POS
Example: F = (A + B)(C + D) F = (A + B)(C + D) F = (A + B)(C + D)
A
D
C
(A + B)(C + D)
8. NOR OR
Required: F in SOP
)(
) (
Example: F = AB + CD F = ABCD F = A + B C + D F = A + B + C + D
A
C
B
D
C
( A + B) + ( C + D )
or
Required: F in POS
Example: F = (A + B)(C + D) F = (A + B)(C + D) F = (A + B)(C + D) F = (A + B)+(C + D)
A
C
B
D
C
(A + B)+(C + D)