|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
小弟正在自学MODELSIM,有个问题想请问一下:
编译的测试模块的时候总是提示以下错误:near" 't ":Illegal base specifier in numeric constant.
near" 't ":syntax error,unexpected "BASE",expecting"class"
请问是什么原因,一下是测试模块的代码:
'timescale 1ns/1ns
'include "./compare.v"
module t;
reg a,b;
wire equal;
initial
begin
a=0;
b=0;
#100 a=0;b=1;
#100 a=1;b=1;
#100 a=1;b=0;
#100 a=0;b=0;
#100 $stop;
end
compare m(.equal(equal),.a(a),.b(b));
endmodule |
|