# Is it possible to pass a dynamic array through uvm\_config\_db#(...)::set/get

**URL:** <https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898>\
**Category:** UVM\
**Tags:** UVM, uvm-uvm\_config\_db\
**Created:** [December 8, 2019, 7:08pm UTC](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898 "2019-12-08T19:08:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 9, 2019, 7:04am UTC](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898/2 "2019-12-09T07:04:55Z")

</div>

_In reply to [MichaelP](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898):_

The uvm\_config\_db can pass any data type by value. Complex data type like unpacked arrays need **typedef** , so you would do   
uvm\_config\_db#(my\_type)::get(…);. But if you want to _share_ an array, you need to wrap the array in a class object, then you can use the uvm\_config\_db to share the handle to that object containing the array.

It seems you want to be pushing and popping address, so a queue would be a better array type, and the UVM already provides a queue wrapped in an object, called   
uvm\_queue.

---

_[View the full topic](https://verificationacademy.com/forums/t/is-it-possible-to-pass-a-dynamic-array-through-uvm-config-db-set-get/36898)._
