leCreateAutoPin
leCreateAutoPin(
d_cellViewId
l_point
t_termName
t_termDir
[ l_lpp ]
[ g_pinSnapToWireEnd ]
[ x_depth ]
[ g_truncateWire ]
)
=> d_pinShapeId / nil
Description
Creates a pin shape in cellview d_cellViewId.
Arguments
|
d_cellViewId
|
The database ID of the cellview in which the pin is created.
|
|
l_point
|
The point at which to create the rectangle pin.
|
|
t_termName
|
Name of the terminal to which the pin is attached. If no such terminal exists, one is created. If the terminal must be created, it is created on a net with the same name as the terminal. Valid Values: any valid SKILL expression.
|
|
t_termDir
|
Specifies the I/O type (direction) of the pin. Valid Values: input, output, inputOutput, switch, or jumper.
|
|
l_lpp
|
Specifies the list of layer purpose pairs. If specified, the function creates the pin on the shapes on the specified LPP.
|
|
g_pinSnapToWireEnd
|
Creates a pin on the end of a path segment. The valid values are t and nil. The default is t.
When set to nil, the pin is created in the center of the path segment.
|
|
x_depth
|
Creates the pin at the specified depth. This argument is considered only when the enablePinEnhancements environment variable is set to t.
|
|
g_truncateWire
|
Truncates the path segment to the PR boundary if the path segment extends beyond the PR boundary.
|
Value Returned
|
d_pinShapeId
|
The object ID for the pin if the pin is created.
|
|
nil
|
The pin is not created.
|
Examples
In the following example, a pin is created in cellview cell1 at 10:10. The pin is attached to terminal term1, and the access direction of the pin is input. Returns the object ID of the pin.
leCreateAutoPin( cell1 list(10:10) "term1" "input" )
In the following example, a pin is created in cellview cell1 at 10:10. The pin is attached to terminal term1, and the access direction of the pin is input. The pin is created on shapes on layer-purpose poly1 drawing, and is present at level 0. If the underlying shape is a path segment, the pin is created at the center and is abutted to the PR boundary if more than half of the path segment extends beyond the PR boundary. Returns the object ID of the pin.
leCreateAutoPin(cell1 list(10:10) "term1" "input" list("poly1" "drawing") nil 0 t)
Return to top