What code goes into main_phase

In reply to chr_sue:

Thanks chr_sue. Can you also tell what is the use of end_of_elaboration phase?

Thanks.