How to do multiple instance of same agent?

In reply to chr_sue:

in top i set vif
uvm_config_db#(virtual ahb_if)::set(null,““,“ahb_if0”, ahb_if0);
uvm_config_db#(virtual ahb_if)::set(null,”
”,ahb_if1", ahb_if1);
uvm_config_db#(virtual ahb_if)::set(null,“*”,ahb_if2", ahb_if2);