weGetAdjustedWidthForTracks
weGetAdjustedWidthForTracks(d_cellViewId l_layerNum l_purposeNum l_direction l_dimension l_coordinates [ x_coord y_coord ]) =>l_trackInfo/ nil
Description
Returns the Width Spacing Pattern (WSP) track information based on the inputs specified, such as layers, purposes, preferred directions, and shape dimensions, at a specific location.The purpose of the function is to check whether or not there are tracks at the given location.
Arguments
|
List of shapes dimension. The shapes dimension includes the width and height of the shape. |
|
Value Returned
Examples
Given below are two examples to explain how the SKILL function is used.
Example 1
The following example shows how to get the track information for a single layer/purpose/direction/shape’s dimensions.
tech = techGetTechFile(dbGetCellView())
layer = techGetLayerNum(tech "M1")
purpose = techGetPurposeNum(tech "drawing")
weGetAdjustedWidthForTracks(dbGetCellView() list(layer) list(purpose) list("horizontal") list(list(0.1 0.1)) list(0.3880 0.1240))
The value returned for the above example is:
(
(0.032) - track width
("horizontal") - track direction
(t) - Boolean value of trackHasWidth
("grayColor") - track color
)
At the location (0.3880 0.1240), for the horizontal preferred direction, considering the layer-purpose pair (M1, drawing), for a shape of dimension (width= 0.1 and height = 0.1), there is a corresponding M1 horizontal track with width as 0.032 and no color.
Example 2
The following example shows how to get the track information for multiple layers/purposes/directions/shape’s dimensions.
tech = techGetTechFile(deGetCellView())
layer1 = techGetLayerNum(tech "M1")
layer2 = techGetLayerNum(tech "M2")
layer3 = techGetLayerNum(tech "M3")
purpose = techGetPurposeNum(tech "drawing")
weGetAdjustedWidthForTracks(deGetCellView() list(layer1 layer2 layer3) list(purpose purpose purpose) list("vertical" "vertical" "horizontal") list(list(0.1 0.064) list(0.1 0.064) list(0.1 0.064)) list(0.3880 0.2040))
The value returned for the above example is:
(
(0.048 0.0 0.064) - track widths
("vertical" "vertical" "horizontal") - direction of tracks
(t nil t) - boolean value of trackHasWidth
("mask1Color" "grayColor" "mask2Color") - Color of tracks
)
From the given inputs, there are three matching tracks with the following characteristics:
-
A
verticalM1track with width as0.048andmask1Color. -
A
verticalM2track with no width and no color. -
An
horizontalM3track with width as0.064andmask2Color.
Related Topics
Interactive and Assisted Routing Functions
Return to top