A circuit outputs a digit in the form of bits. is represented by by by . A combinational circuit is to be designed which takes these bits as input and outputs if the digit , and otherwise. If only and gates may be used, what is the minimum number of gates required?
View worked solution
Answer: B
To find the minimum number of gates required, let the 4-bit input representing the decimal digits to be (where is the MSB and is the LSB).
Since the input represents a decimal digit, the values from to ( to ) do not occur and are treated as don't care conditions ().
The output must be if the digit is (i.e., ).
1. K-Map Simplification
We map the minterms and don't cares onto a 4-variable K-map:
- Minterms ():
- Don't cares ():
| 00 | 01 | 11 | 10 | |
|---|---|---|---|---|
| 00 | 0 | 0 | 0 | 0 |
| 01 | 0 | 1 (5) | 1 (7) | 1 (6) |
| 11 | X (12) | X (13) | X (15) | X (14) |
| 10 | 1 (8) | 1 (9) | X (11) | X (10) |
From the K-map, we can form the following groups:
- An 8-cell group combining rows and :
- A 4-cell group covering cells :
- A 4-cell group covering cells :
Thus, the simplified Boolean expression is: Factoring out gives:
2. Gate Count Analysis
We can implement the expression using the following gates:
- One 2-input OR gate to compute .
- One 2-input AND gate to compute .
- One 2-input OR gate to compute .
No gates are required since all variables are in their uncomplemented forms.
Therefore, the minimum number of gates required is .
Free practice · Your answers on this page are not saved.
