mwhite_cp Posted February 9, 2012 Report Share Posted February 9, 2012 In Mentor's cookbook example, a scoreboard accesses UVM model registers through analysis port. This will work but it will not be easy to maintain if the register source changes. Is there a better way to access UVM register from a predictor/scoreboard? Thanks! Quote Link to comment Share on other sites More sharing options...
janick Posted February 9, 2012 Report Share Posted February 9, 2012 Depends on the type of functionality you need out of the register model for the scoreboard. Why not pass the entire register model to the scoreboard? Of course, that will need changing if the name and structure of the register model changes. Quote Link to comment Share on other sites More sharing options...
mwhite_cp Posted February 9, 2012 Author Report Share Posted February 9, 2012 Janick, thank you for your response. Yes, my concern is that scoreboard might need changed when a register name definition in spec changes. We have not done this yet, we are looking into generating UVM register code with a tool from the register specification. I need to generate multiple predictors which need to see register values, so all of them need to be updated just because the names in the spec changed. If there is no better way, I guess I just have to live with it. Quote Link to comment Share on other sites More sharing options...
janick Posted February 9, 2012 Report Share Posted February 9, 2012 my concern is that scoreboard might need changed when a register name definition in spec changes. The register model abstracts you from implementation details like physical addresses, bus widths, endianness, field size and offsets. The only thing it does not abstract is the register name because the register name is above the level of abstraction of the register model. You will indeed have to live with it because you are working at the same level of abstraction as the register model. If you want some level of independence, you need to create some firmware driver layer. 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.