# 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:** 16

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [March 22, 2016, 8:45am UTC](https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099/16 "2016-03-22T08:45:27Z")

</div>

_In reply to [Maya Sasidharan](https://verificationacademy.com/forums/t/how-to-access-a-dut-signal-from-a-uvm-test-case-class/29099/15):_

Where do you have your covergroups implemented? In the sequence?  
My practical experience shows this is not a good place having functional coverage there.  
Because a sequence is a transient object which will be generated at a certain time and disappears after completion. You should implement your covergroups and crosses in a UVM component. Thsi is stable at least for a certain test and belongs to the verification environment. From there you can call $get\_coverage easily.

---

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