V6.7.1 Choose the Mode

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeThe mode to choose first
1Firmware on the processor
2The bus-manager seat, and only the seat
3Either seat: choose the seat, it is cheaper
4The model compare of the retire trace
5A connectivity proof
6A passive checker, in whichever mode runs
EntryYour decision
HANDLERA handler saves and restores the registers it uses.
DEFERREDAn SRAM read placed on a write's data phase.
RESETSEvery register's reset value.
ALUAn ALU result that is wrong while the test still reaches its pass word.
WIREEach wire of connect.csv between two blocks.
BUS_RULEAn AHB rule broken by any manager in any test.
MISALIGNEDA word transfer at an address that is not a multiple of 4, made on purpose.
BOTH_SEATSFaults caught by both seats.
QUIET_BUSA write that sets a bit on the always-on bus which the target register has no field for.
NEITHERFaults caught by neither seat.
SWEEP_RATIOHow many times the sweep's firmware cycles are its seat cycles, rounded down.
CHEAPESTCycles of the cheapest suite for lanes, jtag, turnaround and the interrupt program.
SUITE_ATCycles 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

Report a problem with this page

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

HANDLER

Input
A handler saves and restores the registers it uses.
Expected output
matches = 1

Instruction flow.

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

Icarus Verilog · server