Attaluri Posted June 18, 2014 Report Share Posted June 18, 2014 Hi , I have a top register model. in that some address part is defined as memory. ( ex :- 0x0,4,8 ,c registers address then 0x10 memory then 0x20,0x24,0x28 ... registers) I have another register model , which has all the registers which fit the space defined as memory in top register model. (ex: 0x10,0x14,0x18,0x1c as registers) could you please suggest me how to map them . Regards, Pavan. Quote Link to comment Share on other sites More sharing options...
tudor.timi Posted June 18, 2014 Report Share Posted June 18, 2014 The question seems a bit vague to me. When accessing 0x10 what are you actually accessing, memory or a register? is there some crazy scheme that when some field in a config register is set, 0x10 maps to one or the other? Quote Link to comment Share on other sites More sharing options...
Attaluri Posted June 19, 2014 Author Report Share Posted June 19, 2014 Hi Tudor, when accessing 0x10 .. plan is to access register. thier is no crazy scheme here in top register model ,some address part is left for other internal modules. so these internal modules have thier own register models. so for this internal register models we have to use base address as top model specifies .. Regards, Pavan. Quote Link to comment Share on other sites More sharing options...
tudor.timi Posted June 19, 2014 Report Share Posted June 19, 2014 In the top address map, couldn't you just not declare the areas that are mapped to other internal modules? You could then add the other module level map as a submap to the top level one: http://www.vmmcentral.org/uvm_vmm_ik/files3/reg/uvm_reg_map-svh.html#uvm_reg_map.add_submap Attaluri 1 Quote Link to comment Share on other sites More sharing options...
Attaluri Posted June 23, 2014 Author Report Share Posted June 23, 2014 Hi Tudor -- Thanks.in generated top address map i commented out those and added other module as submap. 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.