V12.6.2 What Checkers Cost

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeWhere the checker belongs
1On a chip boundary, always on
2In the block bench only
3On the boundary, enabled only for the tests that need it
4Nowhere: a check of the test itself, not of the chip
EntryYour decision
SLOW_11Slow-down of the bench's checkers, percent of the run with none, rounded down.
SLOW_22Slow-down with every checker twice, percent, rounded down.
PER_MSCost of one checker on this loop, in ms, from the 0 and 22 runs (rounded).
AHB_RULESAn AHB protocol checker on every manager and target port of the matrix.
FIFO_INSIDEA checker on the pointers of the UART receive queue.
TIMER_SLOWA checker that counts every timer slot, needed only by the timer tests.
PASS_WORDA check that the test wrote the pass word last.
PREDICT_MSPredict 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

Report a problem with this page

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

SLOW 11

Input
Slow-down of the bench's checkers, percent of the run with none, rounded down.
Expected output
matches = 1

(5.745 − 4.916) / 4.916.

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

Icarus Verilog · server