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

dbGetViaLayerControl

dbGetViaLayerControl(
d_dbViaId
t_dbViaLayerType
)
=> t_colorControl / nil

Description

Returns the color control assigned to the specified layer in the given via.

Arguments

d_dbViaId

Database ID of a via.

t_dbViaLayerType

Name of a valid via layer type.

Valid values: layer1, layer2, cutLayer

Value Returned

t_colorControl

Returns the color control assigned to the specified layer in the given via.

Valid values: noColor, noShift, shift1, shift2,shift2,shift3,shift4,shift5,shift6,or shift7.

nil

The operation failed.

Example

Color control shift2 is set on the layer layer2 in the via via1t_m2_m1.

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")
Returns color control for layer2 in the via via1t_m2_m1 as shift2, using the function dbGetViaLayer2Control. 
dbSetViaLayerControl(via1t_m2_m1 "layer2" "shift2")
=> t

dbGetViaLayer2Control( via1t_m2_m1 )
=> "shift2"

Returns color control for layer2 in the via via1t_m2_m1 as shift2, using the function dbGetViaLayerControl by specifying the name of the layer as one of the arguments.  

dbGetViaLayerControl( via1t_m2_m1 "layer2")
=> "shift2"

Return to top
 ⠀
X