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

dbSetViaLayerControl

dbSetViaLayerControl(
d_dbViaId
t_dbViaLayerType
t_colorControl
)
=> t / nil

Description

Sets the color control for 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

t_colorControl

Color control that can be assigned to the specified layer in the given via.

Valid values: noColor, noShift, shift1, and so on, up to shiftx, where x is an integer equal to (number of masks for the via layer - 1). For example, the valid values for a 3-mask via layer are: noColor, noShift, shift1, and shift2.

Value Returned

t

Color controls for the specified layer in the given via are successfully changed.

nil

The operation failed.

Example

In this example, the following color controls are assigned to the specified layers 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")
dbSetViaLayerControl(via1t_m2_m1 "layer2" "shift2")
=> t
dbSetViaLayerControl(via1t_m2_m1 "layer1" "shift1")
=> t
dbSetViaLayerControl(via1t_m2_m1 "cutLayer" "shift1")
=> t


Return to top
 ⠀
X