I wanted to know whether we can use assertions to count the number of clock cycles. I have a signal A which goes high at any time and after certain time it will go low. But when the signal is high, it triggers another clock signal and the clock signal gets cut off as soon as the signal A goes low. Now i want to find out how many clock cycles are there until the signal A is high.
Is there a way to use assertions to find that out.