testbench编译后总是提示错误:
near”’t”:Illegal base specifier in numeric constant.
near”’t”:syntax error,unexpected BASE,expecting class
请问什么原因??
'timescale 1ns/100ps
module lxh_tp;
reg clk,reste;
wire [3:0] led;
parameter DELY=100;
top_module mylxh
(
.CLK(clk),
.RSTn(reset),
.LED_Out(led)
);
initial
begin
clk=0;
reset=0;
#DELY reset=1;
#DELY reset=0;
#(DELY*20) $finish;
end
always
#(DELY/10) clk=~clk;
initial $monitor($time,,,"clk=%d reset=%d out=%d",clk,reset,led);
endmodule
回帖(1)
2013-7-23 09:23:47
我也遇到同样的问题,求解
我也遇到同样的问题,求解
举报
更多回帖