Start_of_simulation

what is the difference between start_of_simulation() and end_of_elaboaration();

why we use clean_up_phases in uvm? can someone give me real example code?

In reply to Bhanu Yenugula:

I’ve put your two questions together.

These phase names come from many other simulations environments, and there are a few examples of their use of you search for them. Very rarely do you see them all used. There are thinks you may need to do before and after your test runs, and you cannot use simulation time you order their execution. These non-time consuming phases give you an ordering that you can take advantage of, and the documentation gives you a rough idea of what their intended use could be.

end_of_elaboration is for actions that need to happen after the testbench gets constructed but before the test begins, like setting factory overrides for transactions, or reporting. start_of_simulation is essentially time 0 of your test.