我想运行iverilog 只是为了检查文件中的语法。我不希望它实际编译任何东西,因为我正在处理大型代码库并且不想查找和“包含”所有包含的文件。
`include "header.vh" // not a file in current dir so iverilog can't find it
module test;
input a;
input b;
output c;
assign c = a & b // missed a semicolon - wanna use iverilog to tell me this
assign d = a + XMR.TO.ANOTHER.MODULE.d; // Want iverilog to ignore the XMR and move on since there's no syntax issue here
// no endmodule - should also be reported by iverilog
我试过的命令:
iverilog -t null -Wall test.v
请帮我找到解决方案...即使您可以为我指出不同的工具,那也很棒。