# Why use uvm\_config\_db to pass vif or configuration object is recommended?

**URL:** <https://verificationacademy.com/forums/t/why-use-uvm-config-db-to-pass-vif-or-configuration-object-is-recommended/30310>\
**Category:** UVM\
**Tags:** UVM, uvm\_config\_db\
**Created:** [January 23, 2015, 1:58am UTC](https://verificationacademy.com/forums/t/why-use-uvm-config-db-to-pass-vif-or-configuration-object-is-recommended/30310 "2015-01-23T01:58:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [February 2, 2015, 12:29pm UTC](https://verificationacademy.com/forums/t/why-use-uvm-config-db-to-pass-vif-or-configuration-object-is-recommended/30310/4 "2015-02-02T12:29:22Z")

</div>

Every agent should have a configuration object that encapsulates all of the parameters that can be modified to control the agent’s behavior. Examples of this include the notion of the agent being ACTIVE or PASSIVE. Included in the configuration object should be the vif handle.

The agent configuration objects should be created and configured at the test level, giving the user the ability to control the agent behavior on a per-test basis. These configuration objects should then be passed to the respective agent using the uvm\_config\_db().

Using the uvm\_config\_db() enables a single call to configure the agent instead of using many different calls to set the various agent parameters.

---

_[View the full topic](https://verificationacademy.com/forums/t/why-use-uvm-config-db-to-pass-vif-or-configuration-object-is-recommended/30310)._
