Use the recorded cost of the chip bench's protocol checkers to decide where assertions pay at chip level.
Hardware context: The protocol checkers bound into the chip bench at its bus boundaries, and a learner checker at two sites. The measured cost of checkers on a fixed loop.
Recorded on ap_soc v1.5 (V12.6 lab): the §6.2 loop of 1,300,028 system cycles, median of three runs. The three builds differ only in their bus checkers. With none: 4.916 s. With the bench's 11: 5.745 s. With 22: 6.812 s.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 65535 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Where the checker belongs |
|---|---|
| 1 | On a chip boundary, always on |
| 2 | In the block bench only |
| 3 | On the boundary, enabled only for the tests that need it |
| 4 | Nowhere: a check of the test itself, not of the chip |
| Entry | Your decision |
|---|---|
| SLOW_11 | Slow-down of the bench's checkers, percent of the run with none, rounded down. |
| SLOW_22 | Slow-down with every checker twice, percent, rounded down. |
| PER_MS | Cost of one checker on this loop, in ms, from the 0 and 22 runs (rounded). |
| AHB_RULES | An AHB protocol checker on every manager and target port of the matrix. |
| FIFO_INSIDE | A checker on the pointers of the UART receive queue. |
| TIMER_SLOW | A checker that counts every timer slot, needed only by the timer tests. |
| PASS_WORD | A check that the test wrote the pass word last. |
| PREDICT_MS | Predict the extra time, in ms, that N checkers add to this loop, at the measured cost per checker. |
Examples
Example 1
SLOW 11- Input
Slow-down of the bench's checkers, percent of the run with none, rounded down.
- Output
matches = 1
(5.745 − 4.916) / 4.916.
Example 2
SLOW 22- Input
Slow-down with every checker twice, percent, rounded down.
- Output
matches = 1
The cost grows with the number of checkers.
Example 3
PER MS- Input
Cost of one checker on this loop, in ms, from the 0 and 22 runs (rounded).
- Output
matches = 1
(6.812 − 4.916) / 22 × 1000.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For PREDICT_MS, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 5 through 30, inclusive.
Hints
Hint 1
Cost is the time with checkers minus the time without, over the time without.
Hint 2
Three points lie close to a line: cost per checker times the count.
Hint 3
A boundary rule every test can break stays on; a block's insides stay in the block bench.
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