Jump to content

IPXact field hdl path


Recommended Posts

Hello All

In IPXact, how we can specify the field access path ?

For example, if their is a field 'fld' in a register 'reg" which access path 'system.comp.reg.fld' then, can we store the full path at field itself or do we need to store a part at addressBlock, another part at register and remianing at field level and in the later case need to concatnate the paths to get full hdl path of the field. Which one is recommended

Can we store the full path at field itself as below

<ipxact:field>

<ipxact:name>fld</ipxact:name>   

    <ipxact:accessHandles>
            <ipxact:accessHandle>
              <ipxact:slices>
                <ipxact:slice>
                  <ipxact:pathSegments>
                    <ipxact:pathSegment>
                      <ipxact:pathSegmentName>system.comp.reg.fld</ipxact:pathSegmentName>
                    </ipxact:pathSegment>
                  </ipxact:pathSegments>
                </ipxact:slice>
              </ipxact:slices>
            </ipxact:accessHandle>
          </ipxact:accessHandles>

</ipxact:field>

or we need to separate the hdl path on "." and use the accessHandle element at field, register and address block level to specify the corresponding sub path, like

address block => system.comp

register => reg

field => fld

Which is the correct and recommended way to capture field hdl path ?

Thanks

Khushi

Link to post
Share on other sites

Hello Kushi,
The intended and recommended way is to avoid the path separator "." inside a pathSegment Name. For this reason, the element is called named pathSegment since it describes a segment of the path. However, it is not illegal to use the path separator inside a pathSegment and sometime this cannot be avoided.
Best regards,
Erwin

Link to post
Share on other sites

Thank you Erwin.

Does it mean, instead of following

<ipxact:field><ipxact:pathSegments>
                    <ipxact:pathSegment>
                      <ipxact:pathSegmentName>system.comp.reg.fld</ipxact:pathSegmentName>
                    </ipxact:pathSegment>
                  </ipxact:pathSegments>

</ipxact:field>

I should put it like the following(to avoid '.' in pathSegment)

<ipxact:field><ipxact:pathSegments>
                   <ipxact:pathSegment>
                      <ipxact:pathSegmentName>system</ipxact:pathSegmentName>
                    </ipxact:pathSegment>
                    <ipxact:pathSegment>
                      <ipxact:pathSegmentName>comp</ipxact:pathSegmentName>
                    </ipxact:pathSegment>

                    <ipxact:pathSegment>
                      <ipxact:pathSegmentName>reg</ipxact:pathSegmentName>
                    </ipxact:pathSegment>
                    <ipxact:pathSegment>
                      <ipxact:pathSegmentName>fld</ipxact:pathSegmentName>
                    </ipxact:pathSegment>

</ipxact:pathSegments>

</ipxact:field>

My another question is do we just put the hdl path completely inside the field elements or split it and specify individually the relevant part into addressblock, register and field and the tool will get all the part and concatenate them to create full hdl path ?

Can you also provide some example ipxact or pointers ?

Thanks

Khushi

Link to post
Share on other sites

Hi Kushi,

No you should not describe it like that to avoid ".". You can avoid the separator by putting pathSegments in different elements. So in a field you put "fld", in a register you put "reg". The two segments can be put together then as reg.fld by a generator.

I do not have an example at end.

Best regards,
Erwin

Link to post
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...