V12.4.1 Triage by Signature

MediumImplement22 minIcarus Verilog · serverReview the topic

Read a recorded regression of ap_soc: count its runs, failures and signatures, and match the buckets to bugs.

Hardware context: A regression of ap_soc v1.5: reference tests in two modes and many seeds against candidate builds. Counting runs, failures and signatures.

Recorded on ap_soc v1.5 (V12.4 lab). Each of 12 reference tests ran on the bus-manager seat with 9 seeds of random gaps, and once on the processor. They ran on the good chip and on 4 candidate builds with one seeded bug each.

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
CodeBucket
1The same bug as the CLINT bucket
2The same bug as the UART bucket
3The same bug as the SPI bucket
4The same bug as the DMA bucket
RunsSignature (first error, cycles and data masked)
9bench: seat: read 02000000 = DATA, expected DATA (mask 00000003)
1firmware: fail code 0003
10MONITOR spi: frame 0: 32 clocks, command 00 on the wire for 9f written, reply c0ffee on the wire, c0ffee stored
10MONITOR dma: the byte written is not the byte read (address 80003001, 2 bytes left)
9bench: seat: read 1000000c = DATA, expected DATA (mask 000000ff)
1firmware: fail code 0007

A seat failure is a bench message about a table row. A processor failure is a fail code. The row interpreter in ROM writes 0xBAD0_0000 plus the failing entry's number, counted from 1. A hand-shake with the bench is an entry too.

EntryYour decision
RUNSHow many runs did the regression make?
FAILSHow many runs failed?
RAWHow many different first error lines are there, before masking?
SIGNATURESHow many signatures after masking?
FW_0003The bucket "firmware: fail code 0003" (the msip test on the processor).
FW_0007The bucket "firmware: fail code 0007" (the uart test on the processor).
BUGSHow many bugs are behind the failures?
DMA_RUNSHow many runs are in the DMA monitor's bucket?
RUNS_PER_TESTA test runs on the seat with S seeds and once on the processor, on one chip. How many runs is that?

Examples

Example 1

RUNS
Input
How many runs did the regression make?
Output
matches = 1

12 tests × (9 + 1) runs × 5 chips.

Example 2

FAILS
Input
How many runs failed?
Output
matches = 1

Every failure is on a candidate build; the good chip passed every run.

Example 3

RAW
Input
How many different first error lines are there, before masking?
Output
matches = 1

Cycle numbers differ from seed to seed.

Constraints and Contract

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

Hints

Hint 1

Runs, failures, raw lines, signatures: each is a smaller number than the last.

Hint 2

A firmware fail code names a row; find the seat message about the same row.

Hint 3

Four builds, one bug each: the buckets must fold into four.

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

RUNS

Input
How many runs did the regression make?
Expected output
matches = 1

12 tests × (9 + 1) runs × 5 chips.

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

Icarus Verilog · server