End of Simulation options when agents in passive mode

In reply to Tudor Timi:

Ahh the man himself! The blog is good, very informative!

Yes i understand the premise of objections, where and when to raise and drop them. At the moment i have objections in the sequences used in my test and inside the test as well.
I have also set a drain time, but i suspect i will have to play about with this value to get it right. Do you know the default units? Are these simulator dependent or can i specify e.g. 20ms?


task block_E_base_test_vc::run_phase(uvm_phase phase);
    phase.phase_done.set_drain_time(this, 50ms);
endtask

I guess the problem i have is that my test only contains sequences for the driving interface, the output interfaces have nothing in the test to control it.
If i set a drain time then i need my output interface monitor to raise an objection when it is capturing data on the bus for the drain time to make sense and keep the test running. Otherwise the test will end because there are no raised objections.