migrating from apio 0xx - zapta/apio-new-doc-wiki.delete-me GitHub Wiki
Apio 1.x.x introduces many improvements compared to Apio 0.x.x. Many of the changes were done in a backward compatible way but some do require user attention. In this page we outline the main changes from compatibility point of view to help Apio 0.x.x to migrate their projects successfully to Apio 1.x.x.
It is recommended to first delete Apio 0.x.x before installing Apio 1.x.x. The steps to do so are:
-
Delete the Apio Python package
pip uninstall apio
-
Delete the directory
.apio
under the user home directory. That directory contains packages and other transient files used by Apio.
Apio 1.x.x requires a project file called apio.ini
in the directory of each Apio project. Make sure your project have a text file called apio.ini
with the content below, replace with the id of your board (e.g. alhambra-ii
) and replace with the name of the top Verilog module of your project (e.g. Blinky
).
[env:default]
board = <board>
main-module = <my-module>
Remove from your testbenches all calls to the Verilog function `$dumpfile(). The location of the generated simulation files is now automatically controlled by Apio.
The hierarchy and names of some Apio commands where changed in Apio 1.x.x and the table below will help you migrating from the old to the new commands. You can also use the -h
for detail information on any command level, for example apio -
, apio devices -h
, and apio devices usb -h
.
Apio 0.x.x | Apio 1.x.x | Comments |
---|---|---|
apio boards --fpga |
apio fpgas |
List supported FPGAs |
apio boards --list |
apio boards |
List supported boards |
apio drivers --ftdi-enable |
apio drivers install ftdi |
Install FTDI driver |
apio examples --files |
apio examples fetch |
Fetch an example |
apio examples --list |
apio examples list |
List examples |
apio init |
apio create |
Create an apio.ini file |
apio install --all |
apio packages update |
Install Apio packages |
apio install --list |
apio packages list |
List installed apio packages |
apio system --lsftdi |
apio devices usb |
List FTDI and USB devices |
apio system --lsserial |
apio devices serial |
List serial ports |
apio time |
apio report |
Report design timing. |
apio verify |
apio lint |
Verify the source code. |