always @ (negedge rst_n or posedge set_p or posedge clk)
begin
if(!rst_n) //异步复位
dout <= 0;
else if(set_p) //异步置位
dout <= 0;
else
dout <= dsync; //异步置位同步化
end
always @ (negedge rst_n or posedge set_p or posedge clk)
begin
if(!rst_n) //异步复位
dsync <= 0;
else if(set_p) //异步置位
dsync <= 1;
else
dsync <= 0;
end
endmodule
综合时,有警告:Found combinational loop during mapping at net dsync.ctrl
instance dsync.ctrl, output net dsync.ctrl
net dsync.ctrl
input pin dsync.ctrl/C
instance dsync.ctrl (cell ORCALUT4)
output pin dsync.ctrl/Z
net dsync.ctrl