1.异步复位同步释放:
input async,——————有待改进
reg reg1;
reg reg2;
wire
always@(posedge clk or negedge rst_n)
begin
if(rst_n==1'd0)
begin
reg1<=1'd0;
reg2<=1'd0;
end
else
begin
reg1<=async;
reg2<=reg1;
end
end