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

schCreateNetExpression

schCreateNetExpression( 
d_cvId 
t_netExpr 
d_glueId 
l_point 
t_justify 
t_orient 
t_fontStyle 
n_fontHeight 
)
=> d_id / nil

Description

Creates an inherited connection and the corresponding net expression label. Attaches the given net expression to the given database object. It validates the syntax of the expression and attaches a net expression label to the database object. If the object is a schematic wire, you must run the schematic extractor to create the inherited connection. Before calling this function, you must acquire all the required arguments of the function.

You can programmatically create inherited terminals by explicitly calling dbCreateTermNetExpr. A net expression label will not be created. You cannot create inherited signals by explicitly calling dbCreateSigNetExpr because the schematic extractor deletes an inherited signal that does not have a net expression label.

Arguments

d_cvId

Cellview ID of the cellview in which to create the expression.

t_netExpr

The net expression in NLP syntax; must be enclosed in quotation marks.

d_glueId

The database object to associate the net expression with. It must be either a schematic wire, schematic pin, or symbol pin object.

l_point

The origin point to locate the net expression.

t_justify

Justification to give the net expression label text with respect to its placement; must be enclosed in quotation marks.
Valid Values: upperLeft, upperCenter, upperRight, centerLeft, centerCenter, centerRight, lowerLeft, lowerCenter, lowerRight

t_orient

Orientation to give the placement of the net expression; must be enclosed in quotation marks.
Valid Values: R0, R90, R180, R270, MX, MXR90, MY, MYR90

t_fontStyle

Label font style; must be enclosed in quotation marks.
Valid Values: euroStyle, fixed, gothic, math, roman, script, stick, swedish, milSpec

n_fontHeight

Label height in user units.
Default: 0.0625

Value Returned

d_id

The ID of the net expression label for the inherited connection.

nil

There is a syntax error in the given expression or the parent object is not a schematic wire, schematic pin, or symbol pin.

Examples

Creates the net expression label [@power:%:vdd!] glued to the specified wire figure at location 0, 1.875. The label is control-point justified at the lower left of the label, the font is a fixed-width font, and the height is 0.125 user units.

netExprLabelId = schCreateNetExpression( cv “[@power:%:vdd!]” wireId (0:1.875) "lowerLeft" "R0" "fixed" 0.125 )

Related Topics

Syntax of an Inherited Net Expression


Return to top
 ⠀
X