我新手,编了一个简单测试程序就是不能通过,好象是定义时间单位那里错误,程序是下面的: 'timescale 1us/1us module compare(equ,a,b); input a,b; output equ; assign equ=(a==b)?1:0; endmodule module tc; reg a,b; wire equ; 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(.equ(equ),.a(a),.b(b)); endmodule 出现下面错误提示: vlog -work work F:/Modeltech_6.0/myexe/compare_test.v Model Technology ModelSim SE vlog 6.0 Compiler 2004.08 Aug 19 2004 ** Error: F:/Modeltech_6.0/myexe/compare_test.v(1): near "'t": Illegal base specifier in numeric constant. ** Error: F:/Modeltech_6.0/myexe/compare_test.v(1): near "'t": expecting: LIBRARY CONFIG ** Error: F:/Modeltech_6.0/myexe/compare_test.v(1): Expecting numeric digits.
这是什么原因啊,求助/ |