# What is the difference between uvm\_config\_db and uvm\_resource\_db?

**URL:** <https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-config-db-and-uvm-resource-db/29373>\
**Category:** UVM\
**Tags:** UVM, uvm\_config\
**Created:** [April 18, 2014, 10:10am UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-config-db-and-uvm-resource-db/29373 "2014-04-18T10:10:43Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [May 2, 2016, 11:39am UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-config-db-and-uvm-resource-db/29373/13 "2016-05-02T11:39:10Z")

</div>

_In reply to [dhserfer](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-config-db-and-uvm-resource-db/29373/12):_

The resource\_db commands have only two lookup arguments, the scope and the name. Both are strings.  
The accessor, last argument, is used only for auditting. You do not have to provide an actual argument, because it has a default value.  
The config\_db commands have 3 lookup arguments, the contxt, the scope and the name. The contxt is not a simple string, it is of type uvm\_component. The cntxt and name argument give you more flexibility when defining what you want to set or get. Typical arguments for the contxt are ‘this’, indicating the lookup-path is a relative path from the component where the command was issued and ‘null’ indicating there is nothing above, meaning an absolute path.

---

_[View the full topic](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-config-db-and-uvm-resource-db/29373)._
