Not able to Configure

In reply to dave_59:

Hi

I have set the path as “uvm_test_top.env.ag1” only. Here for your reference.

set_config_object(“uvm_test_top.env.ag1”, “wiff”, wif,0);

I have created the object for agent in environment module. So I have set the hierarchy path of agent in top module.

Environment code:
****************
class tc_fifo_env extends uvm_env;

`uvm_component_utils(tc_fifo_env)
  tc_fifo_agent ag1;

function new(string name = "tc_fifo_env", uvm_component parent = null);
        super.new(name, parent);
        ag1 = new();
endfunction

 function void build_phase(uvm_phase phase);
        super.build_phase(phase);
        uvm_report_info(get_full_name(),"Build", UVM_LOW);
        ag1 = tc_fifo_agent::type_id::create("ag1",this);   
 endfunction

endclass

Testcase
**********
class parent_test extends uvm_test;
virtual intf intf_0;
  tc_fifo_env env;

`uvm_component_utils(parent_test)

function new (string name = "parent_test" , uvm_component parent = null);
  super.new(name , parent);
//  env = new ("env" , this);
endfunction

function void connect_phase(uvm_phase phase);
  uvm_top.print_topology();
endfunction

function void build_phase(uvm_phase phase);
  super.build_phase(phase);
     env = tc_fifo_env::type_id::create("env",this);
   set_config_int("env.ag1","is_active" ,0);
endfunction

endclass