VF.1.1 The Six Questions

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeQuestion
1Who drives the bus?
2What is at which address?
3Who interrupts whom?
4Who clocks and resets what?
5What is powered?
6What reaches a pad?
EntryYour decision
DMA_MASTERThe DMA engine can start transfers on the fabric.
HOLEA read of 0x1000_7000 must answer with an error.
UART_IRQUART0 raises ap_plic input 1.
AON_CLOCKThe watchdog runs on clk_aon, not clk_sys.
PER_OFFThe timer and SPI lose power when PD_PER is off.
IO0_TXWith PINMUX value 2, pad IO0 carries UART TX.
RESET_ORDERThe bus leaves reset before the core does.
GATE_ERRORA block whose CLK_GATE bit is 0 answers every access with an error.
MANAGERSHow many bus managers can start a transfer on ap_soc?
WIREDHow many of ap_plic's 16 inputs come from devices?
DOMAINSHow many power domains does ap_soc have?
IO_PADSHow many IO pads does ap_soc have?
YOUR_TESTEnter 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

DMA MASTER

Input
The DMA engine can start transfers on the fabric.
Expected output
matches = 1

Starting a transfer is what a bus manager does.

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

Icarus Verilog · server