# Config\_db use

**URL:** <https://verificationacademy.com/forums/t/config-db-use/35012>\
**Category:** UVM\
**Tags:** UVM, UVM-transaction-UVM-object\
**Created:** [September 10, 2018, 9:31am UTC](https://verificationacademy.com/forums/t/config-db-use/35012 "2018-09-10T09:31:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shipra\_s](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@Shipra\_s](https://verificationacademy.com/forums/u/Shipra_s)\
**Post date:** [September 10, 2018, 9:31am UTC](https://verificationacademy.com/forums/t/config-db-use/35012/1 "2018-09-10T09:31:29Z")

</div>

I have 2 questions  
1)what is the difference between uvm\_transaction and uvm\_sequence\_item?

2)How can we access a variable in a uvm\_object which was set using uvm\_config\_db from a uvm\_component, i mean as per the syntax of set method we need to provide absolute or relative path in the uvm component hierarchy but the objects are not the part of this hierarchy?

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [September 10, 2018, 2:42pm UTC](https://verificationacademy.com/forums/t/config-db-use/35012/2 "2018-09-10T14:42:25Z")

</div>

_In reply to [Shipra\_s](https://verificationacademy.com/forums/t/config-db-use/35012):_

(1) class uvm\_sequence\_item extends uvm\_transaction;  
(2) a sequence belongs always to a sequencer, becaus it will be executed on a sequencer. You can use this relationship tp pass data through the config\_db to a sequence. It looks like this

```verilog
uvm_config_db#(<type>)::get(get_sequencer(), "", "<name>", var)

```

---

<div class="post-metadata">

**Author:** ![Shipra\_s](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/73ab20/32.png) [@Shipra\_s](https://verificationacademy.com/forums/u/Shipra_s)\
**Post date:** [September 14, 2018, 6:21am UTC](https://verificationacademy.com/forums/t/config-db-use/35012/3 "2018-09-14T06:21:00Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/config-db-use/35012/2):_

I know that class uvm\_sequence\_item extends uvm\_transaction but i am asking what is difference in the behavior of these two classes?

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [September 14, 2018, 6:47am UTC](https://verificationacademy.com/forums/t/config-db-use/35012/4 "2018-09-14T06:47:45Z")

</div>

_In reply to [Shipra\_s](https://verificationacademy.com/forums/t/config-db-use/35012/3):_

Your question is very vague. You asked what the difference was, and the answer is that uvm\_sequence\_item is extended from uvm\_transaction. Therefore it has all the [additional methods](https://verificationacademy.com/verification-methodology-reference/uvm/docs_1.1d/html/files/seq/uvm_sequence_item-svh.html) that are in the extended class, but not in the base class.
