caravel icon indicating copy to clipboard operation
caravel copied to clipboard

iverilog syntax error on Caravel

Open emre-goncu opened this issue 3 years ago • 3 comments

Since my RTL code have some "typdef struct" statements, I've added the parameter "-g2005-sv" for iverilog to the related lines in the Makefile given in the path "caravel_user_project/mgmt_core_wrapper/verilog/dv/make/env.makefile". But after those changes, I get the below errors, while in the verification phase:

caravel/verilog/rtl/caravel.v:614: error: Invalid module instantiation

emre-goncu avatar Mar 10 '22 19:03 emre-goncu

@emre-goncu you added an iverlog parameter in the environment makefile? the env.makefile is nothing but a makefile that exports some global variables, that infact can be overwritten by exporting them from outside the makefile. I don't really understand your change.

marwaneltoukhy avatar Mar 11 '22 12:03 marwaneltoukhy

Sorry about that! I wanted to mention "sim.makefile" not "env.makefile".

emre-goncu avatar Mar 14 '22 10:03 emre-goncu

It might be related to this.

kauser-rl avatar Mar 24 '22 13:03 kauser-rl