Get address from uvm_reg_item

Hello all,
I want to read from a specific register.
How can i get the register address from “uvm_reg_item” class, it’s contains the name of the register as “uvm_reg_field” class and i want to get the physical address.

thanks
Doron.

In reply to Doron_Salama:

Is there a reason you want to know the register address? The purpose of the register layer is to remove the need to know what the address is and let the register layer handle all of the address translation for you.

If you absolutely need the address, the get_address() function should provide you what you need.

In reply to cgales:

Is it possible to run function get_address for a reg_item type variable?

In reply to saraTel:

I missed the _item part and read it as uvm_reg. However, you can use element_kind and element to get the uvm_reg associated with the uvm_reg_item.

In reply to cgales:

Hi,

Can you please provide code to read the address from element_kind of reg_item? It will be helpful for us.

Thanks