V1.1.1 What the Block Bench Already Proved

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort UART0 checks into those its block bench already proved and those only the chip level can make.

Hardware context: The UART0 block of ap_soc and the chip around it. Writing the scope section of a chip-level plan.

UART0 arrives at integration with a block bench that passed: every divider value, every parity and framing case, the receive queue. Decide who owns each check below.

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
CodeWho owns the check
1Block bench: already proved, do not redo at chip level
2Chip level: wiring and the memory map
3Chip level: the agreement between hardware and software
4Chip level: clock, reset, power and blocks working together
5A gap: nobody has proved it; raise it with the block team

The UART0 registers are those of ap_soc: TXDATA 0x00, STATUS 0x04, IRQ ENABLE 0x08, RXDATA 0x0C at base 0x1000_0000. Interrupt source 1 is UART0.

EntryYour decision
DIVIDERSEvery divider value from 1 to 65535 gives the right bit time.
IRQ_ROUTEThe UART0 request reaches interrupt controller input 1, not input 2.
HEADERThe header the firmware uses puts RXDATA at offset 0x0C, where the block decodes it.
PARITYA received byte with bad parity sets the error flag.
TX_PADWith PINMUX set to serial, the transmit line reaches IO pad 0.
CLOCK_ONFirmware turns on the UART0 clock gate before its first write, and the write lands.
SOFT_RESETA soft reset through ap_sysctl resets UART0 but not the watchdog.
QUEUE_FULLA fifth received byte, with four already waiting, is handled as the UART0 specification says.
DMA_REQUESTThe RX_FULL request of UART0 reaches the DMA request input.
DRIVER_POLLThe UART driver in the firmware kit reads STATUS before each write to TXDATA.
ECHOA byte typed at the pad comes back out of the pad, through the interrupt handler.
ADDRESS_HOLEA read of 0x1000_7000, between peripherals, answers with an error.
BREAK_CHECKWho owns the check that a received byte with a missing stop bit sets the UART0 framing-error flag? BENCH_RAN is 1 if the UART0 bench ran that case and passed, 0 if no bench ever covered it.

Examples

Example 1

DIVIDERS
Input
Every divider value from 1 to 65535 gives the right bit time.
Output
matches = 1

The block bench drives the divider directly and measures the bit time. Repeating it through the chip proves nothing new.

Example 2

IRQ ROUTE
Input
The UART0 request reaches interrupt controller input 1, not input 2.
Output
matches = 1

The block cannot see where its output wire goes. Only the chip has that wire.

Example 3

HEADER
Input
The header the firmware uses puts RXDATA at offset 0x0C, where the block decodes it.
Output
matches = 1

Two separately made things must agree: the block's decoder and the software's header.

Constraints and Contract

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

Hints

Hint 1

Inside the block, the block bench owns it. Between blocks, the chip does.

Hint 2

A header, a driver, a clock or a pad means two teams must agree.

Hint 3

A function no bench covered is a gap, not a chip test.

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

DIVIDERS

Input
Every divider value from 1 to 65535 gives the right bit time.
Expected output
matches = 1

The block bench drives the divider directly and measures the bit time. Repeating it through the chip proves nothing new.

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

Icarus Verilog · server