# How to update the mirror value of register

**URL:** <https://verificationacademy.com/forums/t/how-to-update-the-mirror-value-of-register/33242>\
**Category:** UVM\
**Tags:** UVM, Mirrored-values-and-desired-values-in-UVM-RAL, RAL, register-read-mirror-set\_check\_on\_read, mirrored-value\
**Created:** [June 23, 2017, 12:37pm UTC](https://verificationacademy.com/forums/t/how-to-update-the-mirror-value-of-register/33242 "2017-06-23T12:37:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![murali405](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@murali405](https://verificationacademy.com/forums/u/murali405)\
**Post date:** [June 27, 2017, 12:18pm UTC](https://verificationacademy.com/forums/t/how-to-update-the-mirror-value-of-register/33242/7 "2017-06-27T12:18:14Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/how-to-update-the-mirror-value-of-register/33242/6):_

May i know the use of “uvm\_reg\_data\_logic\_t”? How it will resolve my problem? I will get “x” instead of 0 but how can i get the updated mirrored value?

I observed one more thing that if i use predict(rddata) after read() it will get the value because read() returns the output of type uvm\_reg\_data\_t. But i observed that at the same time o read operation the comparison of DUT and mirrored value happened.

May i know in which cases the DUT and mirrored value is compared.

I am not using compare() method and also auto\_predict is disabled. But any idea which enables this comparison at the same time when read happens?

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-update-the-mirror-value-of-register/33242)._
