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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Who owns the check |
|---|---|
| 1 | Block bench: already proved, do not redo at chip level |
| 2 | Chip level: wiring and the memory map |
| 3 | Chip level: the agreement between hardware and software |
| 4 | Chip level: clock, reset, power and blocks working together |
| 5 | A 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.
| Entry | Your decision |
|---|---|
| DIVIDERS | Every divider value from 1 to 65535 gives the right bit time. |
| IRQ_ROUTE | The UART0 request reaches interrupt controller input 1, not input 2. |
| HEADER | The header the firmware uses puts RXDATA at offset 0x0C, where the block decodes it. |
| PARITY | A received byte with bad parity sets the error flag. |
| TX_PAD | With PINMUX set to serial, the transmit line reaches IO pad 0. |
| CLOCK_ON | Firmware turns on the UART0 clock gate before its first write, and the write lands. |
| SOFT_RESET | A soft reset through ap_sysctl resets UART0 but not the watchdog. |
| QUEUE_FULL | A fifth received byte, with four already waiting, is handled as the UART0 specification says. |
| DMA_REQUEST | The RX_FULL request of UART0 reaches the DMA request input. |
| DRIVER_POLL | The UART driver in the firmware kit reads STATUS before each write to TXDATA. |
| ECHO | A byte typed at the pad comes back out of the pad, through the interrupt handler. |
| ADDRESS_HOLE | A read of 0x1000_7000, between peripherals, answers with an error. |
| BREAK_CHECK | Who 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