Jump to content
Sign in to follow this  
McPall

set_rights for uvm reg

Recommended Posts

is there a way to set_rights of uvm reg for a specific map  ? (like uvm_field) if no why not ?

an alternative would be:

 

reg.get_fields(field_q)
foreach(field_q[i])
   field_q[i].set_rights("RO")
 

 

but why not allow modification of reg access directly ?

Share this post


Link to post
Share on other sites

hi,

 

you should be able to use 

 

function uvm_reg_map_info uvm_reg_map::get_reg_map_info(uvm_reg rg, bit error=1);

 

to retrieve the properties for a reg/mem in a particular map. once you have the properties you may switch the rights for the particular entity via the uvm_reg_map_info::rights attribute

 

/uwe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×