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

mgSetTrunkRefLayerPurpose

mgSetTrunkRefLayerPurpose(
d_trunkId
t_layerName
[ t_purposeName ]
)
=> t / nil

Description

Sets the layer and purpose of a topological trunk that is anchored to an instance. The bounding box of the specified layer and purpose inside the instance is used to determine the trunk's location. In other words, the trunk's orthogonal offset is from one side of the reference layer and purpose bounding box. The purpose argument is optional. If not specified, then the purpose argument defaults to any. A trunk's reference layer and purpose can be removed by setting both the layer and purpose arguments to any.

Arguments

d_trunkId

Database ID of the topological trunk.

t_layerName

String representing the reference layer.

t_purposeName

String representing the reference purpose. This is an optional argument.

Value Returned

t

The layer (and purpose) of the topological trunk was set.

nil

The layer (and purpose) of the topological trunk could not be set.

Example

Specifies the layer and purpose for a topological trunk that is anchored to an instance.

cv = geGetEditCellView()
     n = dbFindNetByName(cv "net7")
topo = car(setof(x dbGetCellViewTopologies(cv) equal(dbGetTopologyNet(x) n)))
trunk = car(dbGetTopologyObjects(topo))
mgSetTrunkRefLayerPurpose(trunk "Oxide_thk" "drawing")
===>t
mgGetTrunkRefLayerPurpose(trunk)
===>("Oxide_thk" "drawing")

Return to top
 ⠀
X