Assertion to calculate ON and OFF period of signal based on the configuration

In reply to muralidar:

I have one more problem here.

Actually my assertion is working but it fails in this case because the actual time and expected time is not matching due to precision differences.

In the above code i have to compare “v_t_hi” value which we got from property with the values of (cnt_reg_1*1.312ms).
here value 1.312 is constant for all the checks.

when i use above equation tool is taking (cnt_reg_1*1312) i am seeing the small difference

v_t_hi = 418248000ns (cnt_reg_1*1312) = 419328000ns

So my assertion is failing for all the comparison due to small difference between two.
I can not compare this in ms because operations happens in us.
Please suggest is there any other solution for making it roundoff?