Hi,
I want to write an assertion for the following requirement:
From state: FAULT_ID
To state : WAIT_STATE
Condition : The transition should happen only after 100ms delay
Here’s the assertion I tried:
property ppt;
time t1;
@(posedge clk) disable iff(!rst_n)
$changed(cur_st) && (cur_st==FAULT_SD, t1=$time)
|=> cur_st==FAULT_SD until (($time-t1)*1000000 == 100ms) ##0 cur_st==WAIT_LDO1_POK;
endproperty : ppt
I heard that this kind of check can also be achieved using first_match constructs.
Is my approach correct?
Would first_match be a better option here?
Any recommended clean way to model this delay-based state transition?
Thanks in advance!