# \#uvm\_config\_db-get

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

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

---

## [Uvm\_config\_db set and get method](https://verificationacademy.com/forums/t/uvm-config-db-set-and-get-method/41476)

<div class="topic-metadata">

**Author:** [@Boogeyman](https://verificationacademy.com/forums/u/Boogeyman)\
**Replies:** 3\
**Last updated:** [April 7, 2023, 3:53pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-set-and-get-method/41476 "2023-04-07T15:53:54Z")

</div>

Hi All, In below code, i’m setting an uvm\_object in uvm\_config\_db after ranomizing it in base\_test build\_phase. And, in my\_test, i created a child class of that object and override the constraints and then randomized in…

---

## [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…

---

## [How to get configuration from sequence](https://verificationacademy.com/forums/t/how-to-get-configuration-from-sequence/31139)

<div class="topic-metadata">

**Author:** [@LegendCinema](https://verificationacademy.com/forums/u/LegendCinema)\
**Replies:** 7\
**Last updated:** [March 7, 2021, 11:33am UTC](https://verificationacademy.com/forums/t/how-to-get-configuration-from-sequence/31139 "2021-03-07T11:33:01Z")

</div>

Hello, I need to set my configuration using uvm\_config\_db# in test and get it from my sequnce. I’m doing this, but it doesn’t work. How should I properly use set/get methods in this case? class pcc\_config extends uvm\_o…

---

## [Get uvm\_config\_db from uvm\_sequence\_item](https://verificationacademy.com/forums/t/get-uvm-config-db-from-uvm-sequence-item/38342)

<div class="topic-metadata">

**Author:** [@Doron\_Salama](https://verificationacademy.com/forums/u/Doron_Salama)\
**Replies:** 7\
**Last updated:** [November 16, 2020, 7:10pm UTC](https://verificationacademy.com/forums/t/get-uvm-config-db-from-uvm-sequence-item/38342 "2020-11-16T19:10:57Z")

</div>

Hi All, I have to pass a variable from the ENV via uvm\_config\_db to an agent’s item(uvm\_sequence\_item). Since the item is a uvm\_object, when i am using the uvm\_config\_db get\_method i got the following error: “Illegal …

---

## [Can we set a config db in sequence body() method and get it in scoreboard?](https://verificationacademy.com/forums/t/can-we-set-a-config-db-in-sequence-body-method-and-get-it-in-scoreboard/37424)

<div class="topic-metadata">

**Author:** [@Subhra\_Bera](https://verificationacademy.com/forums/u/Subhra_Bera)\
**Replies:** 4\
**Last updated:** [April 12, 2020, 6:09pm UTC](https://verificationacademy.com/forums/t/can-we-set-a-config-db-in-sequence-body-method-and-get-it-in-scoreboard/37424 "2020-04-12T18:09:09Z")

</div>

Can we set a config db in sequence body() method and get it in scoreboard? I know that we have to set config db in build phase. But is it possible?

---

## [Issue with uvm\_config\_db set and get](https://verificationacademy.com/forums/t/issue-with-uvm-config-db-set-and-get/35287)

<div class="topic-metadata">

**Author:** [@ccelie](https://verificationacademy.com/forums/u/ccelie)\
**Replies:** 11\
**Last updated:** [November 7, 2018, 3:27pm UTC](https://verificationacademy.com/forums/t/issue-with-uvm-config-db-set-and-get/35287 "2018-11-07T15:27:43Z")

</div>

Hello everyone, I tried to write a testbench using configuration objects, but I am facing an error when I get the object in top\_spi\_tb\_env. I read a lot of forum but I didn’t find the solution of this error. I activat…

---

## [Uvm\_config\_db set and get error](https://verificationacademy.com/forums/t/uvm-config-db-set-and-get-error/34367)

<div class="topic-metadata">

**Author:** [@manasa-n](https://verificationacademy.com/forums/u/manasa-n)\
**Replies:** 4\
**Last updated:** [April 25, 2018, 4:52am UTC](https://verificationacademy.com/forums/t/uvm-config-db-set-and-get-error/34367 "2018-04-25T04:52:11Z")

</div>

Hi, I have created a environment config db as below: --------------------------------------------------------------- class env\_cfg extends uvm\_object; \`uvm\_object\_utils(env\_cfg) rand bit slave\_address; virtual s…

---

## [Implementation issue: uvm\_config\_db method wait\_modified](https://verificationacademy.com/forums/t/implementation-issue-uvm-config-db-method-wait-modified/34031)

<div class="topic-metadata">

**Author:** [@ViralDoshi2013](https://verificationacademy.com/forums/u/ViralDoshi2013)\
**Replies:** 2\
**Last updated:** [February 6, 2018, 4:21pm UTC](https://verificationacademy.com/forums/t/implementation-issue-uvm-config-db-method-wait-modified/34031 "2018-02-06T16:21:45Z")

</div>

Q. Why doesn’t the control come out of wait\_modifed method? interface chip\_intf; logic \[7:0\] lvds\_clk\_p; wire \[7:0\] gpio; logic rowsel0, rowsel256; logic precharge0, precharge256; reg …

---

## [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.

---

## [Uvm\_config\_db get doesn't get the expected value](https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 5\
**Last updated:** [December 20, 2016, 8:30pm UTC](https://verificationacademy.com/forums/t/uvm-config-db-get-doesnt-get-the-expected-value/32655 "2016-12-20T20:30:47Z")

</div>

I set the following calue in the build of the test: class tx\_test extends test\_base; function void build\_phase(uvm\_phase phase); super.build\_phase(phase); uvm\_config\_db #(int) :: set (this, "\*", "mem\_int\_…

---

## [Uvm\_config\_db get method is failing when null is passed to seq.start() method](https://verificationacademy.com/forums/t/uvm-config-db-get-method-is-failing-when-null-is-passed-to-seq-start-method/32108)

<div class="topic-metadata">

**Author:** [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Replies:** 7\
**Last updated:** [August 4, 2016, 8:33am UTC](https://verificationacademy.com/forums/t/uvm-config-db-get-method-is-failing-when-null-is-passed-to-seq-start-method/32108 "2016-08-04T08:33:37Z")

</div>

I’m studying RAL and I experienced this situation wherein the uvm\_config\_db get method is failing when I use null handle for the sequencer in the seq.start() method. The uvm\_config\_db get method is in the body() task of…

---

## [Difference between set\_config\_object and uvm\_config\_db #(...)::set();](https://verificationacademy.com/forums/t/difference-between-set-config-object-and-uvm-config-db-set/30390)

<div class="topic-metadata">

**Author:** [@anilhr](https://verificationacademy.com/forums/u/anilhr)\
**Replies:** 2\
**Last updated:** [July 4, 2016, 10:19am UTC](https://verificationacademy.com/forums/t/difference-between-set-config-object-and-uvm-config-db-set/30390 "2016-07-04T10:19:33Z")

</div>

Hi, If i set an handle to some object or an interface using set\_config\_\* , can i retrieve it using uvm\_config\_db #(…)::get(); or i must use get\_config\_object?. And also is converse of it is true?? or is their real diff…

---

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

<div class="topic-metadata">

**Author:** [@raja.kuraku](https://verificationacademy.com/forums/u/raja.kuraku)\
**Replies:** 12\
**Last updated:** [May 4, 2015, 11:29am UTC](https://verificationacademy.com/forums/t/uvm-config-db/30594 "2015-05-04T11:29:01Z")

</div>

Can i get virtual interface directly to my Driver & Monitor Class from TB\_TOP? Or i need to get in test and after setting from test. Thanks, Raja Sekhar
