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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Level |
|---|---|
| 1 | Block level: a function inside one block |
| 2 | Subsystem level: between close neighbours, such as the core and its memory |
| 3 | Chip level: a join through pads, map, interrupts, clocks, resets or power |
| 4 | System level: the chip with its real software in real use |
| Entry | Your decision |
|---|---|
| FIFO_FULL | The UART receive queue loses a byte when it is full. |
| IRQ_INPUT | The UART request is wired to the wrong ap_plic input. |
| CORE_SRAM | A core and its SRAM disagree about which byte a half-word store writes. |
| PAD_ROUTE | With PINMUX set to serial, UART TX appears on pad IO2. |
| PARITY | UART0 computes parity over seven bits instead of eight. |
| RESET_REACH | A watchdog reset leaves UART0 still running its last frame. |
| ISOLATION | When PD_PER is off, the timer's outputs are not clamped. |
| BOOT_PRODUCT | The product's boot loader works in the lab but fails on the first boards. |
| DIV_ALL | Every UART divider value from 1 to 65535 gives the right bit time. |
| ONE_BYTE | One byte typed at pad IO1 reaches the UART handler in the firmware. |
| FIX_WHERE | A chip test finds that UART0 inverts every received byte. Code of the level where the new test must go. |
| STORY_LEVEL | Enter 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