copy_constraint
copy_constraint
-group s_group_name [-to_group s_groupName [-type {design | default | net | route | term}]]
[-constraint s_constraintName [-to_constraint s_constraintName]]
[-layer {s_layerName …} [-to_layer {s_layerName …}]]
[-layer1 s_layerName]
[-layer2 s_layerName]
[-purpose1 s_purposeName]
[-purpose2 s_purposeName]
[-layer_array {s_layerName …}
[-model {OXIDE1 | OXIDE2 | OXIDE3 | OXIDE4}]
Description
Copies constraints and, optionally, creates a new constraint group.
Arguments
|
-constraint s_constraintName
|
|
|
Name of the constraint to copy. Defaults to all constraints.
|
|
-group s_groupName
|
Name of the constraint group or rule spec from which constraints will be copied.
|
|
-layer {s_layerName…}
|
Limits constraints to single layer constraints on the given layer or layers.
|
|
-layer1 s_layerName
|
Limits constraints to layer pair constraints with the given first layer.
|
|
-layer2 s_layerName
|
Limits constraints to layer pair constraints with the given second layer.
|
|
-layer_array {s_layerName…}
|
|
|
Limits constraints to layer array constraints with the given list of layers.
|
|
-model {OXIDE1 | OXIDE2 | OXIDE3 | OXIDE4}
|
|
|
Limits constraints to antenna constraints with the given model name.
|
|
-purpose1 s_purposeName
|
|
|
Limits constraints to layer or layer pair constraints with the given first purpose.
|
|
-purpose2 s_purposeName
|
|
|
Limits constraints to layer pair constraints with the given second purpose.
|
|
-to_constraint s_constraintName
|
|
|
Name of the constraint to copy to. If given, the constraint must either be a built-in or a predefined custom constraint. If this argument is not given, the original constraint name is used.
|
|
-to_group s_groupName
|
Name of the constraint group into which the selected constraints will be copied. If the group does not already exist, it is created. Defaults to the original constraint group.
|
|
-to_layer {s_layerName …}
|
|
|
Copies constraints to the given layer or layers.
|
|
-type {design | default | net | route | term}
|
|
|
Specifies the type of constraint group to create.
|
Examples
Copies all minSpacing constraints to minSameNetSpacing within the same constraint group.
copy_constraint -group CG__1 -constraint minSpacing \
-to_constraint minSameNetSpacing
Copies all minSpacing constraints to minSameNetSpacing for all constraint groups.
foreach routespec [report_rs -all] {copy_constraint -group $routespec \
-constraint minSpacing -to_constraint minSameNetSpacing}
Copies all constraints from RULE1 to RULE2, creating RULE2, if necessary.
copy_constraint -group RULE1 -to_group RULE2
Copies all Metal1 single layer constraints for RULE1 to RULE2, creating RULE2, if necessary.
copy_constraint -group RULE1 -to_group RULE2 -layer Metal1
Copies all Metal1 single layer constraints from RULE1 into equivalent constraints in RULE2 creating RULE2, if necessary.
copy_constraint -group RULE1 -to_group RULE2 -layer Metal1 \
-to_layer {Metal2 Metal3 Metal4 Metal5}
Related Topics
Tcl Constraint Commands
Return to top