rtdk Posted March 8 Report Share Posted March 8 In the uvm_reg_map get_size method, the output comes from last known register's address. At the end of the method, the return value is: return max_addr + 1; https://github.com/accellera-official/uvm-core/blob/b5f8562d8bee8ea11b06fc2692ed2ba0b5b7eeb7/src/reg/uvm_reg_map.svh#L1324C4-L1324C23 Instead, the function should return: return max_addr + n_bytes; Which would return the right value. I've created a playground to demonstrate it: https://www.edaplayground.com/x/mhic I have 3 64b registers in the map. I expect the get_size method to return 'd24, because the total map occupies 24 bytes. Instead it returns 'd1 UVM_INFO testbench.sv(69) @ 0: uvm_test_top [uvm_test_top] Size of reg map is 17 I wasn't sure how to file a bug on UVM, so here I am. Quote Link to comment Share on other sites More sharing options...
Justin Refice Posted March 11 Report Share Posted March 11 Thanks for posting @rtdk! Please open this as an issue in the GitHub Issue Tracker (https://github.com/accellera-official/uvm-core/issues). Instructions for what information to include when reporting an issue can be found at https://github.com/accellera-official/uvm-core/blob/main/CONTRIBUTING.md. Sincerely, -Justin Quote Link to comment Share on other sites More sharing options...
rtdk Posted March 12 Author Report Share Posted March 12 Thank you for the guidance @Justin Refice. Issue filed here: https://github.com/accellera-official/uvm-core/issues/7 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.