Uvm_config_db

In reply to raja.kuraku:

How about a more complete example of what you are trying to do. I can only assume this is what you are trying to do

interface my_interface;
//... body
endinterface
module TB_TOP;
my_interface my_interface_inst();

my_DUT my_dut_inst(my_interface_inst);

initial begin
    uvm_config_db#(virtual my_interface)::set(null,"*","vif",my_interface_inst);
    run_test();
    end
endmodule