Assertion for checking clock alignment

In reply to sidharth.sankar77:
Delta should be declared as type bit.
automatic bit delta; // realtime delta;
#3 delta=tclk2-tclk1 > limit;
Made the error because I initially used to store the delta time, but later used it in a comparison.

Glad you liked the solution. You may need to use the same approach the negedges of the 2 clocks.
Ben