# UVM reg field access via name

**URL:** <https://verificationacademy.com/forums/t/uvm-reg-field-access-via-name/33253>\
**Category:** UVM\
**Tags:** UVM, uvm\_reg, UVM\_reg\_field, get\_field\_by\_name, get\_parent\
**Created:** [June 28, 2017, 8:58am UTC](https://verificationacademy.com/forums/t/uvm-reg-field-access-via-name/33253 "2017-06-28T08:58:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tudor\_Timi](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/tudor_timi/32/1897_2.png) [@Tudor\_Timi](https://verificationacademy.com/forums/u/Tudor_Timi)\
**Post date:** [June 28, 2017, 1:27pm UTC](https://verificationacademy.com/forums/t/uvm-reg-field-access-via-name/33253/4 "2017-06-28T13:27:21Z")

</div>

_In reply to [mayurverf](https://verificationacademy.com/forums/t/uvm-reg-field-access-via-name/33253/3):_

All UVM REG classes provide introspection functions to be able to inspect various properties. The API docs should help you, such as this one for [uvm\_reg\_field](https://www.vmmcentral.com/uvm_vmm_ik/files3/reg/uvm_reg_field-svh.html). You can get this information by calling _get\_lsb\_pos()_ and _get\_n\_bits()_ on each field object.

---

_[View the full topic](https://verificationacademy.com/forums/t/uvm-reg-field-access-via-name/33253)._
