Kjeld Posted March 17, 2023 Report Share Posted March 17, 2023 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? Quote Link to comment Share on other sites More sharing options...
kock Posted March 17, 2023 Report Share Posted March 17, 2023 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 Quote Link to comment Share on other sites More sharing options...
Kjeld Posted March 27, 2023 Author Report Share Posted March 27, 2023 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 Quote Link to comment Share on other sites More sharing options...
kock Posted March 28, 2023 Report Share Posted March 28, 2023 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 Kjeld 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.