# \#uvm-uvm\_config\_db

**URL:** https://verificationacademy.com/forums/tag/uvm-uvm-config-db/4388.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Agent instance becoming null during runtime](https://verificationacademy.com/forums/t/agent-instance-becoming-null-during-runtime/48250)

<div class="topic-metadata">

**Author:** [@Mahantha\_Deeksha\_S\_B](https://verificationacademy.com/forums/u/Mahantha_Deeksha_S_B)\
**Replies:** 2\
**Last updated:** [September 10, 2024, 12:48pm UTC](https://verificationacademy.com/forums/t/agent-instance-becoming-null-during-runtime/48250 "2024-09-10T12:48:51Z")

</div>

Hai All, Iam setting and agent instance in env like this agent agt; sys\_env env; scoreboard sco; sco = scoreboard :: type\_id :: create("sco",this); env = sys\_env :: type\_id :: create("sys\_env",this); agt = env.agt; uvm…

---

## [Uvm\_config\_db and the mysterious build phase group](https://verificationacademy.com/forums/t/uvm-config-db-and-the-mysterious-build-phase-group/41762)

<div class="topic-metadata">

**Author:** [@wajahatriaz](https://verificationacademy.com/forums/u/wajahatriaz)\
**Replies:** 7\
**Last updated:** [June 7, 2023, 6:01am UTC](https://verificationacademy.com/forums/t/uvm-config-db-and-the-mysterious-build-phase-group/41762 "2023-06-07T06:01:24Z")

</div>

I have various issues with the following code example. I have explicitly used the methods of uvm\_config\_db class in separate phases because the get method blocks and the $display statements after it are not executed. t…

---

## [Using Set\_inst\_override\_by\_type() override uvm\_object](https://verificationacademy.com/forums/t/using-set-inst-override-by-type-override-uvm-object/41728)

<div class="topic-metadata">

**Author:** [@Kashyap\_14](https://verificationacademy.com/forums/u/Kashyap_14)\
**Replies:** 1\
**Last updated:** [June 1, 2023, 11:45am UTC](https://verificationacademy.com/forums/t/using-set-inst-override-by-type-override-uvm-object/41728 "2023-06-01T11:45:08Z")

</div>

I have a requirement which need to override a uvm\_object in uvm based test-bench. \`include "uvm\_macros.svh" import uvm\_pkg::\*; class config\_0 extends uvm\_object; int number\_of\_axi = 0; \`uvm\_object\_utils(config\_0) …

---

## [Can an object instantiated after config\_db set()?](https://verificationacademy.com/forums/t/can-an-object-instantiated-after-config-db-set/41541)

<div class="topic-metadata">

**Author:** [@Charlesjjj](https://verificationacademy.com/forums/u/Charlesjjj)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 3:27pm UTC](https://verificationacademy.com/forums/t/can-an-object-instantiated-after-config-db-set/41541 "2023-04-20T15:27:02Z")

</div>

hi, can someone tell me if i want to send an object via config\_db, does is matter if i new() it before or after config\_db set()? When i ran my code. i found if i do config\_db set(), then do new(), then do config\_db get…

---

## [Unable to get the config from config\_db](https://verificationacademy.com/forums/t/unable-to-get-the-config-from-config-db/41288)

<div class="topic-metadata">

**Author:** [@UVM\_Xplorer](https://verificationacademy.com/forums/u/UVM_Xplorer)\
**Replies:** 2\
**Last updated:** [February 17, 2023, 9:51pm UTC](https://verificationacademy.com/forums/t/unable-to-get-the-config-from-config-db/41288 "2023-02-17T21:51:52Z")

</div>

Hi, I am trying to set the config from the top module and trying to retrieve it in env component. But, I am getting the following error: \*UVM\_ERROR Env.sv(30) @ 0: uvm\_test\_top.m\_env \[Env\] m\_config xmsim: E,TRNULLID…

---

## [UVM configuration NULL pointer dereference Problem](https://verificationacademy.com/forums/t/uvm-configuration-null-pointer-dereference-problem/40861)

<div class="topic-metadata">

**Author:** [@UVM\_LOVE](https://verificationacademy.com/forums/u/UVM_LOVE)\
**Replies:** 11\
**Last updated:** [September 22, 2022, 1:41pm UTC](https://verificationacademy.com/forums/t/uvm-configuration-null-pointer-dereference-problem/40861 "2022-09-22T13:41:02Z")

</div>

Hi, I’m trying to understand uvm\_config\_db() behavior, so I added it into my simple UVM example which has been in No Problem for simulation. But I got NULL pointer dereference. error after run simulation with uvm\_confi…

---

## [Passing a parameterized virtual interface (or any class/object) through a config object](https://verificationacademy.com/forums/t/passing-a-parameterized-virtual-interface-or-any-class-object-through-a-config-object/40643)

<div class="topic-metadata">

**Author:** [@renvillph](https://verificationacademy.com/forums/u/renvillph)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 9:21am UTC](https://verificationacademy.com/forums/t/passing-a-parameterized-virtual-interface-or-any-class-object-through-a-config-object/40643 "2022-07-14T09:21:37Z")

</div>

I would like to pass a virtual interface from the base test down to the env level through the use of a config object. The interface is parameterized and I would like to override it with a new value in the base test. Also…

---

## [UVM\_RESOURCE\_DB SET AND GET](https://verificationacademy.com/forums/t/uvm-resource-db-set-and-get/40635)

<div class="topic-metadata">

**Author:** [@Harsha\_vardhan](https://verificationacademy.com/forums/u/Harsha_vardhan)\
**Replies:** 4\
**Last updated:** [July 13, 2022, 1:25pm UTC](https://verificationacademy.com/forums/t/uvm-resource-db-set-and-get/40635 "2022-07-13T13:25:26Z")

</div>

Hi, I am working on uvm\_resource\_db method, I set the configuration using set method i.e., uvm\_resource\_db #(string)::set(this,“”,“friend1”,“Ashwini Joshi”) in component TEST. I want to get the resource db using get met…

---

## [uvm\_config\_db#(T)::set(,string inst,,) string argument context with respect to new/create name argument](https://verificationacademy.com/forums/t/uvm-config-db-t-set-string-inst-string-argument-context-with-respect-to-new-create-name-argument/40305)

<div class="topic-metadata">

**Author:** [@jkpatel](https://verificationacademy.com/forums/u/jkpatel)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 9:18am UTC](https://verificationacademy.com/forums/t/uvm-config-db-t-set-string-inst-string-argument-context-with-respect-to-new-create-name-argument/40305 "2022-04-24T09:18:42Z")

</div>

uvm\_config\_db#(T)::set(top.env,"agent",“var”,var)\* Above line decides scope of getting var at anywhere inside agent and any sub instances of agents. Let’s say by mistakenly we have used different string while creating …

---

## [uvm\_config\_db#(T) labels uniqness within same scope](https://verificationacademy.com/forums/t/uvm-config-db-t-labels-uniqness-within-same-scope/40304)

<div class="topic-metadata">

**Author:** [@jkpatel](https://verificationacademy.com/forums/u/jkpatel)\
**Replies:** 2\
**Last updated:** [April 23, 2022, 12:09pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-t-labels-uniqness-within-same-scope/40304 "2022-04-23T12:09:46Z")

</div>

uvm\_config\_db#(TYPE)::set(this, “\*”, “label”, value) Let’s say , we are using config db within same scope of different type with same label. Case1 : uvm\_config\_db#(int)::set(uvm\_root::get(),““,“counter”,cnt); Case2 : …

---

## [Can I use uvm\_config\_db initial begin?](https://verificationacademy.com/forums/t/can-i-use-uvm-config-db-initial-begin/40076)

<div class="topic-metadata">

**Author:** [@UVM\_LOVE](https://verificationacademy.com/forums/u/UVM_LOVE)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 8:06am UTC](https://verificationacademy.com/forums/t/can-i-use-uvm-config-db-initial-begin/40076 "2022-02-19T08:06:14Z")

</div>

I’m trying to coneect interface with uvm\_config\_db set/get in intial block. But Compiler said that Component does not refer to a scope. I didn’t get it because I set uvm\_config\_db at initial begin, why does it say it d…

---

## [Scheduling in build\_phase()](https://verificationacademy.com/forums/t/scheduling-in-build-phase/39540)

<div class="topic-metadata">

**Author:** [@anacharya](https://verificationacademy.com/forums/u/anacharya)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 6:41pm UTC](https://verificationacademy.com/forums/t/scheduling-in-build-phase/39540 "2021-09-07T18:41:24Z")

</div>

I am having the following code inside env::build\_phase() myagent = master\_agent::type\_id::create(“myagent”, this); uvm\_config\_db#(master\_agent\_sequencer)::set(this, “virt\_seqr”, “master\_sequencer”, myagent.sequencer); …

---

## [Access a queue in base\_test from a sequence](https://verificationacademy.com/forums/t/access-a-queue-in-base-test-from-a-sequence/39434)

<div class="topic-metadata">

**Author:** [@negoyal](https://verificationacademy.com/forums/u/negoyal)\
**Replies:** 7\
**Last updated:** [August 18, 2021, 9:12pm UTC](https://verificationacademy.com/forums/t/access-a-queue-in-base-test-from-a-sequence/39434 "2021-08-18T21:12:56Z")

</div>

Hi, I have a uvm\_tlm\_fifo of transactions in my base\_test that I want to be accessed from my base\_sequence. Don’t worry about objections or when will the sequence start or stop. I just want my sequence task body to be a…

---

## [Config\_db From Component To an Object not getting set](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257)

<div class="topic-metadata">

**Author:** [@desperadorocks](https://verificationacademy.com/forums/u/desperadorocks)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 3:53pm UTC](https://verificationacademy.com/forums/t/config-db-from-component-to-an-object-not-getting-set/39257 "2021-07-02T15:53:06Z")

</div>

Hello ! I have a int variable which I get inside an block environment configuration object. This basically gets the number of agents to create. if (!uvm\_config\_db#(int)::get(null, get\_full\_name(), "num\_agt", num\_agt)…

---

## [Uvm\_config\_db get usage](https://verificationacademy.com/forums/t/uvm-config-db-get-usage/37930)

<div class="topic-metadata">

**Author:** [@PavanAcharyaG](https://verificationacademy.com/forums/u/PavanAcharyaG)\
**Replies:** 1\
**Last updated:** [August 10, 2020, 12:15pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-get-usage/37930 "2020-08-10T12:15:47Z")

</div>

Hi, Can the cfg be set in the lower hierarchy and get at hierarchy? For ex: //check\_env.sv (build phase) uvm\_config\_db#(cfg\_check)::set(uvm\_root::get(), “\*”, “cfg\_h”, cfg\_h); //check\_test.sv (build phase) uvm\_confi…

---

## [How can i do "get" at two different paths with same key](https://verificationacademy.com/forums/t/how-can-i-do-get-at-two-different-paths-with-same-key/37365)

<div class="topic-metadata">

**Author:** [@TarunGupta](https://verificationacademy.com/forums/u/TarunGupta)\
**Replies:** 1\
**Last updated:** [March 28, 2020, 2:58am UTC](https://verificationacademy.com/forums/t/how-can-i-do-get-at-two-different-paths-with-same-key/37365 "2020-03-28T02:58:53Z")

</div>

hi , i am having two instances of a file say A so A1 and A2 are two objects that are created. now i do set of a variable in a file say B for both the instances A1 and A2. i use uvm\_config\_db, do the set with same key, bu…

---

## [Is it possible to pass a dynamic array through uvm\_config\_db#(...)::set/get](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898)

<div class="topic-metadata">

**Author:** [@MichaelP](https://verificationacademy.com/forums/u/MichaelP)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 6:24pm UTC](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898 "2019-12-15T18:24:26Z")

</div>

Hi, I looking for a syntax or code example which is passing a dynamic array/queue using the uvm\_config\_db. For example, in my “generator component”, I create different kinds of packets to be sent into my DUT. When one…

---

## [Passing interface directly to driver in UVM?](https://verificationacademy.com/forums/t/passing-interface-directly-to-driver-in-uvm/36471)

<div class="topic-metadata">

**Author:** [@Sv-hustler](https://verificationacademy.com/forums/u/Sv-hustler)\
**Replies:** 5\
**Last updated:** [September 4, 2019, 10:24am UTC](https://verificationacademy.com/forums/t/passing-interface-directly-to-driver-in-uvm/36471 "2019-09-04T10:24:18Z")

</div>

How to pass interface directly to driver without sending them through config\_db from top?

---

## [Why uvm\_config\_db needs m\_rsc?](https://verificationacademy.com/forums/t/why-uvm-config-db-needs-m-rsc/35082)

<div class="topic-metadata">

**Author:** [@eda2k4](https://verificationacademy.com/forums/u/eda2k4)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 5:53am UTC](https://verificationacademy.com/forums/t/why-uvm-config-db-needs-m-rsc/35082 "2018-09-25T05:53:04Z")

</div>

Even though uvm\_config\_db extended from uvm\_resource\_db, it is mostly built on top of uvm\_resource\_pool directly. I’m confused about one data member in uvm\_config\_db, m\_rsc. It is declared as a uvm\_pool. static uvm\_poo…

---

## [A Better Way For Accessing And Maintaining Configs At Multi-Level Environment?](https://verificationacademy.com/forums/t/a-better-way-for-accessing-and-maintaining-configs-at-multi-level-environment/35028)

<div class="topic-metadata">

**Author:** [@desperadorocks](https://verificationacademy.com/forums/u/desperadorocks)\
**Replies:** 2\
**Last updated:** [September 15, 2018, 3:19pm UTC](https://verificationacademy.com/forums/t/a-better-way-for-accessing-and-maintaining-configs-at-multi-level-environment/35028 "2018-09-15T15:19:29Z")

</div>

Hello All, Have a scenario where I wanted to create muti-level environment and wanted a cleaner/better way of sharing the configs using the uvm\_config\_db. a. Say have a top level environment eatable\_env and a top level…

---

## [Uvm\_confg\_db](https://verificationacademy.com/forums/t/uvm-confg-db/33089)

<div class="topic-metadata">

**Author:** [@jayeshranjan](https://verificationacademy.com/forums/u/jayeshranjan)\
**Replies:** 2\
**Last updated:** [April 28, 2017, 6:28pm UTC](https://verificationacademy.com/forums/t/uvm-confg-db/33089 "2017-04-28T18:28:58Z")

</div>

How to set a integer variable from test using uvm\_confg\_db method, which i can access in base class of default sequence in the environment.

---

## [The effect on the simulation performance in case using set and get uvm\_config\_db for individual values](https://verificationacademy.com/forums/t/the-effect-on-the-simulation-performance-in-case-using-set-and-get-uvm-config-db-for-individual-values/32740)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 1\
**Last updated:** [January 11, 2017, 5:01pm UTC](https://verificationacademy.com/forums/t/the-effect-on-the-simulation-performance-in-case-using-set-and-get-uvm-config-db-for-individual-values/32740 "2017-01-11T17:01:55Z")

</div>

I configure the following in the test file: uvm\_config\_db #(int) :: set (uvm\_root :: get(), "\*", "data\_xi\_min", 5); uvm\_config\_db #(int) :: set (uvm\_root :: get(), "\*", "data\_xi\_max", 12); And do get in one…

---

## [How to set uvm\_config\_db for multiple instances.?](https://verificationacademy.com/forums/t/how-to-set-uvm-config-db-for-multiple-instances/32460)

<div class="topic-metadata">

**Author:** [@AparnaElango](https://verificationacademy.com/forums/u/AparnaElango)\
**Replies:** 4\
**Last updated:** [October 31, 2016, 11:09pm UTC](https://verificationacademy.com/forums/t/how-to-set-uvm-config-db-for-multiple-instances/32460 "2016-10-31T23:09:10Z")

</div>

Hello, I am following this link for creating an uvm\_config\_db set method Issue with putting an array of interface into uvm\_config\_db | Verification Academy Code : parameter int myparams\[4\] = '{0,1,2,3} for (genvar i …

---

## [Receiving DUT internal signals into test through uvm\_config\_db](https://verificationacademy.com/forums/t/receiving-dut-internal-signals-into-test-through-uvm-config-db/30586)

<div class="topic-metadata">

**Author:** [@JeevanGarlapati](https://verificationacademy.com/forums/u/JeevanGarlapati)\
**Replies:** 1\
**Last updated:** [April 28, 2015, 4:30pm UTC](https://verificationacademy.com/forums/t/receiving-dut-internal-signals-into-test-through-uvm-config-db/30586 "2015-04-28T16:30:00Z")

</div>

Hi I am facing an issue with uvm\_config\_db and need a clarification regarding the same. I have a requirement of probing the RTL and checking few signals in my test. I have assigned the signals to a tb bit and sent the b…

---

## [Question about uvm\_config\_db](https://verificationacademy.com/forums/t/question-about-uvm-config-db/29090)

<div class="topic-metadata">

**Author:** [@ranjith\_palavarapu](https://verificationacademy.com/forums/u/ranjith_palavarapu)\
**Replies:** 0\
**Last updated:** [January 20, 2014, 6:19pm UTC](https://verificationacademy.com/forums/t/question-about-uvm-config-db/29090 "2014-01-20T18:19:42Z")

</div>

I have two doubts about the uvm\_config\_db when i have the following line in my code uvm\_resource\_options::turn\_off\_auditing(); and have uvm\_config\_db::set(…); the uvm\_config\_db::get() is returning a null, looked at the…
