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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Window |
|---|---|
| 1 | Black box: the pads and what the firmware reports |
| 2 | Grey box: a boundary between blocks |
| 3 | White box: state inside a block |
| Entry | Your decision |
|---|---|
| UART_PAD_MODEL | The UART model that receives bytes on pad IO0. |
| APB_CHECKER | The checker of APB rules on the fast APB bus. |
| MODEL_COMPARE | The compare of the core's retire trace with the reference model. |
| MAILBOX | The monitor of writes to TB_STATUS and TB_PUTC. |
| PENDING_PEEK | A check that reads u_plic.core.pending_q. |
| GPIO_SAMPLER | The bench's sampler of the sixteen IO pads. |
| IRQ_WIRE | A check that gpio_irq reaches ap_plic input 2 in the same cycle. |
| PASS_WORD | Self-checking firmware that writes the pass or fail word. |
| ON_SILICON | Code of the window whose checks run unchanged on the first silicon. |
| LOCATED_Q072 | Code of the window that first said where fault Q072 was. |
| NAMES_INSIDE | How many of MAILBOX, PENDING_PEEK, GPIO_SAMPLER, IRQ_WIRE and PASS_WORD break when a designer renames a flop inside ap_plic? |
| ALU_PASSED | How many of the chip's seeded ALU faults reached the pass word and were caught only by the model compare? |
| NEW_CHECK | Choose 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