In reply to MayurKubavat:
In your test you can set
uvm_config_db #(uvm_bitstream_t)::set(this, “m_env.agent1”, “is_active”, UVM_PASSIVE);
Note the type of is_active!
In the agent you can perform a get on your config_db:
ok = uvm_config_db #(uvm_bitstream_t)::get(this, “”, “is_active”, active);
If you do not call super.build_phase(phase) you have to perform a cast like this:
is_active = uvm_active_passive_enum’(active);