S1.1.2 Which Chip for the Job

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
OfferCodeFixed cost ($k)Unit cost ($)Capabilities
MCU106Control, on-chip memory
Application processor2012Control, virtual memory, display
FPGA3608Control, parallel capture, field-changeable logic
Custom ASIC41804Control, 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.

EntryYour decision
DISPLAYChoose for a display requiring virtual memory at volume 2.
FIELDChoose for field-changeable capture logic at volume 80.
MCU_COSTCompute the MCU cost in $k at volume 5.
CAPTURE_29Choose for parallel capture at volume 29. Field changes are optional.
CAPTURE_30Choose for parallel capture at volume 30. Field changes are optional.
CAPTURE_31Choose for parallel capture at volume 31. Field changes are optional.
CROSSOVERFirst whole volume where the ASIC strictly beats the FPGA for capture.
CONTROL_89Choose for control only at volume 89.
CONTROL_90Choose for control only at volume 90.
CONTROL_91Choose for control only at volume 91.
LOCALChoose for control requiring the explicitly offered on-chip memory at volume 100.
BATCH_OFFERChoose 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

DISPLAY

Input
Choose for a display requiring virtual memory at volume 2.
Expected output
matches = 1

Only offer 2 lists both required features.

Run samples executes all 3 public checks. Check all tests runs 12 checks on the server.

Icarus Verilog · server