CH 3
CH 3
1
Two-Variable K-Map
The two-variable map is shown in Fig. 3.1 (a). There are four minterms for two variables; hence, the map
consists of four squares, one for each minterm. The map is redrawn in (b) to show the relationship
between the squares and the two variables x and y.
Example,
Three-Variable K-Map
A three-variable K-map is shown in Fig. 3.3 (a) there are eight minterms for three binary variables;
therefore, the map consists of eight squares. Note that the minterms are arranged, not in a binary
sequence, but in a sequence similar to the Gray code. The map redrawn in part (b) is marked with numbers
in each row and each column to show the relationship between the squares and the three variables.
2
Example:
F = yz + xz’
FIGURE 3.4: Map for the Boolean function, F (x, y, z) = ∑ (3, 4, 6, 7) = yz + xz’
F (x, y, z) = ∑ (0, 2, 4, 5, 6)
F = z’ + xy’
FIGURE 3.5: Map for the Boolean function, F (x, y, z) = ∑ (0, 2, 4, 5, 6)= z + xy’
3
3. For the Boolean function F = A’C + A’B + AB’C + BC
F (A, B, C) =∑ (1, 2, 3, 5, 7)
The sum-of-products expression, as originally given, has too many terms. It can be simplified, as shown
in the map, to an expression with only two terms: F = C + A’B
FIGURE 3.6: Map for the Boolean function F(A,B,C) = A’C+ A’B + AB’C + BC = C + A’B
The map for Boolean functions of four binary variables (w, x, y, z) is shown in Fig. 3.7 (a), are listed the
16 minterms and the squares assigned to each. (b), the map is redrawn to show the relationship
between the squares and the four variables.
4
Example,
F = y’ + w’z’ + xz’
FIGURE3.8: Map for the Boolean function F (w, x, y, z) =Ʃ (0, 1, 2, 4, 5, 6, 8, 9, 12, 13, 14) = y’ + w’z’ + xz’
Five-Variable Map
Maps for more than four variables are not as simple to use as maps for four or fewer variables. A five-
variable map needs 32 squares and a six-variable map needs 64 squares. When the number of variables
becomes large, the number of squares becomes excessive and the geometry for combining adjacent
squares becomes more involved. Maps for more than four variables are difficult to use and will not be
considered here.
5
3.2 product of Sums Simplification
If we mark the empty squares by 0’s rather than 1’s and combine them into valid adjacent squares, we
obtain the complement of the function, F’. Use the DeMorgan’s theorem, we can get the product of
sums.
Example, Simplify the following Boolean function F (A, B, C, D) = ∑(0, 1, 2, 5, 8, 9, 10) into
(a) sum-of-products form and
(b) product-of-sums form
(a) Combining the squares with 1’s gives the simplified function in sum-of-products form:
F = B’D’ + B’C’ + A’C’D
(b) If the squares marked with 0’s are combined, as shown in the diagram, we obtain the simplified
complemented function:
F’ = AB + CD + BD’
By applying DeMorgan’s theorem, we obtain the simplified function in productof-sums form:
F = (A + B) (C + D) (B + D)
6
3.3 Don’t - Care Conditions
The logical sum of the minterms associated with a Boolean function specifies the conditions under which
the function is equal to 1. The function is equal to 0 for the rest of the minterms. This pair of conditions
assumes that all the combinations of the values for the variables of the function are valid.
In practice, in some applications the function is not specified for certain combinations of the variables. As
an example, the four-bit binary code for the decimal digits has six combinations that are not used and
consequently are considered to be unspecified.
The unspecified combinations (min-terms) are called don’t-care conditions, and they are used on the map
to provide further simplification.
Don’t-care conditions:
Rules and procedures have been developed for the conversion from Boolean functions given in terms of
AND, OR, and NOT into equivalent NAND or NOR logic diagrams.
7
NAND Implementation
The implementation of a Boolean function with NAND gates requires that the function be simplified in
the sum of products form.
NOR Implementation
The implementation of a Boolean function with NOR gates requires that the function be simplified in
product of sums form.