V1.2.1 Name the Bug Class

EasyImplement12 minIcarus Verilog · serverReview the topic

Read twelve short bug reports from chip bring-up and name the class of chip-level bug each one is.

Hardware context: The integration of ap_soc: wires, map, clocks, resets, power, pads and software. Triaging chip bring-up failures into owners and missing checks.

Each report below is real-shaped but invented for this exercise. Every block involved passed its own bench. Enter the class code.

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
CodeClass of chip-level bug
1Connectivity
2The memory map
3Hardware and software agreement
4Use cases across blocks
5Boot
6Interrupts and DMA end to end
7Clock and reset
8Power flows
9Security and locks
10Debug and test mode
11Pins
12Concurrency and performance
EntryYour decision
WIDTHThe DMA length register is 16 bits wide in the block, but the integrator connected only 8 of those bits.
ALIASWrites to 0x1000_3000 also change the UART0 transmit register.
DRIVER_BITThe GPIO driver writes interrupt enables to offset 0x10; the block keeps them at 0x18.
BUTTON_LEDA button press should light an LED through the GPIO interrupt and its handler. Every block passes alone, and the LED stays dark.
WARM_BOOTAfter a watchdog reset, the core starts at the SRAM address instead of the ROM reset vector.
CLAIM_STUCKThe UART0 handler runs again and again: each claim returns source 1, because the controller never sees the completion.
NO_SYNCA status bit from the slow always-on clock domain reaches the core without synchronizers and sometimes reads wrong.
RETAINAfter the peripheral domain is switched off and on, the timer's retained register bank comes back empty.
LOCKED_DEBUGWith the debug lock set, the debugger can still read SRAM through its own bus manager.
SCAN_PINWith the scan-mode pin held low for normal use, UART0 still runs from the test clock.
PAD_RESETPad 2 comes out of reset driving high instead of released.
LATE_HANDLERWhile the core and the debugger both read SRAM, the UART0 handler starts so late that a received byte is overwritten.
EXTRAClassify one more report. STORY 0: the reset cause register shows 0 after a watchdog reset. STORY 1: a pad shows UART0 transmit while PINMUX says GPIO. STORY 2: firmware updates the timer DUTY register by read-modify-write, but DUTY is write-only, so the read never returns what was written.

Examples

Example 1

WIDTH
Input
The DMA length register is 16 bits wide in the block, but the integrator connected only 8 of those bits.
Output
matches = 1

A wire of the wrong width between two blocks: connectivity.

Example 2

ALIAS
Input
Writes to 0x1000_3000 also change the UART0 transmit register.
Output
matches = 1

Two addresses reach one register: a decoder that looks at too few bits.

Example 3

DRIVER BIT
Input
The GPIO driver writes interrupt enables to offset 0x10; the block keeps them at 0x18.
Output
matches = 1

Software and hardware disagree about where a register is.

Constraints and Contract

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

Hints

Hint 1

Name the two parties that disagree: two blocks, a block and software, a block and a pad.

Hint 2

An interrupt that never completes is an interrupt bug before it is a use-case bug.

Hint 3

Every block here passed its bench. The bug is in how they meet.

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 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

WIDTH

Input
The DMA length register is 16 bits wide in the block, but the integrator connected only 8 of those bits.
Expected output
matches = 1

A wire of the wrong width between two blocks: connectivity.

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

Icarus Verilog · server