Skip to content

Commit 2cf450d

Browse files
committed
[rtl] Explicitly define mapping to prim_generic for linter targets
Adding a dependency on a specific implementation (`prim_generic`) of the virtual `prim` core for linter and Verilator targets forces FuseSoC to use the correct instances, thereby allowing us to lint or export filelists of `ibex_top` without a wrapper defining the virtual core's implementation.
1 parent e316cde commit 2cf450d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ibex_top.core

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ filesets:
2727
- rtl/ibex_top.sv
2828
file_type: systemVerilogSource
2929

30+
# Map the prims listed above to the prim_generic implementations for linting
31+
files_map_prim_generic:
32+
depend:
33+
- lowrisc:prim_generic:all
34+
3035
files_lint_verilator:
3136
files:
3237
- lint/verilator_waiver.vlt: {file_type: vlt}
@@ -161,13 +166,16 @@ targets:
161166
default: &default_target
162167
filesets:
163168
- tool_verilator ? (files_lint_verilator)
169+
- tool_verilator ? (files_map_prim_generic)
164170
- files_rtl
165171
- files_check_tool_requirements
166172
toplevel: ibex_top
167173
parameters:
168174
- tool_vivado ? (FPGA_XILINX=true)
169175
lint:
170176
<<: *default_target
177+
filesets:
178+
- files_map_prim_generic
171179
parameters:
172180
- SYNTHESIS=true
173181
- RVFI=true

0 commit comments

Comments
 (0)