Skip to content

[top,dv] Add the AXI crossbar smoke test - #833

Open
martin-velay wants to merge 2 commits into
lowRISC:mainfrom
martin-velay:axi_xbar_smoke
Open

martin-velay wants to merge 2 commits into
lowRISC:mainfrom
martin-velay:axi_xbar_smoke

Conversation

@martin-velay

@martin-velay martin-velay commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #659.

Adds axi_xbar_smoke and axi_xbar_smoke_cheri, a SW test that reaches each device the issue lists through the AXI crossbar, plus the SW-DV window as the top-level testplan asks.

  • SRAM: a different doubleword at each end of the window, both written before either is read back, then their complements.
  • ROM: the first doubleword and the last one below the digest, compared with the bootrom image of the same build, which rom_ctrl_smoke already embeds.
  • Mailbox: two sets of values in WIRQT, RIRQT and IRQEN, then the reset values, each set read back over the defined fields. One WIRQT write is at the FIFO depth and must read back clamped, which a memory would not do.
  • SW-DV window: HW_ID must be a known platform ID.

In the UVM testbench, top_chip_dv_axi_scoreboard also reports any of these accesses that leaves the crossbar on the wrong port. The test is SW only, so it also runs in the Verilator and FPGA flows, where the read backs are the only check. mocha.h gets mocha_system_sram() for it, and sram_base next to dram_base with the line #812 adds, so the two PRs merge in either order.

The debug memory and the RestOfChip port are left out: the first never answers while debug is disabled, and the UVM testbench leaves the second unconnected.

Tested with Xcelium (both tests, 5 seeds) and Verilator. With the crossbar's mailbox rule pointed at the SRAM port, the test fails on the clamped read back and the scoreboard reports the misroute.

mocha.h gives tests the ROM, the mailbox, the DRAM and the SW-DV window,
but not the SRAM. In CHERI builds the accessor returns a capability
bounded to the SRAM window, like the others.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>
From CVA6, write and read back both ends of the SRAM window and the
mailbox threshold and interrupt enable registers, read both ends of the
ROM window against the bootrom image of the same build, and read the
HW_ID of the SW-DV window. A mailbox threshold written at the FIFO depth
reads back clamped, which tells the mailbox from a memory.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AXI crossbar DV - Top-level smoke test

1 participant