如果组件未绑定,modelsim 会抛出错误

modelsim throw error if component is not bound

如果组件实例未绑定,有没有办法让 modelsim 抛出错误而不是警告?现在,它会生成一个警告,但通常很难在文字记录中发现。如果找不到合适的源 code/signature,我真的不需要 运行 modelsim,所以在我看来最好抛出一个错误,这样很明显,然后我可以修复它。

vsim 命令行选项 -warning error 将所有警告升级为错误。

虽然 ModelSim 支持 -warning <msgNumber>-note <msgNumber> 将消息(信息、警告、错误)升级为警告或注释,但我找不到将警告显式升级为警告的选项错误。

另一方面,vcom有这样的选项:

-fatal <msgNumber>[,<msgNumber>...]
                   Report the listed messages as fatal
-error <msgNumber>[,<msgNumber>...]
                   Report the listed messages as errors
-warning <msgNumber>[,<msgNumber>...]
                   Report the listed messages as warnings
-warning error     Report all warnings as errors
-note <msgNumber>[,<msgNumber>...]
                   Report the listed message as notes
-suppress <msgNumber>[,<msgNumber>...]
                   Suppress the listed messages