# UVM RAL and volatile fields X prediction

**URL:** <https://verificationacademy.com/forums/t/uvm-ral-and-volatile-fields-x-prediction/39681>\
**Category:** UVM\
**Tags:** UVM, RAL-UVM\
**Created:** [October 11, 2021, 10:03pm UTC](https://verificationacademy.com/forums/t/uvm-ral-and-volatile-fields-x-prediction/39681 "2021-10-11T22:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rsignori92](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/3da27b/32.png) [@Rsignori92](https://verificationacademy.com/forums/u/Rsignori92)\
**Post date:** [October 12, 2021, 3:18pm UTC](https://verificationacademy.com/forums/t/uvm-ral-and-volatile-fields-x-prediction/39681/2 "2021-10-12T15:18:13Z")

</div>

Hey so basically the m\_volitile generally speaking is only and only an indication of the volatility of such register and does not change the comparison/operation behavior at least in UVM1.1d.

If you have such registers in your design (status register, HW written only register or shadow register) then the best approach I could suggest is to call the predict on your own by modeling how those registers should be predicted.

Alternatively, you can add a specific call back to those registers (if they behave in the same way) so that the post predict will be called hence you will have to compare the mirrored value between RAL and RTL.

This is the best approach I come up wit in my testbench since I have such tricky registers in RTL.

Regards

---

_[View the full topic](https://verificationacademy.com/forums/t/uvm-ral-and-volatile-fields-x-prediction/39681)._
