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

mgGetIsLocalTrunk

mgGetIsLocalTrunk(
d_trunkId
)
=> t / nil

Description

Checks whether the specified trunk is 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 topology trunk.

Value Returned

t

The specified topology trunk is local.

nil

The specified topology trunk is not local.

Example

Creates a topology trunk and checks whether the trunk is local:

cv = geGetEditCellView()
net = dbFindNetByName(cv, "3")
myTopo = dbCreateTopology("myTopo" net)
myTrunk = dbCreateTrunk("myTrunk" myTopo "horizontal")
mgSetIsLocalTrunk(myTrunk t)
when(mgGetIsLocalTrunk(myTrunk)
    printf("Topology trunk is local.\n")
)

Return to top
 ⠀
X