# Uvm\_config\_db get doesn't get the expected value

**URL:** <https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655>\
**Category:** UVM\
**Tags:** UVM, uvm\_config\_db-get\
**Created:** [December 15, 2016, 1:08pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655 "2016-12-15T13:08:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![arun.dsouza.arm.com](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@arun.dsouza.arm.com](https://verificationacademy.com/forums/u/arun.dsouza.arm.com)\
**Post date:** [December 20, 2016, 5:28pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655/4 "2016-12-20T17:28:35Z")

</div>

Why is your get pointing to null? Shouldn’t it be pointing to “this” instead, like so:

```verilog
uvm_config_db #(int)::get(this, "", "mem_int_max", max);
uvm_config_db #(int)::get(this, "", "mem_int_min", min);

```

Let me know if this works.

Also, you may want to consider putting all these configuration flags inside a configuration class, and then using the config db to point to the class.

---

_[View the full topic](https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655)._
