Jump to content

Describing register map relative and non-fixed offsets


chiggs

Recommended Posts

I have a register map along the following lines:

 

-----------------------+-----------------+---------------------------------
          Byte offset  |  Register Name  |  Description
-----------------------+-----------------+---------------------------------
 0x00                  |  width          |  Width (in bits) of structure
 0x04                  |  height         |  Number of rows
 0x08                  |  offset         |  Offset of the structures

       ********** Variable sized gap **********

 $offset               |  Item 1         |  First structure
 $offset + 4           |  Item 2         |  Second structure
 $offset + 4 * N       |  Item N         |  Nth structure
 $offset + $height *N  |  Last item      |  Final structure

The software will read the width, height and offset registers and run-time and use these to determine the layout of the dynamic part of the component address space.  As far as I can see from the IP-XACT specification, there's no way to describe a dynamic register layout (or unknown until run-time).

 

Does anybody have a suggestion for how to achieve this is the cleanest way?

 

Thanks,

 

Chris

 

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...