Closed UA3MQJ closed 3 years ago
Additional info: this happens because cv32e40p provides a file with .svh
extension which is added to the source list with language None
. For this file LiteX also generates a load_None
command for yosys. This CPU also fails to build with yosys, because LiteX generates a load_systemverilog
command for other files that doesn't exist (load_verilog -sv
should be used instead).
@kgugala - As @antmicro added this core, can you assign someone to look into this?
This seems to be a generic issue with SV sources in Intel targets. I'll get somebody to check it
@UA3MQJ where can I find the cyclone_ep4ce10.py
target? I don't see it neither in LiteX nor in litex-boards
@kgugala you can use ./de10lite.py --cpu-type=cv32e40p
to reproduce the issue.
I opened #738 fixing the crash reported here. With this one LiteX seems to generate correct qsf. However, Quartus does not seem to be able to elaborate cv32e40p sources - it complains about bunch of syntax errors. I suppose this should be discussed upstream (in cv32e40 repo)
I tested this with QuartusLite 20.1
Thanks @kgugala, @Disasm. I agree with @kgugala that we should first be sure the CPU can be compiled correctly with Quartus.
Thanks! There are no errors by Litex now. Remain only synthesis errors in Quartus.
Error (10170): Verilog HDL syntax error at riscv_id_stage.sv(937) near text: "genvar"; expecting an identifier ("genvar" is a reserved keyword ). 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. File: /home/sea/risc-v/pythondata-cpu-cv32e40p/pythondata_cpu_cv32e40p/system_verilog/rtl/riscv_id_stage.sv Line: 937
Error (10112): Ignored design unit "riscv_id_stage" at riscv_id_stage.sv(40) due to previous errors File: /home/sea/risc-v/pythondata-cpu-cv32e40p/pythondata_cpu_cv32e40p/system_verilog/rtl/riscv_id_stage.sv Line: 40
Info (12021): Found 0 design units, including 0 entities, in source file /home/sea/risc-v/pythondata-cpu-c