Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbGetViaLayerNumColorMasks

dbGetViaLayerNumColorMasks(
d_viaId
t_viaLayerType
)
=> t_layerName / nil

Description

Returns the number of supported color masks for specified layer of the given via.

Arguments

d_viaId

Specifies the via ID.

t_viaLayerType

Specifies the via layer type.

Valid values: layer1, layer2, cutLayer

Value Returned

n_numMasks

Returns the number of supported color masks for the specified layer of the via.

nil

Returns nil if an error occurs (for example, invalid via ID or layer type).

Example

cv = dbOpenCellViewByType( "tech" "design" "layout" "maskLayout" "w" )
viaDef_M2_M1 = techFindViaDefByName( tf "M2_M1" )
via1t_m2_m1 = dbCreateVia( cv viaDef_M2_M1 10:10 "R0" )
techSetLayerNumColorMasks( tf "metal1" 3 )
techSetLayerNumColorMasks( tf "metal2" 8 )
dbGetViaLayerNumColorMasks( via1t_m2_m1 "layer1" )
=> 8
dbGetViaLayerNumColorMasks( via1t_m2_m1 "layer2" )
=> 3
dbGetViaLayer( via1t_m2_m1 "cutLayer" )

Return to top
 ⠀
X