Replies: 1 comment 1 reply
-
Regardless of how you implement it, the resulting register abstraction will still retain the structure of fields nested inside a register. Another option would be to use 8-bit registers, but that also implies your CPU bus interface is also narrower which may not be desirable:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an array of 8-bit values spanning 8 32-bit registers, for a total of 32 elements.
One way to describe it would be:
Another way:
In both cases the resulting C header, HTML documentation and hardware interface output aren't terribly interesting. Is there any other way of doing it? I couldn't find one. Ideally it would generate:
uint8_t arr[32]
Beta Was this translation helpful? Give feedback.
All reactions