为什么能综合能仿真但不能生成流文件

module ledtest2(led);
output led;
wire led;
reg clk;

initial
begin
clk=0;
end

always
begin
#2 clk=~clk;
end
assign led=clk;
endmodule

生成流文件时老是报错:
[Drc 23-20] Rule violation (LUTLP-1) Combinatorial Loop - 1 LUT cells form a combinatorial loop. This can create a race condition. Timing analysis may not be accurate. The preferred resolution is to modify the design to remove combinatorial logic loops. To allow bitstream creation for designs with combinatorial logic loops (not recommended), use this command: set_property SEVERITY {Warning} [get_drc_checks LUTLP-1]. NOTE: When using the Vivado Runs infrastructure (e.g. launch_runs Tcl command), add this command to a .tcl file and add that file as a pre-hook for write_bitstream step for the implementation run. led_OBUF_inst_i_1.

2个回答

试了一下,把上升沿或者下降沿敏感的关键词去掉就会出现这个问题,,使用边沿敏感应该需要指出上升沿还是下降沿吧

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问