Why use uvm_config_db to pass vif or configuration object is recommended?

In reply to cgales:

Hi,
Can you please tell me where to set and get agent config classes? I’ve set in environment and getting in agents, but error is coming. Please help me solve this issue.
Thanks