Uvm Ral

Hai I am trying to understand set_check_on_read(1) in Ral . If iam enabled this means how it will check and How we can ensure this function is checking true or false . can any one explain with code how to use this in correct manner .

thanks in advancee .

In reply to Om Ganesh B k:

Please see the UVM Reference Manual. There you can read:

function void set_check_on_read(bit on = 1)

Sets the check-on-read mode for his map and all of its submaps.

When on is TRUE, the register model will automatically check any value read back from a register or field against the current value in its mirror and report any discrepancy. This effectively combines the functionality of the uvm_reg::read() and <uvm_reg::mirror(UVM_CHECK)> method. This mode is useful when the register model is used passively.

When on is FALSE, no check is made against the mirrored value.

At the end of the read operation, the mirror value is updated based on the value that was read reguardless of this mode setting.