V1.4.1 Fill the Plan Rows

EasyImplement12 minIcarus Verilog · serverReview the topic

Complete rows of a chip-level plan for ap_soc. Give the mode for each feature, the check that proves it, and the size of a map walk.

Hardware context: The chip-level verification plan of ap_soc. Writing plan rows for a new chip feature.

A plan row reads: feature, risk, test, mode, check, coverage. Some entries ask for a mode code, others for a check code. The two tables use different numbers.

This worksheet uses named constants. The first three entries show how to record your decisions.

Replace each unresolved value of 255 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeMode
1With CPU
2Without CPU
3Both: the same test in each mode
CodeCheck
4Self-checking firmware reports pass or fail through the bench channel
5A passive bus monitor and protocol checker
6An end-to-end scoreboard at the pads
7A formal connectivity check against the connection table
8A compare against a reference model of the core
EntryYour decision
BOOT_MODEMode for: reset to main in both boot-strap settings.
UART_ECHO_CHECKCheck for: a byte sent at the pad comes back out of the pad.
WIRES_CHECKCheck for: every wire of the connection table goes where it says.
REG_SWEEP_MODEMode for: reset values of every register.
IRQ_MODEMode for: interrupt from GPIO to handler and back to completion.
APB_CHECKCheck for: every APB transfer obeys the protocol, in every test.
CORE_CHECKCheck for: each instruction the core retires does what the instruction set says.
HANDLER_CHECKCheck for: the timer handler counts ten interrupts and then reports.
DMA_MODEMode for: a DMA copy, started once by a bus manager and once by firmware.
MAP_READSSize the map walk. The map has REGIONS regions, sorted, with a hole between each pair and one above the last. The test reads the first and the last word of each region and one address in each hole. How many reads?

Examples

Example 1

BOOT MODE
Input
Mode for: reset to main in both boot-strap settings.
Output
matches = 1

Boot means real instruction fetch from reset.

Example 2

UART ECHO CHECK
Input
Check for: a byte sent at the pad comes back out of the pad.
Output
matches = 1

The proof is at the pads, end to end.

Example 3

WIRES CHECK
Input
Check for: every wire of the connection table goes where it says.
Output
matches = 1

Formal compares the netlist with the table, wire by wire, without tests.

Constraints and Contract

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

Hints

Hint 1

Does the test need instructions to run? Then with CPU.

Hint 2

Name what proves the result: the firmware, a monitor, the pads, formal or a model.

Hint 3

R regions have R - 1 gaps between them, plus the space above the last.

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

14 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

BOOT MODE

Input
Mode for: reset to main in both boot-strap settings.
Expected output
matches = 1

Boot means real instruction fetch from reset.

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

Icarus Verilog · server