What is the difference between uvm_config_db and uvm_resource_db?

In reply to tfitz:

Hi,

This is really helpful to my understading.And i can see the main difference betwee uvm_config_db and uvm_resource_db is “When you want to share object and access it from different location without using the hierarchy you can use uvm_resource_db.” Can you comment on this?

uvm_config_db :: set function parameter

static function void set( uvm_component cntxt,
string inst_name,
string field_name,
T value )

uvm_resource_db :: set function parameter

static function void set( input string scope,
input string name,
T val,
input uvm_object accessor = null )

There is no instance name in resource_db.

-Thanks,
-Sravan.