Score chip features by likelihood and impact, put them in order, and find how many fit in the days you have.
Hardware context: The chip-level verification plan of ap_soc. Cutting a plan to the days the schedule allows.
Exercise values for a small plan. Risk is likelihood times impact, each from 1 to 5. Features with higher risk go first; a tie keeps the table order.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 255 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Feature | Likelihood | Impact | Days to verify |
|---|---|---|---|---|
| 1 | Boot from ROM | 5 | 5 | 3 |
| 2 | UART echo | 3 | 4 | 2 |
| 3 | DMA copy | 4 | 4 | 4 |
| 4 | GPIO pins | 2 | 3 | 1 |
| 5 | Timer interrupt | 4 | 3 | 2 |
| 6 | Watchdog reset | 3 | 5 | 3 |
Spending rule: walk the features in risk order. Take a feature if its days still fit in what is left; otherwise skip it and try the next.
| Entry | Your decision |
|---|---|
| RISK_BOOT | Risk score of boot from ROM. |
| RISK_DMA | Risk score of DMA copy. |
| FIRST | Code of the feature with the highest risk. |
| SECOND | Code of the feature in second place. |
| THIRD | Code of the feature in third place. |
| LAST | Code of the feature in last place. |
| TOTAL_DAYS | Days to verify every feature. |
| FIT_10 | How many features fit in 10 days? |
| FIT_12 | How many features fit in 12 days? |
| FIT | How many features fit in DAYS days, by the spending rule? |
Examples
Example 1
RISK BOOT- Input
Risk score of boot from ROM.
- Output
matches = 1
Likelihood 5 times impact 5.
Example 2
RISK DMA- Input
Risk score of DMA copy.
- Output
matches = 1
4 times 4.
Example 3
FIRST- Input
Code of the feature with the highest risk.
- Output
matches = 1
Boot, with 25, is the highest.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For FIT, enter a constant expression using DAYS. Only this entry changes with the parameter. The supported integer range is 0 through 15, inclusive.
Hints
Hint 1
Multiply likelihood by impact.
Hint 2
Highest risk first; ties keep table order.
Hint 3
Take what fits; skip what does not, and keep going.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
14 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