Jump to content

Parameter name vs ID in expressions


Khushi

Recommended Posts

Hello

I have an element dependent on some parameter then do I need to use the parameter name or id in the dependency expression.

For example, I have a parameter WIDTH 

<ipxact:parameter parameterId="WIDTH_ID" resolve="user" type="int">
<ipxact:name>WIDTH</ipxact:name>
<ipxact:value>8</ipxact:value>
</ipxact:parameter>

and one of the port left dimension depends on this parameter should I use the parameter name or id in the expression ?

<ipxact:vector>
<ipxact:left>WIDTH-1</ipxact:left>
<ipxact:right>0</ipxact:right>
</ipxact:vector>

 

or

<ipxact:vector>
<ipxact:left>WIDTH_ID-1</ipxact:left>
<ipxact:right>0</ipxact:right>
</ipxact:vector>


Which one is correct ?

Thank you

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