Protected registers behavior implementation with RAL

Hi all,

I have to add protection behavior to register model RAL registers. I have added callbacks to detect protection mode. I have certain registers can access in certain mode based on protocol prot signals. I’m able to get mode into pre_read callbacks. I have marked status as not OK to adapter from callback class. . I want to avoid comparison because when register is protected it will return 0 value , I don’t want that value to be updated as mirror value so I have thought to return UVM_NOT_OK status for those reads. still I see comparison is happening.

actual mirror value in DUT 0x0000000000000001 , I want to avoid mirror value check for this case. Is it possible , I can check readdata when status is NOT OK

value read from DUT (0x0000000000000000) does not match mirrored value (0x0000000000000001)