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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Bucket |
|---|---|
| 1 | The same bug as the CLINT bucket |
| 2 | The same bug as the UART bucket |
| 3 | The same bug as the SPI bucket |
| 4 | The same bug as the DMA bucket |
| Runs | Signature (first error, cycles and data masked) |
|---|---|
| 9 | bench: seat: read 02000000 = DATA, expected DATA (mask 00000003) |
| 1 | firmware: fail code 0003 |
| 10 | MONITOR spi: frame 0: 32 clocks, command 00 on the wire for 9f written, reply c0ffee on the wire, c0ffee stored |
| 10 | MONITOR dma: the byte written is not the byte read (address 80003001, 2 bytes left) |
| 9 | bench: seat: read 1000000c = DATA, expected DATA (mask 000000ff) |
| 1 | firmware: 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.
| Entry | Your decision |
|---|---|
| RUNS | How many runs did the regression make? |
| FAILS | How many runs failed? |
| RAW | How many different first error lines are there, before masking? |
| SIGNATURES | How many signatures after masking? |
| FW_0003 | The bucket "firmware: fail code 0003" (the msip test on the processor). |
| FW_0007 | The bucket "firmware: fail code 0007" (the uart test on the processor). |
| BUGS | How many bugs are behind the failures? |
| DMA_RUNS | How many runs are in the DMA monitor's bucket? |
| RUNS_PER_TEST | A 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