scnix1 Posted July 1, 2011 Report Share Posted July 1, 2011 I'm trying to model some internal registers and memories using the UVM Register Package. I am not doing auto prediction; I'm trying to do set() and get() to do the prediction. It works fine for registers, but there is no get() method for the uvm_mem class? Is there a clean way to do a non-time consuming (i.e. function not task) method to directly set and get memory model values? Thanks, Scott Nixon Quote Link to comment Share on other sites More sharing options...
janick Posted July 4, 2011 Report Share Posted July 4, 2011 The get/set methods in the registers access the mirrored value. Because of the usually-large size of memories, they are not mirrored as it would basically involve writing a sparse memory model. That sparse memory model would be defeated by the memory-walking tests as they woudl force the allocation of the entire memory. It is recommended that backdoor access be used for zero-time access to the memory content. If the backdoor access is not available, it is simple to cache the entries you need in an associative array as the content of memories is easy to predict as they are either RO or RW. 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.