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.
Improve Verilator compatibility
This pull request applies some changes to the RTL to avoid compilation errors with Verilator. In particular:
if (DEBUG != 0)
instead ofif (DEBUG)
)logic [N-1]
instead oflogic [N]
Component
RTL:
rtl/cv32e40x_core.sv
rtl/cv32e40x_cs_registers.sv
rtl/cv32e40x_debug_triggers.sv
rtl/cv32e40x_pma.sv
Revision
The fixes are currently applied to revision f17028f (v0.9.0).
Limitations
This PR only solves a subset of suppressible Verilator warnings (e.g., through waiver files). In particular, the following waivers are known to be necessary to compile with no warnings:
Status
The included changes are currently applied to the
cv32e40x
core inX-HEEP
. No bugs related to these changes are currently known.