Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

mgCreateModgenConstraintAsLayout

mgCreateModgenConstraintAsLayout(
d_cvId
l_InstanceList
[ l_AbuttedInstances ]
)
=> g_constraintID / nil

Description

Creates a Modgen constraint that uses the current layout to drive the initial Modgen constraint and row/column assignments.

Arguments

d_cvId

A valid layout cellview ID. If the value is invalid, the function returns nil.

l_InstanceList

A non-empty list of instance IDs. If the values are invalid, the function returns nil.

l_AbuttedInstances

A list of abutted instances for which abutment needs to be preserved while generating the Modgen from the layout. Example: Consider abutment M0 <- M1; M2<-M3 in the layout. Instance names M1 and M3 is passed as a list for the l_AbuttedInstances argument.

Value Returned

g_constraintID

Constraint ID of the Modgen that was created.

nil

A Modgen could not be created.

Examples

Creates a Modgen constraint that uses the specified instances.

window = hiGetCurrentWindow()
cvId = geGetEditCellView(window)
when(cvId~>objType == "cellView" && cvId~>cellViewType == "maskLayout"
    instances = cellView~>instances
    when(instances
    mgCid = mgCreateModgenConstraintAsLayout(cvId instances)
    )
)

The following example works only if the current cellview is of the layout type. geGetEditCellView returns a valid layout cellview ID. The Modgen includes the instances that are selected in the cellview.

mgCid = mgCreateModgenConstraintAsLayout(geGetEditCellView()  geGetSelSet())

Return to top
 ⠀
X