Specifying own access type UVM-RAL

Hi ,

How to specify own access type using uvm_ral.
For example : “Saturating Clear on Read”

I have a 8 bit counter in my design. which will be keep increment , once it reaches saturated value (that is 8’hFF) , it remains int that value, until read. On read, it will be cleared. But if before saturation, On read it will return the intermediate value and never clears it.

Can anyone specify own method of doing it.

Thanks
Saravanan

In reply to saravanan_kpk:

https://verificationacademy.com/cookbook/registers/quirkyregisters