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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...