schCreatePin
schCreatePin(
d_cvId
d_master
t_termName
t_direction
g_offSheetP
l_origin
t_orientation
[ g_powerSens ]
[ g_groundSens ]
[ g_sigType ]
)
=> d_pin / nil
Description
Creates instances that are used to represent pins of terminals in a schematic cellview. Creates only a pin in a schematic cellview. The destination cellview must not be the same as the master cellview and must be editable.
Arguments
|
d_cvId
|
Cellview ID of an editable schematic cellview in which to create the pin.
|
|
d_master
|
Master cellview to which the pin instance refers. If you pass nil, the pin master is selected from the pin list based on the arguments t_direction and g_offSheetP.
|
|
t_termName
|
Terminal name 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
|
|
g_offSheetP
|
Specifies whether the pin is an offsheet connector. Valid Values: t, nil
|
|
l_origin
|
Origin of the pin specified as a point.
|
|
t_orientation
|
Orientation of the pin relative to its placement; must be enclosed in quotation marks. Valid Values: R0, R90, R180, R270, MY, MYR90, MX, MXR90
|
|
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
|
d_pin
|
The ID of the new pin.
|
|
nil
|
Instance creation was unsuccessful.
|
Examples
Creates a pin in the specified cellview. The pin is created from the inputCVId master cellview and assigned I1 pin name with input direction. The pin is not an offsheet pin and is placed at 0,0 with no rotation.
inputCVId = dbOpenCellViewByType( "basic" "ipin" "symbol" "" 'r )
pinId = schCreatePin( cvId inputCVId "I1" "input" nil 0:0 "R0" )
Return to top