oddball / ipxact2systemverilog

Translates IPXACT XML to synthesizable VHDL or SystemVerilog
GNU General Public License v2.0
56 stars 19 forks source link

generate c code #15

Closed oddball closed 2 years ago

oddball commented 6 years ago

Would like this package to generate C code. If someone could provide an example ipxact xml file and corresponding c code, it should be easy enough for me to add generation of C code.

EdwinElshoud commented 2 years ago

Hi @oddball,

Maybe a little late, but I have created a fork and implemented a generator for a C header file. It is a macro based header file to get to the register fields.

ipxact2systemverilog fork

Kind regards, Edwin

oddball commented 2 years ago

Hi @EdwinElshoud! Nice!

Feel free to make a PR back to this repo, and I will be happy to review it!

Best regards

oddball commented 2 years ago

https://github.com/oddball/ipxact2systemverilog/pull/35

@EdwinElshoud Thanks for this! 👍

Added a compilation and execution of your example.c on CircleCI

Released https://pypi.org/project/ipxact2systemverilog/

Feel free to check it out, and let me know if something is wrong!