hmeiners Posted July 18, 2011 Report Share Posted July 18, 2011 (edited) Hi, I would like to know if there is any reason why classes of the UVM register package are not systematically registered to the factory? Cheers, Holger Edited July 18, 2011 by hmeiners Quote Link to comment Share on other sites More sharing options...
hmeiners Posted July 18, 2011 Author Report Share Posted July 18, 2011 Probably I should as well ask why uvm_reg_block is defined as a virtual class ? Quote Link to comment Share on other sites More sharing options...
uwes Posted July 18, 2011 Report Share Posted July 18, 2011 hi, uvm_reg_block, uvm_reg etc are all base classes and need to be specialized(=derived). a generic uvm_reg would have no fields, a uvm_reg_block would have no embedded regs etc. so from that point of view it doesnt make sense to make an instance of such a uvm_reg_block or uvm_reg therefore they are "virtual". /uwe Quote Link to comment Share on other sites More sharing options...
hmeiners Posted August 17, 2011 Author Report Share Posted August 17, 2011 Uwe, from my point of view it is still reasonable to register the uvm_reg_block to the factory. In my case I want to use a generic memory model wrapper that overrides the register model instance based on a string. The implementation for the uvm_reg is OK for me. Thanks, Holger Quote Link to comment Share on other sites More sharing options...
uwes Posted August 18, 2011 Report Share Posted August 18, 2011 ok, then add a mantis item with your use case so the tsc can look at that. /uwe 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.