Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Author Name: Jonathon Donaldson
Verilator doesn't seem to like files with a .c extension. If my C source files end in .cpp things work just fine but if it has a .c extension I get a weird error. According to the error message it almost seems like verilator is trying to parse the file as a verilog file instead of a C file. The documentation states that verilator supports file extensions of [.cpp/.c/.cc/...etc...]. The error message I get is:
I have attached an example in test_regress format.
Is there some other switch I need to enable to get this to work? If I simply change the extension of the .c file to .cpp then all is well. That doesn't seem right...
I verilate like so: