TL;DR, Apio is an easy to use toolbox for FPGA development. For q quick start, visit the Getting started with Apio page.
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
:
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
orapio simulate
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.
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:
Shawn Hymel's excellent series on FPGA programming is based on Apio and the the Icestick board
- Apio Documentation
- Getting started with Apio
- Apio github repository
- Apio package on PyPi
- Apio daily build
-
Apio is uses the YosysHQ open source toolchain.
-
APIO was inspired by PlatformIO.
-
FPGAwars community has developed this project in a voluntary and altruistic way since 11/2016.
-
Apio is implemented in Python and using the packages Click, and Scons.
-
BQ sponsored this project from 02/2016 to 11/2016. Thanks.
Licensed under GPL 2.0 and Creative Commons Attribution-ShareAlike 4.0 International License.