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

mgGetBoxLPPArea

mgGetBoxLPPArea(
d_cellViewID
l_bBox
tx_layerName
t_purposeList
)
=> x_TotalModgenArea / nil

Description

Calculates the total area on the specified layer within the specified bounding box. If you specify a Modgen ID as the l_bBox parameter, then the total Modgen area is calculated and displayed.

Arguments

d_cellViewID

The database ID of the cellview.

l_bBox

The bounding box for which area needs to be calculated. Here, you can specify the Modgen ID to calculate the total Modgen area.

tx_layerName

Layer on which the total area for bBox needs to be calculated.

t_purposeList

Purposes for which total area for bBox needs to be calculated.

Value Returned

x_TotalbBoxArea

Total area on the specified layer within the specified bounding box.

nil

The operation failed.

The function will return nil if the total bBox area could not be calculated.

Examples

The following example calculates the "Metal1" layer density inside the editing Modgen:

modgenId = leGetEditFigGroup()

The following example calculates the total metal1 area inside the Modgen bounding box:

metal1Area = mgGetBoxLPPArea(geGetEditCellview() modgenId~>bBox "Metal1" list("drawing" "pin"))

The following example calculates total Modgen area:

modgenArea = adleBBoxArea(modgenId~>bBox)

The following example divides metal1Area and modgenArea to get the metal1Density inside Modgen:

metal1Density = metal1Area/modgenArea

Return to top
 ⠀
X