always it is recommended to use run_test() inside the initial block,is it the fixed rule,i want to know the logic behind it.plz explain.
In reply to swati kumari:
runt_test() is what starts the execution of the UVM phases. You can write all the classes you want, but somewhere you have to initiate a process that calls the methods in the class from outside a class.
In reply to dave_59:
In addition to Daves reply: run_test makes an object of your test class in the top module.