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

mgSetIsLocalTrunk

mgSetIsLocalTrunk(
d_trunkId
g_isLocal
)
=> t / nil

Description

Sets the specified trunk as local. Trunks inside a Modgen are called local trunks. These trunks can be connected only within the same Modgen, and not from outside the Modgen.

Arguments

d_trunkId

Database ID of the topological trunk.

g_isLocal

Boolean specifying whether the trunk is local.
Valid Values: t if the trunk is local; nil if the trunk is not local.

Value Returned

t

The specified topological trunk was set as local or not local depending on whether g_isLocal is set to t or nil.

nil

The command was unsuccessful.

Example

Creates a topology trunk and sets it as local:

cv = geGetEditCellView()
net = dbFindNetByName(cv, "3")
myTopo = dbCreateTopology("myTopo" net)
myTrunk = dbCreateTrunk("myTrunk" myTopo "horizontal")

when(mgGetIsLocalTrunk(myTrunk) == nil
    mgSetIsLocalTrunk(myTrunk t)
    )

Return to top
 ⠀
X