DavidLarson Posted December 17, 2012 Report Share Posted December 17, 2012 I am currently running the built-in uvm_mem_single_walk_seq on an internal RAM. The sequence is really nice, but there does seem to be one glitch with it. It loops through all addresses of the RAM from the beginning to the end, ~incrementing by 1~. This mode isn't supported in our RAM because addresses must be incremented by 4. Am I using the seq incorrectly somehow? If not, then is it possible to change the sequence to have the increment value be programmable (using the uvm_resource_db)? Thanks! Quote Link to comment Share on other sites More sharing options...
petermonsson Posted December 20, 2012 Report Share Posted December 20, 2012 Hi David, What do the create_map() lines look like? Best Regards Peter Quote Link to comment Share on other sites More sharing options...
DavidLarson Posted December 20, 2012 Author Report Share Posted December 20, 2012 Hi Peter, The tool we are using creates this call to create_map(): default_map = create_map("", 0, 4, UVM_BIG_ENDIAN, 0); Does that help? Thanks! Quote Link to comment Share on other sites More sharing options...
petermonsson Posted December 26, 2012 Report Share Posted December 26, 2012 Hi David, Sorry for the late reply (holidays and all that). In your create_map call you specify "word addressing" (the last parameter). The documentation states: "byte_addressing specifies whether consecutive addresses refer are 1 byte apart (TRUE) or n_bytes apart (FALSE). Default is TRUE." In other words, you tell create_map that you want consecutive locations to be addressed with +1. If you set byte_addressing = 1, things should be OK. Let me know if it works. Peter Quote Link to comment Share on other sites More sharing options...
DavidLarson Posted December 26, 2012 Author Report Share Posted December 26, 2012 Hi Peter, Wouldn't setting byte_addressing to 1 configure the map to be addressed on a byte-boundary? Don't we want the addresses to be n_bytes apart (set to 0)? Thanks, David 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.