ferrandi / PandA-bambu

PandA-bambu public repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad verilog code

iagrigorov opened this issue · comments

Hello, Fabrizio!

I ran on Ubuntu 18.04LTS amd64
PandA - Version: PandA 0.9.6 Revision 5e5e306-main

$ bambu test1.c -fPIC --compiler=I386_GCC7

and bambu created Verilog file successfully.

However, when compiling in Quartus Prime Lite Edition 20.1 I receive the following errors:

Error (10170): Verilog HDL syntax error at top.v(719) near text: "for"; expecting "endmodule". Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Intel FPGA Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera.com/support/support-resources/knowledge-base/search.html and search for this specific error message number.
Error (10170): Verilog HDL syntax error at top.v(730) near text: ")"; expecting ".", or an identifier. Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Intel FPGA Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera.com/support/support-resources/knowledge-base/search.html and search for this specific error message number.
files.zip

Hello @iagrigorov,
I was able to run the synthesis without errors, so not able to reproduce the issue you are reporting; if you could please give me some more information about your configure string I will try again. Anyway, I can suggest you directly specifying the board you are synthesizing to using --device-name flag so that Bambu will better optimize your design and generate all needed files to run the synthesis process with Quartus (adding --evaluation will start the synthesis process once Bambu has finished).

As an example, you could try something like: bambu test1.c --compiler=I386_GCC7 --device-name=5SGXEA7N2F45C1 --evaluation

Hello,
just to confirm that the Verilog generated by Bambu for Altera is different from the one generated for Xilinx. So, here the issue seems that the Bambu options are not specifying the device-name. The default device-name is a Xilinx device.

Hello,
Thank you for your answers.
Now it works fine, thanks!