Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schPinListToSymbol

schPinListToSymbol( 
t_libName 
t_cellName 
t_viewName 
g_pinList 
)
=> t / nil

Description

Generates a symbol cellview from a pin list.

Arguments

t_libName

Library containing the symbol to generate from the pin list; must be enclosed in quotation marks.

t_cellName

Cell containing the symbol to generate from the pin list; must be enclosed in quotation marks.

t_viewName

View containing the symbol to generate from the pin list; must be enclosed in quotation marks.

g_pinList

Terminal and property information to use in generating the target symbol.

Value Returned

t

Generated a symbol cellview from a pin list.

nil

Could not generate symbol cellview.

Examples

schPinListToSymbol( "myLib" "myDesign" "symbol" pinList )

where

pinList = ‘(nil ports ((nil name "a" direction "input")
(nil name "b" direction "input")
(nil name "c" direction "output")
)
)

Generates a symbol with two input pins, "a" and "b", and one output pin, "c".

The pin list format represents all the terminals and properties and is stored in a disembodied property list with the following format:

g_pinList = ‘(nil ports portList
    [prop proplist] )
portlist = (termDef termDef...termDef)
termDef = (nil name "termName"
    direction "termDir"
    [prop propList]
    [pins termPins]
    )
proplist = (nil propName propValue
    propName propValue
    ...
    )
termPins = (pinDef pinDef...pinDef)
pinDef =  (nil name "pinName"
    [accessDir "accessDir"])

Return to top
 ⠀
X