Menu

#1034 Error: Unable to find the root module "-g2012" in the verilog source.

devel
closed-invalid
nobody
None
5
2019-07-25
2019-07-24
No

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?

Discussion

  • Martin Whitaker

    Martin Whitaker - 2019-07-25
    • status: open --> closed-invalid
     
  • Martin Whitaker

    Martin Whitaker - 2019-07-25

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.