Jump to content

Array of registers


Recommended Posts

Hi Folks


I have a scenario where I have 32 identical register which are placed equally spaced in the memory map but there is some unused space beetween them.

For example, register are 32 bit wide and located at 0x0, 0x10, 0x20,.....

Do I need to write all 32 instances speartely in the IP-XACT ?

I see there is a dim element but I think it is for the cases when there is no gaps between successive registers.

Is there a way to write such registers in a compact way in IP-Xact ?




Link to comment
Share on other sites

  • 3 weeks later...

Hi Rahul,


This is how we modelled this scenario:


            <vendorExtensions:array xmlns:vendorExtensions="http://www.spiritconsortium.org/XMLSchema/SPIRIT/1.5">
              <vendorExtensions:offset_calc>0x0 + ( x * 16 )</vendorExtensions:offset_calc>


vendorExtensions helps us to capture the array of registers inside an existing address space or register file.


This approach does not need a new register file inside your address_block.

Link to comment
Share on other sites

Hi Mark


When I model this using register file. I have some schema complaincy error.

In my IP-XACT, can I have a registerFile followed by a register and again followed by a registerFile ?

For example











As per the schema, it says we need to put all registers together and followed by all registerFiles together.


But I want to keep all registers (including registers within registerFile) in increasing offset order.

Can we do that




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.

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