Conversation
Based on prior work by Jakub Matyas (elhep): elhep@b73eea0
fsagbuya
force-pushed
the
feature/gateware-target-abstraction
branch
from
June 16, 2026 08:42
56d57f2 to
66ca8b6
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.
Groundwork for supporting boards beyond the Red Pitaya (we're adding the Fast-Servo). Introduces a per-board "target" layer so others can be added cleanly. This PR only abstracted the Red Pitaya board. We are already using this patch in https://git.m-labs.hk/M-Labs/nix-servo.
Changes as follows:
gateware/targets/with aPitayaSoCthat holds all the Red Pitaya hardware that used to live inLinienModuleLinienModulenow gets the soc passed in and goes through it for hardware, so it isn't tied to the Red Pitaya anymoreRootModule,PitayaSoCreplaces itcsrmap.pyThis shouldn't change anything for the Red Pitaya. The generated csrmap has the same register names and addresses as before (just a few lines reordered), and the gateware tests still pass.
Still to come as separate PRs: the actual Fast-Servo target + its gateware, a
--platformoption to pick the board, and the hardware-specific parameters.Based on Jakub Matyas (@elhep) work: elhep@b73eea0
Need your insights and review. @bleykauf