Skip to content
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

Validate bit fields within registers do not overlap #38

Open
rauhul opened this issue Nov 17, 2023 · 0 comments · May be fixed by #132
Open

Validate bit fields within registers do not overlap #38

rauhul opened this issue Nov 17, 2023 · 0 comments · May be fixed by #132
Labels
bug Something isn't working mmio Related to the MMIO library
Milestone

Comments

@rauhul
Copy link
Collaborator

rauhul commented Nov 17, 2023

@Register should diagnose and emit errors if it contains bit field macros which have overlapping bit ranges, e.g.:

@Register(bitWidth: 32)
struct R32 {
  @ReadWrite(bits: 0..<1)
  var a: A

  @ReadWrite(bits: 0..<2) // error: overlapping 'a' ...
  var b: B
}
@rauhul rauhul added the bug Something isn't working label Nov 17, 2023
@rauhul rauhul added this to the 0.0.2 milestone Nov 17, 2023
@rauhul rauhul changed the title Validate bit fields within a Register do not overlap Validate bit fields within registers do not overlap Nov 17, 2023
@rauhul rauhul modified the milestones: 0.0.2, 0.1.0 Feb 8, 2024
@rauhul rauhul added the mmio Related to the MMIO library label Mar 6, 2024
@ShenghaiWang ShenghaiWang linked a pull request Oct 18, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mmio Related to the MMIO library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant