# Uvm\_config\_db set in the below example correct?

**URL:** <https://verificationacademy.com/forums/t/uvm-config-db-set-in-the-below-example-correct/51321>\
**Category:** UVM\
**Created:** [August 21, 2025, 5:58pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-set-in-the-below-example-correct/51321 "2025-08-21T17:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabh](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@rabh](https://verificationacademy.com/forums/u/rabh)\
**Post date:** [August 21, 2025, 5:58pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-set-in-the-below-example-correct/51321/1 "2025-08-21T17:58:33Z")

</div>

I am getting a message as below when I use +UVM\_CONFIG\_DB\_TRACE:

_UVM\_INFO @ 0: reporter [CFGDB/SET] Configuration 'uvm\_test\_top.top\_env.sub\_env.axi\_system\_env\_h_.cfg’ (type class amba\_axi\_uvm\_pkg::amba\_axi\_system\_configuration) set by uvm\_test\_top.top\_env.sub\_env = (class amba\_axi\_uvm\_pkg::amba\_axi\_system\_configuration) ?\*

**My question is whether the uvm\_config\_db set has been done correctly? I see the question mark at the end of the above print which is causing a doubt or this question mark at the end has no significance?**  
Also I do get a FATAL\_ERROR stating :  
_UVM\_FATAL @ 0: uvm\_test\_top.top\_env.sub\_env.axi\_system\_env\_h [end\_of\_elaboration\_phase] Invalid configuration passed. Please pass a valid amba\_axi\_system\_configuration object or derived object_

In my sub\_env I am declaring the vip configuration and in build\_phase doing a uvm\_config\_db set call.

```auto
class custom_amba_axi_system_configuration extends amba_axi_system_configuration;
//----
//---
endclass
//----------------------------------
class sub_env extends top_env;
axi_system_env axi_system_env_h;
custom_amba_axi_system_configuration cfg;
//Build phase
cfg = custom_amba_axi_system_configuration :: type_id:: create("cfg");
uvm_config_db#(amba_axi_system_configuration)::set(this, "axi_system_env_h*", "cfg",cfg);
axi_system_env_h = axi_system_env :: type_id :: create("axi_system_env_h", this);

endclass

```

---

<div class="post-metadata">

**Author:** ![sl\_jesse](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sl\_jesse](https://verificationacademy.com/forums/u/sl_jesse)\
**Post date:** [June 15, 2026, 6:38pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-set-in-the-below-example-correct/51321/2 "2026-06-15T18:38:11Z")

</div>

The type shoud be consistent between the parameter in parenthesis and the passed object type.
