FPGAwars / apio

:seedling: Open source ecosystem for open FPGA boards
https://github.com/FPGAwars/apio/wiki
GNU General Public License v2.0
791 stars 136 forks source link

apio time - No such option: --top-module #410

Open jasonsbeer opened 2 weeks ago

jasonsbeer commented 2 weeks ago

Referencing the documentation here : https://github.com/FPGAwars/apio/wiki/Apio-Time

I am trying to run the apio time command while defining the top module, but it throws an error. Has this option been deprecated? Running Ubuntu 24.04.

`(.venv) jason@jason-desktop:~/Documents/U111$ apio time --top-module U111_TOP --fpga iCE40-HX4K-TQ144 Usage: apio time [OPTIONS] Try 'apio time -h' for help.

Error: No such option: --top-module`

zapta commented 2 weeks ago

Documentation may need to be updating. The next release will have more detailed and updated help information.

The recommended way to use apio is to rely on apio.ini for configuration rather than using --top-module, --board, --fpga, and so on. Try to set apio.ini file and then run 'apio time'. Same for 'apio build', and 'apio upload'.

For example, my apio.ini looks like this

[env]
board = upduino31
top-module = main
jasonsbeer commented 2 weeks ago

That helped. Thanks!

zapta commented 2 weeks ago

Thanks for the update. Keeping this issue open, will look into adding to the time command a --top-module flag for completness.