McPall Posted October 15, 2013 Report Share Posted October 15, 2013 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 ? Quote Link to comment Share on other sites More sharing options...
uwes Posted October 25, 2013 Report Share Posted October 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.