In reply to marathuteja:
The UVM component’s constructor does not need a default for either argument. Just use:
function new(string name, uvm_component parent);
Next, don’t create components with a null parent. If you do that, the component’s phase methods won’t be called, so your environment won’t execute.
Why do you throw null into this and break your code?