In reply to Raja VA:
You have to use a generate like this:
ace_master_interface mst_if[`no_of_masters](aclk,resetn);
for(genvar i=0;i<`no_of_masters;i++)begin
initial
uvm_config_db #(virtual ace_master_interface)::set(null,"*",$sformatf("mst_if[%0d]",i),mst_if[i]);
end