VF.2.1 Which Level Finds It

EasyImplement12 minIcarus Verilog · serverReview the topic

Place each bug and each check of a chip project at the level that sees it first. The levels are block, subsystem, chip and system.

Hardware context: UART0 of ap_soc v1.5 at block level and inside the chip, with a function fault and a wiring fault. Placing checks and bugs at block, chip or system level.

Each entry is a bug or a check on a chip like ap_soc. Enter the code of the lowest level that can see it. The stories are made up for this exercise; every block involved passed its own bench unless the entry says otherwise.

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
CodeLevel
1Block level: a function inside one block
2Subsystem level: between close neighbours, such as the core and its memory
3Chip level: a join through pads, map, interrupts, clocks, resets or power
4System level: the chip with its real software in real use
EntryYour decision
FIFO_FULLThe UART receive queue loses a byte when it is full.
IRQ_INPUTThe UART request is wired to the wrong ap_plic input.
CORE_SRAMA core and its SRAM disagree about which byte a half-word store writes.
PAD_ROUTEWith PINMUX set to serial, UART TX appears on pad IO2.
PARITYUART0 computes parity over seven bits instead of eight.
RESET_REACHA watchdog reset leaves UART0 still running its last frame.
ISOLATIONWhen PD_PER is off, the timer's outputs are not clamped.
BOOT_PRODUCTThe product's boot loader works in the lab but fails on the first boards.
DIV_ALLEvery UART divider value from 1 to 65535 gives the right bit time.
ONE_BYTEOne byte typed at pad IO1 reaches the UART handler in the firmware.
FIX_WHEREA chip test finds that UART0 inverts every received byte. Code of the level where the new test must go.
STORY_LEVELEnter the code of the lowest level that can see this bug. S = 0: The UART divider makes each bit one cycle too long. S = 1: The SPI request reaches ap_plic input 5 instead of input 4. S = 2: A product's operating system hangs after a week of use when two drivers share the DMA.

Examples

Example 1

FIFO FULL
Input
The UART receive queue loses a byte when it is full.
Output
matches = 1

Inside UART0: its block bench fills the queue.

Example 2

IRQ INPUT
Input
The UART request is wired to the wrong ap_plic input.
Output
matches = 1

A wire between two blocks, in the chip.

Example 3

CORE SRAM
Input
A core and its SRAM disagree about which byte a half-word store writes.
Output
matches = 1

A core and its memory are close neighbours: a subsystem.

Constraints and Contract

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

Hints

Hint 1

Inside one block, between neighbours, across the chip, or in real use.

Hint 2

A function bug shows everywhere, but it belongs to the block.

Hint 3

A wire, pad, address or clock outside a block exists only in the chip.

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

16 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 1 problem 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

FIFO FULL

Input
The UART receive queue loses a byte when it is full.
Expected output
matches = 1

Inside UART0: its block bench fills the queue.

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

Icarus Verilog · server