Eliminate chips that cannot do the job, then find when volume changes the lowest-cost feasible choice.
Hardware context: ap_soc embedded microcontroller. Controller platform selection and bring-up
Four suppliers quote different products for a controller. These exercise quotes include all board costs. Each offer provides only the capabilities in its row.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Offer | Code | Fixed cost ($k) | Unit cost ($) | Capabilities |
|---|---|---|---|---|
| MCU | 1 | 0 | 6 | Control, on-chip memory |
| Application processor | 2 | 0 | 12 | Control, virtual memory, display |
| FPGA | 3 | 60 | 8 | Control, parallel capture, field-changeable logic |
| Custom ASIC | 4 | 180 | 4 | Control, parallel capture, fixed logic |
Volume is in thousands of units. Total cost in thousands of dollars equals fixed cost plus volume times unit cost. At equal cost choose the smaller code.
| Entry | Your decision |
|---|---|
| DISPLAY | Choose for a display requiring virtual memory at volume 2. |
| FIELD | Choose for field-changeable capture logic at volume 80. |
| MCU_COST | Compute the MCU cost in $k at volume 5. |
| CAPTURE_29 | Choose for parallel capture at volume 29. Field changes are optional. |
| CAPTURE_30 | Choose for parallel capture at volume 30. Field changes are optional. |
| CAPTURE_31 | Choose for parallel capture at volume 31. Field changes are optional. |
| CROSSOVER | First whole volume where the ASIC strictly beats the FPGA for capture. |
| CONTROL_89 | Choose for control only at volume 89. |
| CONTROL_90 | Choose for control only at volume 90. |
| CONTROL_91 | Choose for control only at volume 91. |
| LOCAL | Choose for control requiring the explicitly offered on-chip memory at volume 100. |
| BATCH_OFFER | Choose the parallel capture offer for VOLUME thousand units. Field changes are optional. |
Examples
Example 1
DISPLAY- Input
Choose for a display requiring virtual memory at volume 2.
- Output
matches = 1
Only offer 2 lists both required features.
Example 2
FIELD- Input
Choose for field-changeable capture logic at volume 80.
- Output
matches = 1
Only the FPGA can change the capture circuit after delivery.
Example 3
MCU COST- Input
Compute the MCU cost in $k at volume 5.
- Output
matches = 1
Five thousand units at six dollars each cost thirty thousand dollars.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For BATCH_OFFER, enter a constant expression using VOLUME. Only this entry changes with the parameter. The supported integer range is 1 through 100, inclusive.
Hints
Hint 1
Cross out each offer missing a required capability before comparing costs.
Hint 2
Compare totals one volume below, at and above a tie.
Hint 3
A thousand units times dollars per unit gives thousands of dollars.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
12 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path