Tutorials

Learn More

It is important to understand how methods like read, write, set, get, update, mirror, etc behave for mirrored/ desired value.

Desired value

The desired value is the value that has to be programmed to the DUT by the testbench.

Mirrored value

The mirrored value is the value that captures the DUT register value i.e. current DUT register state. It can get modified in run time based on bus transactions.

RAL Methods

RAL methods
  1. write() method writes the value of the DUT register. It also updates desired and mirrored value
  2. read() method reads the value of the DUT register and updates desired and mirrored value.
  3. mirror() method behaves the same as the read() method, additionally it compares the value with mirrored value if check argument = UVM_CHECK. An error is reported if the mirrored value differs from the read value of the DUT.
  4. get_mirrored_value() gets the mirrored value of the register fields and does not read the actual register in the DUT.
  5. set() method updates desired value and does not write the register of the DUT. To update the desired value to the DUT register, the update() method can be used. 
  6. get() method reads the desired value and does not read the actual register in the DUT.
  7. update() method updates desired value to the register in the DUT if there is a difference between desired and mirrored value.
  8. predict() method updates mirrored and desired value.
  9. reset() method resets mirrored and desired value.