Generating FPGA Interchange Format Parsers/Deparsers for C++ #12
clavin-xlnx
announced in
Announcements
Replies: 1 comment
-
I made capnp reader for node. js, I will put public repo for it shortly. It's pretty quick at making an SVG of the device for viewing it in the browser. I used the c++ capnp and more c++ to make the typescript. I am available to help anyone with the process and working with capnp in more languages if needed. Daniel |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Generating the C++ parser/deparser code for the FPGA Interchange in Cap’n Proto is pretty simple. I was able to do it in just a couple of minutes. In my Ubuntu instance (WSL), I did the following:
Next, you will need to modify the
*.capnp
schema files and comment out the 3 Java reference lines and update the path of the c++.capnp file, for example the top of my DeviceResources.capnp looks like this:Then you can run the Cap’n Proto compiler:
Which will generate the C++ and header files you need:
Comment below if you have any issues or suggestions.
Beta Was this translation helpful? Give feedback.
All reactions