# How to access a DUT signal from a UVM test case class?

**URL:** <https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099>\
**Category:** UVM\
**Tags:** UVM, reference, DUT, hierarchical\
**Created:** [January 22, 2014, 7:16pm UTC](https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099 "2014-01-22T19:16:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Beeri](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@Beeri](https://verificationacademy.com/forums/u/Beeri)\
**Post date:** [January 24, 2014, 4:23am UTC](https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099/4 "2014-01-24T04:23:10Z")

</div>

Sometimes, in cases you are sure that reuse is irrelevant, one can use the $root.  
For example:  
if ($root.top.u\_dut.sig)  
`uvm\_error (“test”, "signal is active)

Though, I recommend not to use this method, and to stick to interface passing through config\_db.

Beeri

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099)._
