Jump to content

Defining new access type for fields


Recommended Posts

Has anyone defined their own access for fields? I see there is define_access in uvm_reg_field, but I don't see how to define the functionality of the access. For example, suppose I want a new access type similar to RW, only writes are blocked for certain configurations specified in a configuration register.

The predict function in uvm_reg_field defaults to assuming normal write access, so it looks like I would need to extend uvm_reg_field and redefine functions XpredictX and predict. It seems like there should be a better and/or easier way.

Link to comment
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.

×
×
  • Create New...