In reply to Lakshman4178:
Hi,
So if I understand you correctly, the $display statement within the initial works while the one within the task never shows, correct?
Possibly, you may want to check with Mentor why it’s not working, because it does both with Cadence Incisive and Synopsys VCS…