-
Notifications
You must be signed in to change notification settings - Fork 44
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
External register packed struct bit-order is incorrect #111
Labels
bug
Something isn't working
Comments
If I revert the packed structure order I indeed get the behavior I expect:
I'll implement this in my fork, let me know if this aligns with your vision and I'll propose a PR. |
amykyta3
added a commit
that referenced
this issue
Dec 19, 2024
Thanks for pointing this out! Will be fixed in the upcoming release. |
Implemented in v0.23.0 |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm using external register in SystemRDL. The regblock plugin generates packed structure for external registers. For example:
From SystemRDL description:
I get in the regblock package:
I have problem with this because I believe the bit order of the status register is not the one I expect. txfull is placed at the MSB in a packed array struct, but from my SystemRDL code I'm expecting it to be at the LSB. The generated code is also misleading as there is a reserved space _reserved_31_6 but it does not correspond to the 6 to 31 bit range when assigning the struct to a logic 32 bits variable.
Am I missing something or is there indeed a problem here?
The text was updated successfully, but these errors were encountered: