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
Value Returned
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