How to get Mirrored Value?

We can use get() to get Desired Value, then check whether it has been updated if there’re access to fields.

For Mirrored Value, which method we can use to get its value?

Thanks.

get_mirrored_value()

This was added in UVM 1.1a

In reply to dave_59:

In read & write access method, The doubt is:
The base sequence data variable is randomized & written to the selected register (Lets say for 2 registers i.e. reg 1 = 5c330b000499b08f (64 bit by default) & reg 2 = e7ba198b085c2d61 (64 bit by default)).

Then the register handle is shuffled & get() method is used to copy the mirrored value into ref_data.
(For instance: ref_data for reg 1 (8-bit – with “RO” access) is 8f & ref_data for reg 2 (8-bit) is 0 (because of “RO” access))

& at last ref_data is to be compared against the real h/w value via the read() method.
(So now the ref_data is same as above and data is 0 for both the registers)

Here what is the real h/w value, mirrored value and desired value?

Any suggestion and help would be greatly appreciated!