Replies: 2 comments 2 replies
-
There isn't a good way right now, but as you noted it's more of a syntactic issue. I have thought about whether to add an open interval notation like |
Beta Was this translation helpful? Give feedback.
2 replies
-
This is tracked in #471 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have a zero-width field in a bitfield? The motivation is a register that exists in RV32 and RV64. It has two reserved fields in RV64 but only one in RV32. I would like to define each one once so that the RV32 version still has two reserved fields but one is zero-width. Then I can deal with it generically (to save/restore the bit values), its just that its type will be
bits(0)
.I guess this isn't possible due to the use of right-closed intervals.
Beta Was this translation helpful? Give feedback.
All reactions