V12.5.2 Merging Across Tests and Modes

MediumImplement22 minIcarus Verilog · serverReview the topic

Read the merge of the chip's eight coverage runs. Find what each run and each mode added, and what merging may and may not do.

Hardware context: The merge of eight coverage runs of ap_soc v1.5 across tests and across processor and seat. Reading what each run and each mode added.

The E11 ledger merges eight passing runs in a declared order. GPIO, DMA, timer and wake each ran on the processor (cpu), then on the seat (bfm). Hit counts add; a bin's first contributor is the earliest run in the order with a hit.

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
OrderTestModeCyclesNew bins
0gpiocpu58045
1gpiobfm7411
2dmacpu75125
3dmabfm19511
4timercpu33211
5timerbfm629
6wakecpu35625
7wakebfm1376
CodeIs the merge correct?
1Correct
2Wrong: it averages percentages
3Wrong: it merges runs of different builds
4Wrong: it counts a failing run
EntryYour decision
HITHow many bins does the merged ledger hit?
FIRST_CPUHow many bins have a processor run as first contributor?
FIRST_BFMAnd a seat run?
CPU_CYCLESTotal system cycles of the four processor runs.
BFM_CYCLESTotal system cycles of the four seat runs.
MERGE_AVGA merge takes the mean of the eight runs' percentages.
MERGE_KEYA merge adds counts only when every run carries the same model fingerprint.
MERGE_FAILA merge adds the counts of a run that ended with a fail word.
NEW_ATHow many new bins did the run of order R add (the table above)?

Examples

Example 1

HIT
Input
How many bins does the merged ledger hit?
Output
matches = 1

The sum of the new-bins column.

Example 2

FIRST CPU
Input
How many bins have a processor run as first contributor?
Output
matches = 1

Add the new bins of the four cpu rows.

Example 3

FIRST BFM
Input
And a seat run?
Output
matches = 1

The seat runs add only what the processor runs before them missed.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For NEW_AT, enter a constant expression using R. Only this entry changes with the parameter. The supported integer range is 0 through 7, inclusive.

Hints

Hint 1

Merged hits are sums; a bin is hit if any run hit it.

Hint 2

Follow the declared order; reorder the runs and the first contributors change, the hits do not.

Hint 3

Different builds, failing runs and averaged percentages do not merge.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

13 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

HIT

Input
How many bins does the merged ledger hit?
Expected output
matches = 1

The sum of the new-bins column.

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

Icarus Verilog · server