You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR, Apio is an easy to use toolbox for FPGA development. For q quick start, visit the Getting started with Apio page.
What is Apio?
Apio is a powerful yet easy-to-use toolbox for FPGA development using Verilog and System Verilog. It’s simple to install, no toolchains, licenses, or makefiles required, and works across Linux, Windows, and macOS. Apio is open source, free to use, and supports every stage of the FPGA workflow, from simulating and testing, to building and programming the FPGA, using simple commands such as apio test, apio build, and apio upload that do what you expect them to do. Apio integrates smoothly with any text editor and works great with Visual Studio Code and GitHub. It currently supports over 80 FPGA boards, custom boards can be easily added, and it includes over 60 ready-to-use example projects. Apio currently supports the ICE40, ECP5, and GOWIN FPGA architectures.
[Example] Simulation results using the command apio sim:
The Apio philosophy
Apio was designed from the ground up to be extremely easy to use and use only Free/Libre Open Source Software (FLOSS). Just install it and use it as you like.
In this animation you can see the whole process of testing the Blinky led circuit: Just type the command apio upload and the circuit will be synthesized, and uploaded into the FPGA
As the user gh02t said in this post on Hacker-news:
Apio is a command line tool that automates installing the toolchain for your FPGA and running it. It just simplifies things, you don't have to use it if you'd rather call the individual tools for synthesis, P&R, simulation etc. It'd be reasonable to think of it as akin to a very smart Makefile combined with an automatic package manager, specialized to FPGAs (it's based on PlatformIO). It's nice when you're still kind of getting oriented, because you don't need to know how to set up and invoke the different tools... just call apio build or apio simulate
Sample Apio Commands
Below are typical Apio commands used during the project development cycle. The commands are simple and intuitive.
# Create a project
apio examples -f alhambra-ii/ledon # Fetch the files of an example
# Build
apio build # Build the project
apio upload # Upload the design to the FPGA board
# Verification
apio lint # Inspect the source code for issues.
apio test # Run the testbench
apio sim ledon_tb.v # Simulate the testbench and open a graphical viewer.
Apio and higher level tools
While many use Apio as a stand alone text based CLI toolbox, it can also be used with higher level graphical tools such as its sister project Icestudio:
Apio in the media
Shawn Hymel's excellent series on FPGA programming is based on Apio and the the Icestick board