# Reg Model Mirrored value doesn't change

**URL:** <https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [July 8, 2023, 5:26am UTC](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906 "2023-07-08T05:26:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renjie\_Lu](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/8c91f0/32.png) [@Renjie\_Lu](https://verificationacademy.com/forums/u/Renjie_Lu)\
**Post date:** [July 8, 2023, 5:26am UTC](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906/1 "2023-07-08T05:26:30Z")

</div>

Hi,

I have a simple reg model created in my UVM enironment.  
When I do reg\_a.write() or reg\_a.read(), I can see the corresponding behavior in the waveform, which seems to be fine.  
However I notice the mirrored value never get updated, which is not expected per my understanding.  
I have tried front door write(), read(), set()+update(), written data got read back as expected.  
But none of these methods would change the mirrored value, which is always 0.  
The target register is a general purpose RW type register, nothing special.  
What could be wrong in such case?

Thank you very much!

---

<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:** [July 8, 2023, 6:10am UTC](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906/2 "2023-07-08T06:10:07Z")

</div>

_In reply to [Renjie Lu](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906):_

Are you sure your reg\_model is correct and also the inegration.  
Could you please share some code?  
Best would be to have it on [Edaplayground.com](http://Edaplayground.com)

---

<div class="post-metadata">

**Author:** ![Renjie\_Lu](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/8c91f0/32.png) [@Renjie\_Lu](https://verificationacademy.com/forums/u/Renjie_Lu)\
**Post date:** [July 8, 2023, 7:25am UTC](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906/3 "2023-07-08T07:25:37Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/reg-model-mirrored-value-doesnt-change/41906/2):_

Thank you for your response.  
Looks like I have figured out the problem.  
I haven’t implemented the explicit predictor, therefore I need to manually do reg\_model.default\_map.set\_auto\_predict(1) in order to do the automatic predict, which is OFF by default in UVM1.2.

With this change I can see the mirror value starts to change.
