Sampling on posedge

In reply to pawan:
See my reply at
https://verificationacademy.com/forums/systemverilog/sva-evaluation

In general, you do want the signals to be sampled in the Preponed region.
If you want the current value, see my comment #2 in that link
*If within the sequence-matched-item, I update my property local variable with the return of a function call, like (1, w=getq()), that call is made in the Observed region, past the Active and NBA regions. Thus, in this model (below) w gets the updated value of q. 390 sampled q= 25, current q= 25, past q= 8, var w= 31
*
I suggest you reevaluate your needs and review the evaluations regions.
Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr