How can I create an array of agents of same type?

In reply to hcglu:

[CLDEXT] Cannot set ‘wali[i_wali]’ as a child of ‘uvm_test_top.environment’, which already has a child by that name.

Getting above error.

I don’t want to use manual method as I have number of such agents and I want to access them using index which is a configuration variable.

Also I want to have multiple monitor bfms and driver bfms, but I’m not able to get them in a for loop.