# How to Get the Address of a varaible in SV?

**URL:** <https://verificationacademy.com/forums/t/how-to-get-the-address-of-a-varaible-in-sv/29576>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Address, SV-DPI\
**Created:** [June 11, 2014, 6:58am UTC](https://verificationacademy.com/forums/t/how-to-get-the-address-of-a-varaible-in-sv/29576 "2014-06-11T06:58:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![kalyan14310](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@kalyan14310](https://verificationacademy.com/forums/u/kalyan14310)\
**Post date:** [June 12, 2014, 4:37am UTC](https://verificationacademy.com/forums/t/how-to-get-the-address-of-a-varaible-in-sv/29576/7 "2014-06-12T04:37:48Z")

</div>

_In reply to [Naven8](https://verificationacademy.com/forums/t/how-to-get-the-address-of-a-varaible-in-sv/29576/6):_

Hi Naven8,

Thanks for the quick reply. I am currently working on HOST CONTROLLER INTERFACE for USB-3.0. In that Project I have a requirement like this:  
I have to construct TRANSFER RINGS. Basically a Ring is a circular queue data structure. Ring Size is not fixed. So for that I am using variable like this:  
bit [31:0] RING [$];  
And the problem is, I should write the base address/ starting address of the RING variable in another Register DEQUEUE POINTER field. The Register was implemented using UVM Register Model. How can we address this problem?

Thanks & Regards  
Naveen

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-get-the-address-of-a-varaible-in-sv/29576)._
