get_constraint
get_constraint
-constraint s_constraintName
[-group s_groupName]
[-hardness {hard | soft | preferred | default}]
[-model {OXIDE1 | OXIDE2 | OXIDE3 | OXIDE4}]
[-parameter s_parameterName]
[{-row_value f_value | -row_index i_index}]
[{-col_value f_value | -col_index i_index}]
Description
Returns the value for a simple constraint or a constraint parameter.
Arguments
|
-col_index i_index
|
Specifies the column index for looking up the constraint value in a 2-D table. Must be in the range of 0 to number of columns-1.
|
|
-col_value f_value
|
Specifies the column key value for looking up the constraint in a 2-D table. Must be a value in user units, typically a length.
|
|
-constraint s_constraintName
|
|
|
Specifies the name of the constraint. If you include this argument without a constraint name, the list of valid simple constraint names is output.
|
|
-group s_groupName
|
Specifies the name of the constraint group, or rule spec. Defaults to the foundry constraint group for OA constraints, and the design constraint group for all other constraints.
|
|
-hardness {hard | soft | preferred | default}
|
|
|
Returns the constraint value for the given setting. By default, the preferred value is returned.
|
|
|
default
|
Returns the first value found: hard or soft.
|
|
|
hard
|
Returns the hard value.
|
|
|
preferred
|
Returns the first value found: soft or hard.
|
|
|
soft
|
Returns the soft value.
|
|
-model {OXIDE1 | OXIDE2 | OXIDE3 | OXIDE4}
|
|
|
Returns the constraint value for the given antenna model. This argument is only used with antenna category constraints.
|
|
-parameter s_parameterName
|
|
|
Specifies that the value of the named parameter be output, instead of the constraint value. By default, the constraint value is returned.
|
|
-row_index i_index
|
Specifies the row index for looking up the constraint value in a 1-D or 2-D table. Must be in the range of 0 to number of rows-1.
|
|
-row_value f_value
|
Specifies the row selection value for looking up the constraint value in a 1-D or 2-D table. Must be a value in user units, typically a width.
|
Value Returned
|
value
|
Is the value of the specified parameter if -parameter is given, otherwise, is the constraint value.
|
|
-1
|
The constraint or parameter does not exist or is not set.
|
Examples
Returns the list of valid simple constraint names, provided a design is already loaded.
get_constraint -constraint foo
Related Topics
set_constraint
Return to top