Jump to content

Multidimensional array of registers


Kjeld
 Share

Recommended Posts

Hi,

I want to do something like:

<ipxact:registerFile>
<ipxact:name>RegisterArray</ipxact:name>
<ipxact:dim>8</ipxact:dim>
<ipxact:dim>4</ipxact:dim>
<ipxact:dim>2</ipxact:dim>
<ipxact:addressOffset>0x200</ipxact:addressOffset>
<ipxact:range>0x10</ipxact:range>
<ipxact:register>
<ipxact:name>RegArrayEntry</ipxact:name>
<ipxact:addressOffset>0x0</ipxact:addressOffset>
<ipxact:size>32</ipxact:size>
<ipxact:field>
<ipxact:name>MandatoryField</ipxact:name>
<ipxact:bitOffset>0</ipxact:bitOffset>
<ipxact:bitWidth>32</ipxact:bitWidth>
</ipxact:field>
</ipxact:register>
</ipxact:registerFile>

but so far I had to stick with:

<ipxact:registerFile>
<ipxact:name>RegisterArray</ipxact:name>
<ipxact:dim>64</ipxact:dim>
<ipxact:addressOffset>0x200</ipxact:addressOffset>
<ipxact:range>0x10</ipxact:range>
<ipxact:register>
<ipxact:name>RegArrayEntry</ipxact:name>
<ipxact:addressOffset>0x0</ipxact:addressOffset>
<ipxact:size>32</ipxact:size>
<ipxact:field>
<ipxact:name>MandatoryField</ipxact:name>
<ipxact:bitOffset>0</ipxact:bitOffset>
<ipxact:bitWidth>32</ipxact:bitWidth>
</ipxact:field>
</ipxact:register>
</ipxact:registerFile>

Do I understand it correctly that it is not possible to specify arrays of registers with multiple dimensions?

Link to comment
Share on other sites

Hi,

You can describe multi-dimensional registers and multi-dimensional register files, i.e., a register element may have multiple dim element and a registerFile element may have multiple dim elements. So I am not sure why you "had to stick with" something.

Best regards,
Erwin

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.

 Share

×
×
  • Create New...