Skip to content

[rtl] Move prim_generic dependency to ibex_top#2397

Merged
SamuelRiedel merged 1 commit intolowRISC:masterfrom
SamuelRiedel:core-files
May 7, 2026
Merged

[rtl] Move prim_generic dependency to ibex_top#2397
SamuelRiedel merged 1 commit intolowRISC:masterfrom
SamuelRiedel:core-files

Conversation

@SamuelRiedel
Copy link
Copy Markdown
Contributor

The prim_generic fileset dependency was declared in ibex_top_tracing.core rather than ibex_top.core, causing fusesoc to fail when targeting ibex_top directly. This PR fixes this by moving the prim_generic dependency to ibex_top.core.

Fixes #2396.

ibex_top_tracing only wraps ibex_top, so prim_generic should be a
dependency of ibex_top directly rather than ibex_top_tracing.
@rswarbrick
Copy link
Copy Markdown
Contributor

Looks good to me. One thing that confuses me is that the dependency was added in commit d1e3125, which sounds like it's about tooling versions.

How did this work at the start of November?

@rswarbrick
Copy link
Copy Markdown
Contributor

Ohh! Is it just that #2339 has some intermediate broken commits?

@SamuelRiedel
Copy link
Copy Markdown
Contributor Author

I think this worked, because we never only use ibex_top, but always ibex_top_tracing. E.g., for all the CI jobs. Afaik, the only exception is the demo system, so we should actually check whether that one still works with those changes. I suspect that the generics are usually included (and Ibex includes the ones it requires) but the mapping is ambiguous. For example, linting just the top (no tracing) will give the following fusesoc warnings:

WARNING: Non-deterministic selection of virtual core lowrisc:prim:and2:0 selected lowrisc:prim_generic:and2:0
WARNING: Non-deterministic selection of virtual core lowrisc:prim:buf:0 selected lowrisc:prim_generic:buf:0
WARNING: Non-deterministic selection of virtual core lowrisc:prim:flop:0 selected lowrisc:prim_generic:flop:0
WARNING: Non-deterministic selection of virtual core lowrisc:prim:clock_gating:0 selected lowrisc:prim_xilinx:clock_gating:0
WARNING: Non-deterministic selection of virtual core lowrisc:prim:clock_mux2:0 selected lowrisc:prim_xilinx:clock_mux2:0
WARNING: Non-deterministic selection of virtual core lowrisc:prim:ram_1p:0 selected lowrisc:prim_generic:ram_1p:0

And the mix between FPGA and generic prims leads to an error.

But yes, this has to do with the updated version of fusesoc and the virtual cores feature.

@SamuelRiedel SamuelRiedel marked this pull request as ready for review April 27, 2026 11:51
@SamuelRiedel
Copy link
Copy Markdown
Contributor Author

After quickly discussing this with @marnovandermaas offline, we agreed to not get blocked by the demo system, since that one anyway points to a fixed commit of Ibex.

Copy link
Copy Markdown
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and thanks for the answers for the gently confused questions :-)

@SamuelRiedel SamuelRiedel added this pull request to the merge queue May 7, 2026
Merged via the queue into lowRISC:master with commit 9742d89 May 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trouble with using Ibex without FuseSoC

2 participants