Repository navigation
[top,dv] Add a chip register model and the TileLink crossbar smoke test - #826
Merged
Merged
Conversation
martin-velay
force-pushed
the
tl_xbar_smoke
branch
from
November 26, 2026 09:28
c07d573 to
45cfd9b
Compare
This was referenced Nov 26, 2026
tchilikov-semify
approved these changes
Nov 26, 2026
tchilikov-semify
left a comment
Collaborator
There was a problem hiding this comment.
Looks good to me, thanks Martin
Mocha's top has no topgen description, so nothing generates a chip register model for it. Build one in the shape topgen gives an OpenTitan chip model: one block per xbar_peri device, from the package ralgen generates for that device, at the base address tl_peri_pkg gives it, with its backdoor rooted at the device's instance in top_chip_system. In the axi_driver_to_cva6_bridge build mode the environment runs the CVA6 AXI agent's register layer and connects the model to it, so csr_utils_pkg accesses reach the devices along the path a CVA6 load or store takes. The base vseq resets the model's mirror when it resets the chip. Signed-off-by: Martin Velay <mvelay@lowrisc.org>
With the AXI driver in place of CVA6, reach one register in each of the 12 xbar_peri devices through the chip register model: read the reset value, write its complement, read the register through the backdoor of the device's instance, read it back, then write the reset value back and read it again. rom_ctrl has nothing writable, so its DIGEST_0 is read through both paths and must be non-zero. The backdoor read catches a write that lands in a device with a register of the same shape at the same offset, which the frontdoor reads miss. Signed-off-by: Martin Velay <mvelay@lowrisc.org>
martin-velay
force-pushed
the
tl_xbar_smoke
branch
from
November 26, 2026 15:56
45cfd9b to
feaaa1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #658.
Adds a chip register model to the top-level testbench, and a test that reaches one register in every
xbar_peridevice from the AXI driver that replaces CVA6.top_chip_reg_blockhas one block perxbar_peridevice at the base address fromtl_peri_pkg, built the way topgen builds the chip model of an OpenTitan top. In theaxi_driver_to_cva6_bridgebuild mode its frontdoor goes through the CVA6 AXI agent's register layer, and each block's backdoor is rooted at the device's instance intop_chip_system.tl_xbar_smokereads each register's reset value, writes its complement, reads it through the backdoor, reads it back, then restores the reset value and reads it again. The backdoor read catches a write that lands in another device with a register of the same shape at the same offset, which the frontdoor reads alone miss. The test is in thesmokeregression.The issue counts 13 peripherals.
xbar_perihas 12 devices, since KMAC has no TL-UL register interface in this top.Tested with Xcelium. The
smokeregression passes apart from the tworom_ctrl_smoketests that #820 restores, and the first commit alone passesaxi_driver_smokeanduart_smoke.tl_xbar_smokefails whenxbar_peridecodes the pwrmgr address to the timer, and when the UART and I2C ports are swapped intop_chip_system.