Jump to content

Hierarchical register maps


Recommended Posts

I've written the register abstraction for my DUT in a hierarchical manner, i.e. a reg_block containing sub reg_blocks. Each of the sub blocks has a register map with a specified base address and the offsets for the registers it contains. The top level reg_block also has a register map with a base address and offsets for it's sub reg_blocks.

 

Q. What is the methodology for passing the sub block offsets from the top level address map to be the base address of the address maps for the sub blocks?
This must involve passing to each of the sub blocks address maps during build the base address of the top level address map + the offset in the top level address map for that particular block?

 

Should I be using add_submap?

 

Thanks.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...