Jump to content

Multidimensional array of registers


Kjeld

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

  • 2 weeks later...

Hi Erwin,

Thanks for your reply. I don't think it is clear in the standard that you can specify multiple dim elements. I would expect something like:

<ipxact:dims>
  <ipxact:dim>3</ipxact:dim>
  <ipxact:dim>4</ipxact:dim>
</ipxact:dims>

if the syntax should match the other objects.

Cheers,
Kjeld

Link to comment
Share on other sites

Hi Kjeld,

Some elements have a so-called container element (like busInterfaces) and others do not have that (like dim). The standard is not always consistent in that respect. However, the standard always states how many occurrences (0, 1, or multiple) an element can have in both the text and the schema definition files.

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.

×
×
  • Create New...