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

Feature Request: C header file output #22

Open
ebertland opened this issue Sep 5, 2017 · 3 comments
Open

Feature Request: C header file output #22

ebertland opened this issue Sep 5, 2017 · 3 comments

Comments

@ebertland
Copy link
Contributor

We would like to use ordt to generate C header files from our SystemRDL files for people who are writing C and C++ drivers for our hardware.

We would like to have defines for each address offset (and struct style too), field msb and lsb and width at least. I can provide test-cases (input and expected output), if somebody is willing to work on this.

@sdnellen
Copy link
Contributor

sdnellen commented Sep 5, 2017

Yes, headers are std way of handling reg info in drivers - send test-cases and will put it in queue. Also recommend looking at cppdrvmod output option if your drivers are C++ - does the conversion from path to address and extracts field info, and has has ability to handle incremental changes between chip revs or reused reg spaces.

@sdnellen
Copy link
Contributor

Kamino cloned this issue to sdnellen/open-register-design-tool

@prdwivedi
Copy link
Contributor

#90 I've tried implementing a basic c header maker, that generates a header file with register definitions as enum {} or #define macros here.

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

3 participants