[chip,dv] Define a virtual "chip_ral" core#30140
Draft
rswarbrick wants to merge 3 commits into
Draft
Conversation
This gets defined in the cores for chip environments. The advantage is that these cores can now depend on the environments of IPs, which won't generate their own RAL definitions (because the chip-level environment has done it already). Note that this is different from the existing skip_ral_gen flag. As far as I can tell, there's no way to set a flag for just the cores that get pulled in as a dependencie. So skip_ral_gen will let you turn everything off, but I don't think you can turn off just the RAL for the blocks. To set the "chip_level" flag, it has to be set to true in the core file that gets invoked by fusesoc (I think). This is chip_sim.core. Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
Splitting it up like this will allow us to integrate a block-level testbench, whose register model is generated in the chip-level RAL file. We need to split that out of chip_env.core to avoid a circular dependency (because the chip environment depends on the block-level environment, which depends on the register model). Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
This is supplied by a top-level chip-level register model. Defining it like this means that a block-level environment can depend on lowrisc:dv:chip_ral if the chip_level config parameter is set, which will ensure it appears in the EDA file list *after* the register model upon which it depends. Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
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 a draft because it depends on both #29727 and #29730. Once they are merged, only the last commit remains, which has the following commit message.