Use the measured fault table of ap_soc to choose the mode of each new check, then read the table's counts and costs.
Hardware context: The E9 fault table of ap_soc v1.5: 85 seeded faults and the kinds of test that caught each. Choosing the mode of new checks from the table.
The fault table of ap_soc holds 130 seeded faults so far, from stage E9 and later stages. docs/soc/fault-table.md says which kinds of test caught each one. Its paired runs cost, in cycles (firmware, seat): lanes 191, 33; jtag 2110, 2036; turnaround 114, 27; sweep 10254, 1193. The interrupt program, which has no seat form, cost 323 cycles. Enter a code for each check, and whole numbers rounded down for the rest.
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 | The mode to choose first |
|---|---|
| 1 | Firmware on the processor |
| 2 | The bus-manager seat, and only the seat |
| 3 | Either seat: choose the seat, it is cheaper |
| 4 | The model compare of the retire trace |
| 5 | A connectivity proof |
| 6 | A passive checker, in whichever mode runs |
| Entry | Your decision |
|---|---|
| HANDLER | A handler saves and restores the registers it uses. |
| DEFERRED | An SRAM read placed on a write's data phase. |
| RESETS | Every register's reset value. |
| ALU | An ALU result that is wrong while the test still reaches its pass word. |
| WIRE | Each wire of connect.csv between two blocks. |
| BUS_RULE | An AHB rule broken by any manager in any test. |
| MISALIGNED | A word transfer at an address that is not a multiple of 4, made on purpose. |
| BOTH_SEATS | Faults caught by both seats. |
| QUIET_BUS | A write that sets a bit on the always-on bus which the target register has no field for. |
| NEITHER | Faults caught by neither seat. |
| SWEEP_RATIO | How many times the sweep's firmware cycles are its seat cycles, rounded down. |
| CHEAPEST | Cycles of the cheapest suite for lanes, jtag, turnaround and the interrupt program. |
| SUITE_AT | Cycles of the cheapest suite when the interrupt program runs IRQ_RUNS times, at 323 cycles each. Add one seat run each of lanes, jtag and turnaround. |
Examples
Example 1
HANDLER- Input
A handler saves and restores the registers it uses.
- Output
matches = 1
Instruction flow.
Example 2
DEFERRED- Input
An SRAM read placed on a write's data phase.
- Output
matches = 1
The core never makes that timing.
Example 3
RESETS- Input
Every register's reset value.
- Output
matches = 1
Either seat can; the seat is cheaper.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For SUITE_AT, enter a constant expression using IRQ_RUNS. Only this entry changes with the parameter. The supported integer range is 1 through 20, inclusive.
Hints
Hint 1
Name what the bug needs: an instruction, a timing, a reference, a wire.
Hint 2
Usually the seat when either can.
Hint 3
Columns overlap: both seats, one seat, neither.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
17 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