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

<div class="post-metadata">

**Author:** ![Ashith](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/ashith/32/2071_2.png) [@Ashith](https://verificationacademy.com/forums/u/Ashith)\
**Post date:** [October 9, 2017, 5:59pm UTC](https://verificationacademy.com/forums/t/change-mirror-value-of-a-register-field-before-running-uvm-reg-hw-reset-seq/33567/13 "2017-10-09T17:59:11Z")

</div>

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

I think, the issue here is, the DUT is right in having the resetvalue of 3, but the reg\_model is expecting a value of 0 (which is an issue). So as a workaround he is trying to update the mirror value.

But, I think eventually he will need to fix the reg\_model, rather than the working around it.

\*\*Solution:\*\*Now coming to WA, I think rather than predict(), you can use set\_reset(val) I think.

Regards,  
Ashith

---

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