Backend: Make Compute Engine instantiation a SV parameter#159
Open
da-gazzi wants to merge 4 commits into
Open
Conversation
- This target generates C headers in `target/sw` with both the `raw-header` and `c-header` PeakRDL plugins - Also added to `deploy` CI job
da-gazzi
requested review from
DanielKellerM,
micprog and
thommythomaso
as code owners
July 13, 2026 08:37
added 3 commits
July 16, 2026 16:17
- the PeakRDL `c-header` plugin generates structs with `__attribute__((__packed__))` which ensures proper packing of fields but can also cause the compiler to emit byte loads/stores to access 32-bit registers, which is definitely not what we want. The `unpacked` version of the C header has the attribute removed. - The `idma_sw_clean` target had a typo and didn't actually clean anything, this is fixed now.
- Replace `enable_compute` in backend generation with a SystemVerilog parameter - Add `EnableCompute`, `ComputeOps`, and `ComputeFullDuplex` parameters to eligible backend, synthesis wrapper, and transport-layer modules. - Omit compute parameters entirely for generated topologies that cannot support the compute datapath - Keep the non-compute path available in compute-capable variants with `EnableCompute = 0`, and instantiate `idma_otf_compute` only when enabled. - Remove `IDMA_VIDMA_IDS` / `--compute-ids` plumbing from the generator and makefile; compute support is now selected at elaboration. - Update transpose testbenches to enable compute explicitly and keep the inst64 frontend backend instantiation compute-disabled
da-gazzi
force-pushed
the
pr/compute-sv-param
branch
from
July 16, 2026 14:18
d0fe5aa to
4ae061d
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.
Make instantiation of compute engines an elaboration-time parameter rather than a generation-time one:
enable_computein backend generation with a SystemVerilog parameterEnableCompute,ComputeOps, andComputeFullDuplexparameters toeligible backend, synthesis wrapper, and transport-layer modules.
initread port won't have the parameters as transposing zeros doesn't make sense)the compute datapath
EnableCompute = 0, and instantiateidma_otf_computeonly when enabled.IDMA_VIDMA_IDS/--compute-idsplumbing from the generator andmakefile; compute support is now selected at elaboration.
frontend backend instantiation compute-disabled