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 #1

Open
sdnellen opened this issue Jul 25, 2019 · 1 comment
Open

Feature Request: C header file output #1

sdnellen opened this issue Jul 25, 2019 · 1 comment

Comments

@sdnellen
Copy link
Owner

From open-register-design-tool created by ebertland: Juniper#22

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
Owner Author

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.

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

1 participant