# Hierarchical referencing of an upper hierarchy from a lower hierarchy

**URL:** <https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945>\
**Category:** SystemVerilog\
**Tags:** hierarchical-referencing, absolute-reference, SystemVerilog, hierarchy-reference\
**Created:** [January 19, 2018, 6:00am UTC](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945 "2018-01-19T06:00:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reuben](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/reuben/32/1409_2.png) [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Post date:** [January 19, 2018, 6:00am UTC](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/1 "2018-01-19T06:00:55Z")

</div>

```verilog

// Let's say this is the hierarchy
my_tb_top.my_rtl_top.sub_mod0.sub_mod1.where_i_am

```

I know I can access signals in a hierarchy lower than where\_i\_am using hierarchical referencing.  
And I also believe that I cannot access signals higher than where\_i\_am, except by using absolute referencing (i.e my\_tb\_top.\*\*\*\*).

If I’m correct, then why is that I can still access signals in a higher hierarchy without using an absolute referencing?

```verilog

// Inside where_i_am module, I can do this and the compilation is passing. How come?
logic probe_this;
assign probe_this = sub_mod0.signal_to_probe;

```

---

<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:** [January 20, 2018, 2:14am UTC](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/2 "2018-01-20T02:14:22Z")

</div>

_In reply to [Reuben](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945):_

See section _23.8 Upwards name referencing_ in the 1800-2012 LRM

---

<div class="post-metadata">

**Author:** ![Reuben](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/reuben/32/1409_2.png) [@Reuben](https://verificationacademy.com/forums/u/Reuben)\
**Post date:** [January 20, 2018, 2:57am UTC](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/3 "2018-01-20T02:57:04Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/2):_

> _In reply to [Reuben](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/2):_  
> See section _23.8 Upwards name referencing_ in the 1800-2012 LRM

I see. So my knowledge about hierarchy referencing is already obsolete. It’s good that upward referencing is now possible.

---

<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:** [January 20, 2018, 3:07am UTC](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/4 "2018-01-20T03:07:33Z")

</div>

_In reply to [Reuben](https://verificationacademy.com/forums/t/hierarchical-referencing-of-an-upper-hierarchy-from-a-lower-hierarchy/33945/3):_  
It was always there in Verilog :)
