[earlgrey/verilator] Integrate padring into chiplevel#30428
Open
glaserf wants to merge 2 commits into
Open
Conversation
f0e9113 to
873c9c4
Compare
This was referenced Jun 24, 2026
Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
This commit moves the dummy padring for Verilator from the testbench to the chiplevel, and replaces the connections to/from the DPI modules with hierarchical module references (XMRs). Signed-off-by: Florian Glaser <glaserf@lowrisc.org>
873c9c4 to
1c00795
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.
This PR is the first step towards auto-generating the Verilator chiplevels. These are currently all written by hand, which makes handling them during top/chiplevel restructuring like in #30076 a tedious and error-prone task.
The main challenge here is that Verilator uses a dummy padring, which does not contain any actual pads. Instead, the tb uses DPI modules to directly drive the various
cio_*signals.The strategy to achieve the above is therefore as follows:
top_<name>.hjsonfiles, which takes care of any target-specific pinout of the "logic" toplevels (which now coincide with power domains).topgenhandle any updates, and auto-generatechip_<name>_verilator.sv.This PR implements steps 1) and 2) for earlgrey.