Function with timing control

In reply to Mitu Raj:

SV functions cannot consume simulation time. Try the same with “task”.