Access Rights in Ral

In reply to Anudeep J:

UVM provides yyou a broad variety of options for doing things, considering specific requirements.
It’s up to you to make your choice which fits your needs. UVM allows you even to do things which do not fit. But this results mostly in an catastrophe.
With respect to your question. For register handling UVM provides you aalso a lot of different options. If you have simple registers without different reg fields you will construct your model in another ways as when you have registers with different reg fields. If you have reg fields with different access rights in a register you cannot set the access rights from the reg level. Instead you have to do this from the reg field level. In your example do not connect the rights varaible in the add_reg command. Let it simple open. But you have to set the access rights on the reg field level.