Forums » Development »
Top Module
Added by Yehuda Singer over 1 year ago
dear sir/Mrs. We wnat to compile a design composed of two modules and roduce SystemC files. Here is the error message we getr. THanks, in advance Yehuda
yehuda@ubuntu:~/Original PacoblazeSM for Verilator/pacoblazeFiles/pacoblaze$ verilator -sc pacoblaze3_tb.v %Warning-REDEFMACRO: pacoblaze.v:56: Redefining existing define: operation_is, with different value: (idu_operation == (x)) (x) %Warning-REDEFMACRO: Use "/* verilator lint_off REDEFMACRO */" and lint_on around source to disable this message. %Warning-REDEFMACRO: pacoblaze_alu.v:262: Previous definition is here, with value: (operation == (x)) (x) %Error-MULTITOP: pacoblaze_scratch.v:38: Unsupported: Multiple top level modules: pacoblaze3_scratch and pacoblaze3_tb %Error-MULTITOP: pacoblaze_scratch.v:38: Fix, or use --top-module option to select which you want. %Error: Exiting due to 2 error(s), 2 warning(s)
Replies (3)
RE: Top Module - Added by Wilson Snyder over 1 year ago
Assuming the two modules are instantiated separately, just run two different verilator runs, one with each.
Also fix your mismatching definitions.
RE: Top Module - Added by Yehuda Singer over 1 year ago
Dear Wilson, Thanks for your answer. However, the case is that MOdule A instntiate Module B.
Best regrdas, Yehuda
RE: Top Module - Added by Wilson Snyder over 1 year ago
If pacoblaze3_scratch instantiates pacoblaze3_tb, or vise versa, then you would not be getting this error.
(1-3/3)
![[logo]](/img/veripool_small.png)