Uvm_resource_db



   uvm_resource_db# (int)::set("enable","*",1,this);

   Success=uvm_resource_db#(int)::read_by_name("enable",get_full_name(),value,this);

   If(success==1’b0)
      `uvm_error("ERROR","cannot locate the resource ");
   
  

in the uvm_resource_db access, I came to know that hierarchy is not required. But in the above example second argument and last argument contribute to the hierarchy. both are contradicting. could you please clarify in the case of uvm_resource_db why we say hierarchy is not required.

In reply to srbeeram:

When using the resource_db you need fianally 2 arguments to do a set:
static function void set(input string scope, input string name, T val, input uvm_object accessor = null).
The 4th argument is used for auditing only.
Please not it is not recommended to use the resouce_db. Use the config_db instead.