class abc extends xyz;
`ovm_component_utils(abc)
int disable_ocp_monitor_flag = 0;
l_mon mon[`NUM_MONS];
l_trk trk;
string inst_name;
function new(string name, ovm_component parent = null);
super.new(name, parent);
endfunction
function void build();
super.build();
if ( get_config_int("disable_lpss_ocp_monitor", disable_ocp_monitor_flag) ) begin
end
//I tried using set_config here also still value did of disable_ocp_monitor_flag does not change
// set_config_int("*", "disable_ocp_monitor_flag", 1);
if(!disable_ocp_monitor_flag) begin
for(int i=0; i<`NUM_MONS; i++) begin
$sformat(inst_name, "mon[%0d]", i);
`ovm_info(get_name(), $psprintf("Creating monitor %s", inst_name), OVM_MEDIUM);
end
//I tried using set_config here also still value did of disable_ocp_monitor_flag does not change
set_config_int("*", "disable_ocp_monitor_flag", 1);
end
endfunction
///I tried using the set_config command inside simple function also.
please explain the various usage of set_config and get_config