سوال ۸۳ کنکور ارشد مهندسی کامپیوتر ۱۴۰۰
اگر هزینهٔ هر گیت را برابر تعداد ورودیهای آن در نظر بگیریم، کمترین هزینهٔ لازم برای پیادهسازی یک مالتیپلکسر ۴ به ۱ کدام است؟
پاسخ صحیح: گزینهٔ C — ۱۸
A 4-to-1 multiplexer has four data inputs and two select lines . Its standard sum-of-products (AND-OR) realization is
Cost it by total gate inputs (cost of a gate = number of its inputs):
| Gate group | Count | Inputs each | Subtotal |
|---|---|---|---|
| NOT (to make ) | 2 | 1 | |
| AND (one per data line) | 4 | 3 | |
| OR (combine the 4 products) | 1 | 4 |
Total .
Each AND gate must receive the data bit plus the two decoded select conditions, so it needs inputs; the two select inverters are shared across all four product terms, so only inverters are required (not ). The final OR must merge all product terms, costing . This AND-OR-INVERT structure is minimal for a standard two-level MUX, giving a cost of — option 3.
Pitfall: Don't forget the shared inverters for the select lines, and remember each product AND gate is -input (data + 2 select), not -input. Counting underestimates and lands on the trap value .