schCreateSymbolPin
schCreateSymbolPin(
d_cvId
d_master
t_termName
t_direction
l_origin
t_orientation
[ g_flatten ]
[ g_powerSens ]
[ g_groundSens ]
[ g_sigType ]
)
=> t_pinFigId / nil
Description
Creates a pin in the given cellview with the name, direction, and orientation you specify.
The figures that describe the pin are taken from the given pin master cellview, which can be accessed with a call to dbOpenCellViewByType, and are copied into the specified cellview. A terminal is created for the pin with the given name. The objects are created in the cellview with the specified orientation.
Arguments
|
d_cvId
|
Cellview ID of an editable symbol cellview in which to create the pin.
|
|
d_master
|
Master cellview containing the objects that specify the symbol pin.
|
|
t_termName
|
Name for the terminal that is created for the pin; must be enclosed in quotation marks.
|
|
t_direction
|
I/O direction of the pin terminal; must be enclosed in quotation marks. Valid Values: input, output, inputOutput, switch
|
|
l_origin
|
Location for the pin specified as a point.
|
|
t_orientation
|
Orientation of the pin placement; must be enclosed in quotation marks. Valid Values: R0, R90, R180, R270, MX, MXR90, MY, MYR90
|
|
g_flatten
|
Controls whether the pin figures are copied from d_master into d_cvId (that is, flattened) or placed as instances. When set to nil, the pin is created by making an instance of d_master in d_cvId. Otherwise, the pin is created by copying the pin figures from d_master into d_cvId. The default value is t.
|
|
g_powerSens
|
Name of the power terminal in d_cvId to which the pin is sensitive, or nil if not required.
|
|
g_groundSens
|
Name of the ground terminal in d_cvId to which the pin is sensitive, or nil if not required.
|
|
g_sigType
|
Type of signal carried by the pin. If you omit this argument, or pass nil, then the pin takes the signal type of an existing wire with the same name, or "signal" if there is no such wire. Valid Values: analog, clock, ground, power, reset, scan, signal, tieHi, tieLo, tieOff, nil
|
Value Returned
|
t_pinFigId
|
The ID of the new pin figure.
|
|
nil
|
Pin creation was unsuccessful.
|
Examples
Creates terminal A, takes the objects from the symbol pin master masterCV, and creates corresponding objects in the symbolCV cellview. The objects are placed relative to the 0,0 location without rotation.
symPinId = schCreateSymbolPin( symbolCV masterCV "A" "input" 0:0 "R0" )
Return to top