4 ms·
Not quite; it turns code into ASIC or FPGA layouts, which will inevitably require a bit of manual tying up at the edges. "C to Verilog" has been a thing for a
by pjc50 11y ago
Not quite; it turns code into ASIC or FPGA layouts, which will inevitably require a bit of manual tying up at the edges.
"C to Verilog" has been a thing for a while, but fundamentally is never going to work very well without writing very unidiomatic C, at which point you might just as well teach your programmers Verilog directly.
Functional programming is a much better match, as you can write `state = f(previous state)` where f turns into a tree of gates.
- pjmlp 11y agoMy digital circuit classes are far away lost in the mists of time, but I have started to see lots of similarities between FP composition and circuit design. Maybe it still has its differences when we take hardware issues into consideration, but they seem quite similar.
- chriswarbo 11y agoOne similarity which springs to mind is that both (functional programming and circuits) can be described with similar mathematical models. I don't know much of the technical details, but for example see http://conal.net/blog/posts/circuits-as-a-bicartesian-closed-category http://conal.net/blog/posts/circuits-as-a-bicartesian-closed...
- pjc50 11y agoI'm still hoping for the Cambrian explosion in HDLs we need to see if the technology is to become accessible. Verilog/VHDL are in many ways stuck in the ALGOL era.
- williamsharkey 11y agoI wish yCombinator or equivalent would fund a company or organization that is dedicated to making a complete end-to-end opensource fpga ecosystem. The proprietary tools are crap.
- brudgers 11y agoI'm reminded that Harold Abelson is an electrical engineer and Structure and Interpretation of Computer Programs contains a digital circuit simulator. https://mitpress.mit.edu/sicp/full-text/sicp/book/node64.html https://mitpress.mit.edu/sicp/full-text/sicp/book/node64.htm...
- hcrisp 11y agoAre there any known good Python-to-Verilog converters? Maybe this one? https://github.com/PyHDI/Pyverilog/blob/master/README.md https://github.com/PyHDI/Pyverilog/blob/master/README.md
- kingosticks 11y agoThis http://www.myhdl.org/ http://www.myhdl.org/ ?
- MrBuddyCasino 11y agoVery interesting! Maybe one day it will be normal to write code that morphs directly into hardware via omnipresent FPGA blocks present in our CPUs.