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

mgGetTrunkRefLPPEnclosure

mgGetTrunkRefLPPEnclosure(
d_instID
t_side
t_layerName
t_purposeName
)
=> x_enclosure / nil

Description

Returns the enclosure of a topological trunk reference layer and the purpose within an instance. For example, if the LPP of a trunk reference is Oxide drawing, then the function returns the distance from one side of the Oxide bounding box to the instance bounding box. This value is subtracted from the channel width of the topological trunk to derive the trunk-to-device spacing to the reference layer in the instances above (or to the right of) a trunk.

Arguments

d_instID

The database identifier of the instance to be used to compute the reference layer and purpose enclosure.

t_side

A string to indicate the side of the instance bounding box to use in the reference layer and purpose enclosure calculation. Valid values are: top, bottom, left, and right.

t_layerName

A string indicating the reference layer name.

t_purposeName

A string indicating the reference purpose name.

Value Returned

x_enclosure

The reference layer and purpose enclosure.

nil

Command did not run because of errors in the arguments.

Example

Returns the enclosure of a topological trunk reference layer and the purpose within an instance.

channelWidth = (numTrunks * trunkWidth + (numTrunks -1) * trunkSpacing
+ bottomTrunkToDeviceSpacing + topTrunkToDeviceSpacing
cellView = geGetEditCellView()
instance = dbFindAnyInstByName(cellView "M0")
enclosure = mgGetTrunkRefLPPEnclosure(instance "bottom" "Oxide_thk" "drawing")
channelWidth = channelWidth - enclosure

Return to top
 ⠀
X