-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add base-address-shift
configuration flag
#791
Conversation
Would not it better to generate some global constant and use it calculating |
I don't see the reasoning for this, why is the base address in the svd not shifted already? |
The address might depend on other cores. |
What do you mean under "dynamically" in rust terms? |
I meant to dynamically shift it from SVD file during generation, not on the Rust side. The PR does exactly this functionality. |
It seems like a niche use-case, but the PR is low-overhead and most people can just ignore the configuration option. Perhaps the help text should be something like:
|
5eb0185
to
a4ee23e
Compare
need rebase |
44e8768
to
30117e9
Compare
30117e9
to
fa91c39
Compare
Hello!
We are working with the FPGA-based project and unlike with micro-controllers all peripherals are dynamic.
In order to swap different devices (described within several SVD files) in a single board we need to be able to move their addresses.
That's why in this PR we added a flag to shift all base addresses provided in SVD.