# Config\_db From Component To an Object not getting set

**URL:** <https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257>\
**Category:** UVM\
**Tags:** UVM, uvm-uvm\_config\_db\
**Created:** [July 2, 2021, 12:20am UTC](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257 "2021-07-02T00:20:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bdreku](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/bdreku/32/4520_2.png) [@bdreku](https://verificationacademy.com/forums/u/bdreku)\
**Post date:** [July 2, 2021, 3:31am UTC](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257/2 "2021-07-02T03:31:26Z")

</div>

_In reply to [desperadorocks](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257):_  
While setting the num\_agt, try to replace the context “uvm\_root::get()” with “this” as below.

```verilog
uvm_config_db#(int)::set(this, "top_env_cfg.block_env_cfg", "num_agt", 2);

```

---

_[View the full topic](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257)._
