FPGAwars / apio

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

ERROR: Module `main' not found! #376

Closed yoo142 closed 3 months ago

yoo142 commented 5 months ago

I recieve the following error when trying to build or upload a projectusing APIO : "ERROR: Module `main' not found! scons: *** [hardware.json] Error 1" Capture

yoo142 commented 5 months ago

Apologies, I just figured it out, I didn't realize the top module actually had to be named "main". Is this a new feature or am I going crazy? I swear I have built projects without having the module named "main".

Obijuan commented 5 months ago

Please, read the release notes As the toolchains has been updated, now the top module should be explicitely given in the apio.ini project file If it is not given, apio will use main as the default You can add the module name manually in the apio.ini file, or you can use the init command: apio init -t <yout-top-module-name>

You can also find more information about the init command in the wiki: Init command