Doing a read on "wo" register

Hi All,

I am doing a read on write only register. In that case am I getting the below error.

Error : UVM/REG/WRITEONLY Abcd is write only. Cannot call read() method.
Here My wo register name is Abcd.

Is there no way to checking a negative scenario or if possible to mask this error.

I am using UVM version 1.2

In reply to Rajaraman Rak7:

It depends what your objective is. If you want to see what was written to a WOO register you can use the backdoor access to do this. Best is to use a peek.The peek is a read only for backdoor.
If you want to exclude the WO register from read you can employ the get_rights function on all registers and exclude from reading the WO registers like this

if (data_regs[i].get_rights() == "WO")