Tabular Method
Row Dominance
If a prime implicant
Column Dominance
If the prime implicants of minterm
Tabular Method
AKA Quine-McCluskey method.
This method can be programmed easily on computers.
The basis of the tabular method (and K-map) is the combining law.
- List all minterms in a table and group them based on the number of 1s in the binary representation of their minterm number
- Don't cares can be treated as a minterm
- Combine implicants of one group with an implicant in their successive group that differ by only 1 bit location
- Create a list, replacing the differing bit with a don't care.
- Repeat until further combinations cannot be made. Any un-combined minterms are prime implicants.
- List prime implicants and the minterms they cover, identify any essential prime implicants using inspection and either column or row dominance
Consider the function
solution
We have:
- 0: 0000
- 4: 0100
- 8: 1000
- 10: 1010
- 11: 1011
- 12: 1100
- 13: 1101
- 15: 1111
(see Number Systems#Binary)
Now we group the minterms by the number of
Now we combine adjacent minterms. For example, we can combine 0000 with 0100 to get 0x00. In essence, this is what a K-map is doing. We can show this like so:
Finally, we combine once more:
Any implicant that was not checked off is a prime implicant. We will label these from 1 to 6:
Now we list all the prime implicants and the minterms they cover (exclude any don't cares from list 1):
Prime Implicants | ||||||||
---|---|---|---|---|---|---|---|---|
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | ✓ | ✓ |
Now we remove
Prime Implicants | ||||
---|---|---|---|---|
✓ | ||||
✓ | ✓ | |||
✓ | ||||
✓ | ✓ | |||
✓ | ✓ |
Note that while
Prime Implicants | ||||
---|---|---|---|---|
✓ | ✓ | |||
✓ | ✓ | |||
✓ | ✓ |
Now, by inspection, we need to to chose
Therefore, the minimum-cost implementation is:
Consider the following table without any EPIs:
Prime Implicants | ||||||||
---|---|---|---|---|---|---|---|---|
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | |||||||
✓ | ✓ | ✓ | ||||||
✓ | ✓ | ✓ | ||||||
✓ | ✓ | ✓ | ||||||
✓ | ✓ | ✓ |
Find all necessary prime implicants.
solution
Note that column
Same goes for
Prime Implicants | ||||||
---|---|---|---|---|---|---|
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ||||||
✓ | ||||||
✓ | ✓ |
Note that
Prime Implicants | ||||||
---|---|---|---|---|---|---|
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ✓ | |||||
✓ | ✓ |
Observe that
Prime Implicants | ||
---|---|---|
✓ | ||
✓ | ✓ | |
✓ |
Finally,
Therefore, our final cover is