class top_env extends uvm_env;
// ------------------------
// UVM Component Utility macro
// ------------------------
`uvm_component_utils_begin(top_env)
`uvm_field_object(cfg, UVM_ALL_ON)
`uvm_component_utils_end
// ------------------------
// SOC System Configuration
// ------------------------
configuration_obj cfg;
.......
endclass: top_env
class configuration_obj extends uvm_object;
`uvm_object_utils_begin (configuration_obj)
`uvm_field_string(temp_name, UVM_ALL_ON)
`uvm_object_utils_end
string temp_name;
/** Constructor */
function new (string name = "configuration_obj");
super.new(name);
endfunction
endclass: configuration_obj
In the above code I want to set the value of temp_name string using command line processor method. Is there any way I can set this value? I tried the following methods but nothing is helping me.
+uvm_set_config_string=uvm_test_top.top_uvm_env.cfg,temp_name,SAURABH
+uvm_set_config_string=uvm_test_top.top_uvm_env..*,temp_name,SAURABH
+uvm_set_config_string=uvm_test_top.top_uvm_env.*,temp_name,SAURABH
Thanks,
Saurabh