Hi,
I would like to know the difference between register read() method with set_check_on_read(1) and register mirror() method.
Thanks,
Omkar
Hi,
I would like to know the difference between register read() method with set_check_on_read(1) and register mirror() method.
Thanks,
Omkar
In reply to o-hassan:
Hi,
//Returns the value
reg.read(.status(status), .value(value));
//Does not return the value. Compares read value
//against mirror value when UVM_CHECK is there
reg.mirror(.status(status), .check(UVM_CHECK));
In reply to o-hassan:
Hi,
I would like to know the difference between register read() method with set_check_on_read(1) and register mirror() method.
Thanks,
Omkar
Hey,
The read() with set_check_on_read(1) will Compare the read value with the current mirror value only when the auto-prediction mode is ON.
Thus in explicit prediction (auto-prediction mode OFF) we have to use mirror() to compare the read value with the current mirror value.
Thank you,
Regards,
Muneeb Ulla Shariff