|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
求助!!求大神指导~~~
使用planahead软件synthesis时提示ERROR:HDLCompiler:1689 - "E:/fpga/Users/scratching/scratching.srcs/sources_1/imports/verilog/oc8051_fpga_tb.v" Line 40: System task finish is always executed
错误提到的line40就是下面$finish;那行
oc8051_fpga_tb.v文件如下所示:
`include "oc8051_timescale.v"
module oc8051_fpga_tb;
reg rst, clk, int1, int2, int3;
wire sw1, sw2, sw3, sw4, int_act;
wire [7:0] p0_out, p1_out, p2_out, p3_out, data_out;
wire [13:0] dispout;
wire [15:0] ext_addr;
oc8051_fpga_top oc8051_fpga_top1(.clk(clk), .rst(rst), .int1(int1), .int2(int2), .int3(int3), .sw1(sw1), .sw2(sw2), .sw3(sw3), .sw4(sw4),
.int_act(int_act), .dispout(dispout), .p0_out(p0_out), .p1_out(p1_out), .p2_out(p2_out), .p3_out(p3_out), .data_out(data_out),
.ext_addr(ext_addr));
initial
begin
clk = 1'b0;
rst = 1'b0;
int1 = 1'b1;
int2 = 1'b1;
int3 = 1'b1;
#22
rst = 1'b1;
#1000
int2= 1'b0;
#100
int2= 1'b1;
#40000
int3= 1'b0;
#100
int3= 1'b1;
#40000
rst = 1'b0;
#20
$finish;
end
always clk = #5 ~clk;
initial $dumpvars;
initial $monitor("time ",$time," rst ",rst, " int1 ", int1, " int2 ", int2, " int3 ", int3, " int act ", int_act, " p0_out %h", p0_out);
endmodule |
|