Config_db - parameters for set/get method

In reply to verif_learner:

Configure successfully only when the full scope matches between get() and set() functioins. full scope is {cnxt, “.”,”inst_name,“.”, field_name}


  //in instance_a, using "fld_name" to configure "my_val" variable value
  int my_val;
  uvm_config_db#(int)::get(this,"","fld_name", my_val);

Configure module_a and module_b with difference value.


  uvm_config_db#(int)::set("", "top.module_a.instance_a", "fld_name", a_val);
  uvm_config_db#(int)::set("", "top.module_b.instance_a", "fld_name", b_val);

Configure both module_a and module_b with same value


  uvm_config_db#(int)::set("", “top.module_*.instance_a”, "fld_name", val);