# Change mirror value of a register field before running uvm\_reg\_hw\_reset\_seq

**URL:** <https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567>\
**Category:** UVM\
**Tags:** UVM, predict, uvm\_reg\_hw\_reset\_seq, get\_mirrored\_value\
**Created:** [October 5, 2017, 2:11pm UTC](https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567 "2017-10-05T14:11:04Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [October 9, 2017, 4:48pm UTC](https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567/12 "2017-10-09T16:48:06Z")

</div>

_In reply to [tejastv](https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567/11):_

It is completely confusing what you are saying. Because running a hw\_reset seq overwrites any value in the DUT and the mirror. It does not make sense first to write something to a certain Register and immediately afterwards running a hw\_reset seq.  
If the mirror Returns you 'h0 and #h0 is not the reset value of this Register soemthing is wrong with your Environment. Because the mirror Returns the Default initial value of your Register.  
The hw\_res seq works perfectly. I’m using it in all my projects.

---

_[View the full topic](https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567)._
