Рет қаралды 113,426
In this tutorial, we install the open-source iCE40 FPGA toolchain, which consists of apio, yosys, nextpnr, and Project IceStorm.
A field-programmable gate array (FPGA) is an integrated circuit (IC) that lets you implement custom digital circuits. You can use an FPGA to create optimized digital logic for things like digital signal processing (DSP), machine learning, and cryptocurrency mining. Because of the FPGA’s flexibility, you can often implement entire processors using its digital logic. You can find FPGAs in consumer electronics, satellites, and in servers used to perform specialized calculations.
In this series, we will see how an FPGA works and demonstrate how to create custom digital logic using the Verilog hardware description language (HDL).
In the previous episode ( • Introduction to FPGA P... ), we examined how an FPGA works and why you might want to use it in your projects or products. In this episode, we demonstrate how to install apio and the various open-source tools required to build and upload designs to a Lattice iCE40 development board.
The solution to the challenge at the end of the episode can be found here: www.digikey.co...
All code examples and solutions for this series can be found here: github.com/Sha...
Lattice iCE40 product page (with pinout spreadsheet and datasheet): www.latticesem...
We install the apio tool (github.com/FPG..., which will help us install and control other lower-level tools required to synthesize, simulate, and upload our FPGA designs:
- Synthesis: yosyshq.net/yosys/
- Simulation: gtkwave.sourcef...
- Place and route: github.com/Yos...
- Package: icepack (as part of Project IceStorm: github.com/Yos...)
- Upload: iceprog (as part of Project IceStorm: github.com/Yos...)
The apio documentation can be found here: apiodoc.readth...
Note that there might be some differences between the various operating systems (e.g. Windows, macOS, Linux) during installation. I demonstrate installation on Windows and try to point out the differences from other operating systems.
Important! At this time, the latest version of apio (0.7.6) has several issues. Until those issues are resolved, I recommend sticking to v0.6.7 (as shown in the video). You can read about some of those issues here: github.com/FPG....
Apio includes several examples to get you started. We demonstrate one such example that illuminates all of the onboard LEDs. We finish by issuing a challenge to modify the leds.v example to turn off one of the LEDs.
Product Links:
www.digikey.co...
Related Videos:
• Cyclone® III FPGA
• Power Management: Powe...
• FPGA's: Low-Cost, High...
Related Project Links:
www.digikey.co...
Related Articles:
www.digikey.co...
www.digikey.co...
www.digikey.co...
Learn more:
Maker.io - www.digikey.co...
Digi-Key’s Blog - TheCircuit www.digikey.co...
Connect with Digi-Key on Facebook / digikey.electronics
And follow us on Twitter / digikey