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

Add address_width and register count to C-Header Generator #92

Open
ghost opened this issue Nov 27, 2024 · 0 comments
Open

Add address_width and register count to C-Header Generator #92

ghost opened this issue Nov 27, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 27, 2024

Since we use the registers on an AXI-Bus, we would like to check the legality of register reads/writes by checking whether some given address lies within the generated register range.

Taken from the current generator, it would look something like this:

#define {{ module_prefix()|upper }}_ADDR_WIDTH {{ "0x%x" % (address_width) }}
#define {{ module_prefix()|upper }}_REG_COUNT {{ (register_count) }}

@esynr3z Does it make sense to open a pull request and implement it into "V1" or should I wait for the release of V2 and do it then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants