V8.4.2 Prove the Interrupt Map

MediumImplement25 minap_soc v1.5 · SymbiYosys · serverReview the topic

Write the connect.csv rows for all sixteen inputs of ap_plic. Two cross from the always-on clock through a synchronizer, and the spares are tied to 0. The proof checks each one on the generated top.

Hardware context: The interrupt map of ap_soc v1.5 (irq.csv, ap_plic) and the DMA's request inputs. A proof of the interrupt map with its two crossings.

irq.csv says what drives each input of ap_plic. Five come straight from blocks on clk_sys. Two, the watchdog and ap_pwrctl, start on clk_aon, so the generated interrupt map passes each through a two-flip-flop synchronizer. The rest are spares, tied to 0.

Write one row for each destination in the given file. For a synchronized source that means two rows: the block's request into the synchronizer's input, and the synchronizer's output into ap_plic. A tied input is a row too, with the constant as its driver.

Every row must hold on the good wiring, and every destination needs a row.

Full specification
ColumnMeaning
fromThe driver: an instance output (u_uart.rx_ready), a slice of one (u_fabric.psel[3:3]), or a constant (1'b0)
toThe load: an instance input, or a slice of one
widthBits, a decimal number; both ends must have it
clockThe clock of the destination: clk_sys, clk_aon, pad or const
powerThe power domain of the destination: PD_MAIN, PD_AON or PD_PER
crossEmpty for a plain wire, static for a value set once and held. IOp==v marks a pad path that exists only under that PINMUX select
noteFree text; the proof ignores it

An example from another part, the DMA's request inputs: u_uart.rx_ready,u_dma.rx_ready,1,clk_sys,PD_MAIN,, proves the property u_dma.rx_ready == u_uart.rx_ready with every block an empty box.

ap_plic inputDriver in irq.csv
1UART0
2GPIO
3Timer and PWM
4SPI
5DMA
6Watchdog, on clk_aon
7, 8Spare, tied to 0
9ap_pwrctl, on clk_aon
10 to 16Spare, tied to 0

The synchronizers are u_irq.sync_6 and u_irq.sync_9, each with an input d and an output q. The proof checks the wire into d and the wire out of q. What happens between them, two clock edges of delay and the chance of metastability, is outside a connectivity proof.

Before any proof, each row is screened. It needs seven fields, a destination and a source of this part, and the same width. Its clock, power and crossing must be the destination's. A row that fails the screen is refused with its line number.

Given Files

Read-only files supplied by the bench.

plic-irqs-ports.txt
from,to,width,clock,power,cross,note
Source endpoints: 1'b0, u_dma.irq, u_gpio.irq, u_irq.sync_6.q, u_irq.sync_9.q, u_pwrctl.irq, u_spi.irq, u_timer.irq, u_uart.irq, u_watchdog.irq
Required destination, width, clock, power and crossing (one row per destination and condition):
u_irq.sync_6.d,1,clk_aon,PD_AON,
u_irq.sync_9.d,1,clk_aon,PD_AON,
u_plic.irq[10],1,clk_sys,PD_MAIN,
u_plic.irq[11],1,clk_sys,PD_MAIN,
u_plic.irq[12],1,clk_sys,PD_MAIN,
u_plic.irq[13],1,clk_sys,PD_MAIN,
u_plic.irq[14],1,clk_sys,PD_MAIN,
u_plic.irq[15],1,clk_sys,PD_MAIN,
u_plic.irq[16],1,clk_sys,PD_MAIN,
u_plic.irq[1],1,clk_sys,PD_MAIN,
u_plic.irq[2],1,clk_sys,PD_MAIN,
u_plic.irq[3],1,clk_sys,PD_MAIN,
u_plic.irq[4],1,clk_sys,PD_MAIN,
u_plic.irq[5],1,clk_sys,PD_MAIN,
u_plic.irq[6],1,clk_sys,PD_MAIN,
u_plic.irq[7],1,clk_sys,PD_MAIN,
u_plic.irq[8],1,clk_sys,PD_MAIN,
u_plic.irq[9],1,clk_sys,PD_MAIN,
IOp==v means the two PINMUX bits for pad p equal v. Joined conditions must all hold.
CDC rows prove the named boundary connections with block outputs free.

Examples

Example 1

All Rows Proved
Input
18 rows
Output
proved

Sixteen inputs of ap_plic and the two synchronizer inputs, each described and each holding.

Example 2

A Spare Forgotten
Input
the rows without the spares
Output
unconstrained wires

A tied input is still a destination; a spare that moved would be a wiring bug.

Example 3

A Synchronizer Skipped
Input
u_watchdog.irq into u_plic.irq[6]
Output
counterexample

The input of ap_plic is the synchronizer's output, a different, free signal in the proof.

Constraints and Contract

  • Seven-column CSV, one row per destination.
  • Every destination of the part, each proved on the good wiring.

Hints

Hint 1

Count the destinations in the given file: there are more than sixteen. Why?

Hint 2

A row from the watchdog straight to ap_plic skips the synchronizer. What would the proof compare?

Hint 3

Which clock column belongs to a synchronizer's input?

What the grader checks: Your rows are proved on the released E4 slice of part plic-irqs with every block an empty box. Crossing rows are proved to the synchronizer's input and from its output; synchronizer latency and metastability are outside the proof. A pass says nothing about whether each block raises its request at the right time.

1 checks on ap_soc v1.5 · SymbiYosys · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your text only; the chip, the bench and the hidden checks stay on the server. 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 Connectivity CSVSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

All Rows Proved

Input
18 rows
Expected output
proved

Sixteen inputs of ap_plic and the two synchronizer inputs, each described and each holding.

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

ap_soc v1.5 · SymbiYosys · server