Sort facts and tests of ap_soc by the six questions a verifier asks of every chip. Then count a few answers from the chip's data.
Hardware context: ap_soc v1.5 read from its data files: managers, map, interrupts, clocks, power domains and pads. Sorting chip facts by the question they answer.
Each entry below is a fact about ap_soc v1.5 or a test someone wants to write. Enter the code of the question it answers. For a count, enter the number, read from the data rows in the lesson.
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 | Question |
|---|---|
| 1 | Who drives the bus? |
| 2 | What is at which address? |
| 3 | Who interrupts whom? |
| 4 | Who clocks and resets what? |
| 5 | What is powered? |
| 6 | What reaches a pad? |
| Entry | Your decision |
|---|---|
| DMA_MASTER | The DMA engine can start transfers on the fabric. |
| HOLE | A read of 0x1000_7000 must answer with an error. |
| UART_IRQ | UART0 raises ap_plic input 1. |
| AON_CLOCK | The watchdog runs on clk_aon, not clk_sys. |
| PER_OFF | The timer and SPI lose power when PD_PER is off. |
| IO0_TX | With PINMUX value 2, pad IO0 carries UART TX. |
| RESET_ORDER | The bus leaves reset before the core does. |
| GATE_ERROR | A block whose CLK_GATE bit is 0 answers every access with an error. |
| MANAGERS | How many bus managers can start a transfer on ap_soc? |
| WIRED | How many of ap_plic's 16 inputs come from devices? |
| DOMAINS | How many power domains does ap_soc have? |
| IO_PADS | How many IO pads does ap_soc have? |
| YOUR_TEST | Enter the code of the question this test answers. T = 0: A test checks that UART TX leaves on pad IO0 when PINMUX is 2. T = 1: A test checks that the DMA engine can reach SRAM while the core runs. T = 2: A test checks that the watchdog's clock keeps running while PD_PER is off. T = 3: A test checks that the GPIO request reaches ap_plic input 2. T = 4: A test checks that 0x1000_7000 answers with an error. T = 5: A test checks that the timer comes back after PD_PER is switched off and on. |
Examples
Example 1
DMA MASTER- Input
The DMA engine can start transfers on the fabric.
- Output
matches = 1
Starting a transfer is what a bus manager does.
Example 2
HOLE- Input
A read of 0x1000_7000 must answer with an error.
- Output
matches = 1
No row of the map owns that address.
Example 3
UART IRQ- Input
UART0 raises ap_plic input 1.
- Output
matches = 1
An interrupt wire from a device to the controller.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For YOUR_TEST, enter a constant expression using T. Only this entry changes with the parameter. The supported integer range is 0 through 5, inclusive.
Hints
Hint 1
Every question joins two blocks: a manager and a target, a device and the controller, a source and its users.
Hint 2
Release order and gating belong to the clock and reset question.
Hint 3
The counts come from map.json, irq.csv and blocks.csv.
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 2 problems on this path