Project configuration file - FPGAwars/apio GitHub Wiki
Apio Project configuration file (apio.ini)
The apio.ini configuration file stores the Apio configuration for each project. The file is in 'ini' format with
all the attributes stored in the [env] section and is intended for manual editing by users. A minimal
apio.ini file may look like
# Comment line.
[env]
board = alhambra-ii
top-module = main
The supported configuration attributes are:
board
Type: String | Required: Yes | Default: none
The ID of the supported board model. The list supported boards is available apio boards or by running the command apio boards --list.
Example:
board = upduino31
[!NOTE] Some APIO commands allow to override the
boardsetting using the--boardcommand line flag.
apio build --board upduino31
exe-mode
Type: String | Required: No | Default: default
Specifies the execution mode of the project build. The valid values are default and native.
The default behaviour of apio is to run the toolchains that were installed from apio packages (Ex. apio install oss-cad-suite). It is the easiest choice for a normal user: let apio install and manage the executables
But it is also possible (native mode) to let apio execute the installed toolchains in the system. In this case, is the user (advanced) who should install all the toolchains needed. Apio will find them if they are in system PATH
Example:
exe-mode = native
top-module
Type: String | Required: No | Default: main
The name of the Verilog module to be used as top module when building the project. Not that this is the name as it appears in the verilog module statement such as module main and not a file name such as main.v.
Example:
top-module = main
[!NOTE] Some APIO commands allow to override the
top-modulesetting using the--top-modulecommand line flag.
apio build --top-module my_top-module