Hi, I am trying to write a property for the following behaviour. We have the following signals: clk, rst, ref_rst. The behaviour is the rst is asserted at the second posedge of clk after the ref_rst is asserted. We have an asynchronous ref_rst, the synchronous rst follows the asynchronous rst after 2 cycles of the clk. Will the below property work fine and is sufficient to check this behaviour?
The image shows the clk, ref_rst and rst signals:
property rst_chk;
@(posedge clk)
$rose(ref_rst) |-> ##1 $rose(rst);
endproperty
Edit: 2 cycles won’t be accurate according to the waveform attached. It should be 1 cycle after the ref_rst is captured as high on clock posedge.