4 ms·
The equivalent tooling for FPGA programming is starting with a high level hardware description (typically Verilog or VHDL) then - synthesis -- this converts th
by ChuckMcM 8y ago
The equivalent tooling for FPGA programming is starting with a high level hardware description (typically Verilog or VHDL) then
- synthesis -- this converts the text description from HDL into gates (fun fact you can write valid HDL which cannot be synthesized into hardware)
- place & route -- this takes what is essentially a schematic from the first step and assigns it to resources within the FPGA. This is also where you specify which pins on the FPGA you want to be connected to the schematic outputs.
- timing closure and simulation -- This is the process where the FPGA place and route core is trying to either make your design fit in as few gates as possible or run as fast as possible (these choices often conflict so you have to prioritize one over the other)
- bitstream generation -- This is where an often encrypted stream of bits are generated such that if they are fed into the FPGA they will set all the internal switches etc to realize the design you've put together.
- programming/flashing -- most systems use JTAG to do this.
When I started doing FPGA designs the hardest part for me was to break the notion of "software" when I was writing VHDL. You have to keep your head in the 'one clock' every variable gets to change exactly once in this block.
- FPGAhacker 8y agoGood write up. However, I think saying synthesis turns hdl into gates is tangling with our digital design lingo. Netlist is better, but to someone outside of digital design but with software background, I think I would call it a textual listing of the gates of the design and their interconnection. A graph.
- ChuckMcM 8y agoI agree, and I struggled with calling out EDIF or just netlists. My choice was that the OP was "absolute noob just figured out Arduino" level and so netlists which are pretty obvious to anyone who has done schematic design are kind of a foreign concept to software only folks. But everyone seems to "get" that an FPGA dynamically wires together "gates" (even if they may be called LUTs, CLUTs, CLBs, or ALAs internally). One of the ways I've helped SW types understand FPGAs was to describe the basic CLB as a subroutine that you program by setting very specific parameters and it has an input of some number of bits and a "clock" bit, and outputs the same number of bits. And the "program" is similar to the calling sequence of all these subroutines tied together. Then I start rattling off VHDL books to read :-)
- FPGAhacker 8y agoYeah, I didn’t really do any better. It just felt wrong to say gates at synthesis when it’s still a file on a computer instead of something physical like a transistor. Although now that I said that, I guess with fpgas that is sort of always true. Programming fpgas is the equivalent of sending a file via FTP. Nowadays at least.