代码是特权同学的,说是pll的locked当做复位信号,做异步处理。但我看不懂,哪位大佬帮我看看。
always @(posedge clk_100M)
begin
if(!locked)
led_rst1 <= 1'b0;
else
led_rst1 <= 1'b1;
end
always @(posedge clk_100M or negedge led_rst1)
begin
if(!led_rst1)
led_rst <= 1'b0;
else
led_rst <= led_rst1;
end