这些错误在Verilog中意味着什么?
XMVlog: *E,dupuni:单位“ worklib.scenario2:sv”文件中定义的乘法“ design.sv”和“ testbench.sv”。
XMVLOG: *E,MNPDEC:模块名称(方案2)先前已声明。使用 - 重复模块名称的AllowRedefinition选项。
以上两个错误是什么意思,或者我该如何修复?
我真的很想描述我试图将这个问题的问题,但我完全迷失了。 先感谢您
xmvlog: *E,DUPUNI: Unit "worklib.scenario2:sv" multiply defined in files "design.sv" and "testbench.sv".
xmvlog: *E,MNPDEC: Module name (scenario2) previously declared. Use -ALLOWREDEFINITION option for duplicate module names.
What do the above two errors mean or how can I fix them?
I really want to describe things I've tried to make this a good question, but I'm completely lost..
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这仅表示您已经在
design.sv
和testbench.sv
中定义了一个名为scenario2
的模块。在编译期间,您的名称不得超过一个模块。在这种情况下,您可以重命名scenario2
testBench.sv
中的模块,或者如果它是冗余的,则可以将其重命名。This simply means that you have defined a module named
scenario2
in bothdesign.sv
and intestbench.sv
. During compilation, you can't have more than one module with the same name. In that case, you can either rename thescenario2
module intestbench.sv
, or better yet completely remove it if it's redundant.