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.
http://china.xilinx.com/support/answers/58828.html官网有相关信息
试了一下,把上升沿或者下降沿敏感的关键词去掉就会出现这个问题,,使用边沿敏感应该需要指出上升沿还是下降沿吧