ecarstens Posted July 23, 2012 Report Share Posted July 23, 2012 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. Quote Link to comment Share on other sites More sharing options...
janick Posted July 24, 2012 Report Share Posted July 24, 2012 You use callbacks and field extension classes (if you are writing your own generator). See $UVM_HOME/distrib/examples/simple/registers/models for examples. 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.