Jump to content

Recommended Posts

Posted

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 ?

  • 2 weeks later...
Posted

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

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.

×
×
  • Create New...