What is the main difference between uvm_config_db and uvm_resource_db?

Hi all,

What is the main difference between uvm_config_db and uvm_resource_db? .
Both use set() and get() methods to set/get values from a string in the uvm_resource pool.

Thanks in advance.

In reply to georgean:

Hi,

uvm_config_db is a convenience layer built on top of uvm_resource_db, but that convenience is very important. In particular, uvm_resource_db uses a “last write wins” approach. The uvm_config_db, on the other hand, looks at where things are in the hierarchy up through end_of_elaboration, so “parent wins.” Once you start start_of_simulation, the config_db becomes “last write wins.”

You can get the answer of your question in below link:

https://verificationacademy.com/forums/uvm/what-difference-between-uvmconfigdb-and-uvmresourcedb

Please let me know if you need more help.

Regards,
Dhaval