UVM_RESOURCE_DB SET AND GET

Hi,

I am working on uvm_resource_db method, I set the configuration using set method i.e., uvm_resource_db #(string)::set(this,“”,“friend1”,“Ashwini Joshi”) in component TEST. I want to get the resource db using get method but I have a confusion here whether I will use get_by_type or get_by_name and I am not getting the correct syntax of these methods. Can you please provide the get methods syntax and guide me where I can use get_by_type and get_by_name methods. These two methods are like get methods as uvm_config_db or either Tasks or function. Please help me

Thanks in advance
Harshavardhan

In reply to Harsha vardhan:

The uvm_resource_db has some complexities and shouldn’t generally be used. Is there a reason you are trying to use it instead of the uvm_config_db?

In reply to cgales:

Hi cgales,

I am working on a project in that project they told me to use uvm_resource_db so, I am learning the uvm_resource_db and not able to get the complete information. please help me

Thanks in advance
Harshavardhan

In reply to Harsha vardhan:

Hi,

Its for learning purpose so, if you can point me to any related resource. I’ll be grateful

Thanks in advance
Harshavardhan

In reply to Harsha vardhan:

If your project is using the uvm_resource_db instead of the uvm_config_db, you should advise that the best practice is to use the uvm_config_db.

Failing that, the UVM Reference will help understand the APIs available.