Events

In reply to abhishek403:

I don’t think you have the right understanding.
The problem is (a.triggered) remans true until time has a chance to advance to the next time slot. When you comment out the #1, the always block is just like a forever loop, and has no chance to advance time, so a.triggered remains true each time through the loop.