In reply to sharvil111:
Thanks for the reply. (I am trying to create testbench for a switch which has 1 input, 1 memory and 4 output interface.In order to create 4 output interface instead of explicitly doing a uvm_config_db set for output_intf[0]…output_intf[4] I tried doing it in a single step using the for loop. )
I edited the set line again such that the name (output_intf[0]…)
uvm_config_db #(virtual output_interface#(myparams[i]))::set(null, “*”, $sformat (“output_intf[%0d]”,i), output_intf[i]);
The one you suggest is for creating a single interface.