SpinalHDL / SpinalTemplateSbt

A basic SpinalHDL project
77 stars 64 forks source link

MyTopLevelSim failed #16

Closed QiaowenYoung closed 2 years ago

QiaowenYoung commented 2 years ago

I ran the sbt run and chose MyTopLevelSim to run, but I got these errors:

In file included from ../verilator/VMyTopLevel__spinalWrapper.cpp:8:
../verilator/VMyTopLevel.h:48:42: error: expected ‘)’ before ‘*’ token
     explicit VMyTopLevel(VerilatedContext* contextp, const char* name = "TOP");
                         ~                ^
                                          )
../verilator/VMyTopLevel.h:70:5: error: ‘VerilatedContext’ does not name a type; did you mean ‘VerilatedMutex’?
     VerilatedContext* contextp() const;
     ^~~~~~~~~~~~~~~~
     VerilatedMutex
In file included from ../verilator/VMyTopLevel__spinalWrapper.cpp:12:
../verilator/VMyTopLevel__Syms.h:32:39: error: expected ‘)’ before ‘*’ token
     VMyTopLevel__Syms(VerilatedContext* contextp, const char* namep, VMyTopLevel* modelp);
                      ~                ^
                                       )
make: *** [VMyTopLevel.mk:77: VMyTopLevel__spinalWrapper.o] Error 1

Thanks for any instructions.

Dolu1990 commented 2 years ago

Hi,

Which version of verilator do you have ? and on which OS are you ?

QiaowenYoung commented 2 years ago

Thanks for your reply. Verilator 4.215 and CentOS Linux 8.

Dolu1990 commented 2 years ago

I'm on Verilator 4.216, that's very close ? i mean that's very wird that the compilation error come from Verilator generated code XD Can you try with Verilator 4.216 ?

Dolu1990 commented 2 years ago

Also which GCC version ?

QiaowenYoung commented 2 years ago

I will try 4.216 later. The GCC is 8.5.0.

numero-744 commented 2 years ago

Hello, Any news about this issue?

numero-744 commented 2 years ago

@QiaowenYoung hello, did you manage to fix your issue?