Hi, I am trying to use Icarus with cocotb. I have makefile where I have defined everything necessary to run the simulation using Icarus verilog. When I run the make command, I get the error as following:
error: Unable to find the root module "-g2012" in the Verilog source.
: Perhaps ``-s -g2012'' is incorrect?
/home/user/cocotb/cocotb/share/makefiles/simulators/Makefile.icarus:61: recipe for target 'sim_build/sim.vvp' failed
make[1]: *** [sim_build/sim.vvp] Error 1
Can someone help with what can be wrong here? Or is this a genuine bug?
If you use the -s option, you must provide the name of your top module. See the man page or https://iverilog.fandom.com/wiki/Iverilog_Flags#-s_topmodule