Exercises 5.6 Exercises
1.
Design a function that will detect the even 4-bit integers.
Let a 4-bit integer be \(wxyz\) where each literal represents one bit. The even 4-bit integers are given by the function:
Using the distributive property repeatedly we get:
And from the complement property we arrive at a minimal sum of products:
which you recognize as Figure 5.1.3.
2.
Find a minimal sum of products (mSoP) expression for the function
First we draw the Karnaugh map:
Several groupings are possible. Keep in mind that groupings can wrap around. We will work with:
which yields a minimal sum of products:
3.
Find a minimal product of sums (mPoS) expression for the function
This expression includes maxterms 0, 1, 3, 4, and 7. These appear in a Karnaugh map:
Next we encircle the largest adjacent blocks, where the number of cells in each block is a power of two. Notice that maxterm \(M_{0}\) appears in two groups.
From this Karnaugh map it is very easy to write the function as a minimal product of sums:
4.
Find a minimal product of sums (mPoS) expression for the function
Using the Karnaugh map zeros:
we obtain the complement of our desired function:
and from DeMorgan's Law:
5.
Show where each minterm is located with this Karnaugh map axis labeling using the notation of Figure 5.5.7.
6.
Show where each minterm is located with this Karnaugh map axis labeling using the notation of Figure 5.5.7.
7.
Design a logic function that detects the prime single-digit numbers. Assume that the numbers are coded in 4-bit BCD (see Section 4.6.1). The function is \(1\) for each prime number.
The prime numbers correspond to the minterms \(m_{2}\text{,}\) \(m_{3}\text{,}\) \(m_{5}\text{,}\) and \(m_{7}\text{.}\) The minterms \(m_{10}\text{,}\) \(m_{11}\text{,}\) \(m_{12}\text{,}\) \(m_{13}\text{,}\) \(m_{14}\text{,}\) \(m_{15}\) cannot occur so are marked “don't care” on the Karnaugh map.
which gives: