V2.4.1 Choose the Window

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort the checks of a chip bench into black, grey and white box. Then weigh what each costs: survival through RTL changes, use on silicon, and how well it locates a bug.

Hardware context: Probe points of ap_soc v1.5: pads, buses and interrupt wires, flops inside ap_plic and the core. Placing checkers in a chip bench.

The checks below are those of soc_tb, the bench of ap_soc v1.5, and of the lab of lesson V2.4. Window codes are in the table. Number entries are counts.

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
CodeWindow
1Black box: the pads and what the firmware reports
2Grey box: a boundary between blocks
3White box: state inside a block
EntryYour decision
UART_PAD_MODELThe UART model that receives bytes on pad IO0.
APB_CHECKERThe checker of APB rules on the fast APB bus.
MODEL_COMPAREThe compare of the core's retire trace with the reference model.
MAILBOXThe monitor of writes to TB_STATUS and TB_PUTC.
PENDING_PEEKA check that reads u_plic.core.pending_q.
GPIO_SAMPLERThe bench's sampler of the sixteen IO pads.
IRQ_WIREA check that gpio_irq reaches ap_plic input 2 in the same cycle.
PASS_WORDSelf-checking firmware that writes the pass or fail word.
ON_SILICONCode of the window whose checks run unchanged on the first silicon.
LOCATED_Q072Code of the window that first said where fault Q072 was.
NAMES_INSIDEHow many of MAILBOX, PENDING_PEEK, GPIO_SAMPLER, IRQ_WIRE and PASS_WORD break when a designer renames a flop inside ap_plic?
ALU_PASSEDHow many of the chip's seeded ALU faults reached the pass word and were caught only by the model compare?
NEW_CHECKChoose the window for a new check. K = 0: over the JTAG pads, a locked chip refuses a memory read. K = 1: every DMA write on the fabric is one byte (HSIZE 0). K = 2: the timer's retention flops hold DUTY while its domain is off.

Examples

Example 1

UART PAD MODEL
Input
The UART model that receives bytes on pad IO0.
Output
matches = 1

It sees only the pad, as a board would.

Example 2

APB CHECKER
Input
The checker of APB rules on the fast APB bus.
Output
matches = 1

The APB bus joins the bridge and the register blocks.

Example 3

MODEL COMPARE
Input
The compare of the core's retire trace with the reference model.
Output
matches = 1

The trace port is inside the core.

Constraints and Contract

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

Hints

Hint 1

Pads, a wire or bus between blocks, or a flop inside one.

Hint 2

Pads and planned boundaries outlive internal renames.

Hint 3

The deeper the window, the closer it points at the bug.

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

UART PAD MODEL

Input
The UART model that receives bytes on pad IO0.
Expected output
matches = 1

It sees only the pad, as a board would.

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

Icarus Verilog · server