Product Documentation
Virtuoso Parameterized Cell SKILL Reference
Product Version IC23.1, August 2023

pcDefineParamLabel

pcDefineParamLabel(
d_labelId
S_height
) 
=> t / nil

Description

Defines a parameterized label. A parameterized label is not an instance name, but a label displaying values within a Pcell, such as width and height of gates. This function should be used only when creating graphical Pcells.

Arguments

d_labelId

Database ID for the label you want to parameterize. The label is a SKILL expression evaluated in the instance.

S_height

Height of the text in user units.

Valid Values: any string or symbol

Value Returned

t

Returned if the label is converted to a parameterized label.

nil

Returned if the label is not converted to a parameterized label.

Examples

labelId=dbCreateLabel(geGetEditCellView() "poly1" 
20:10 "width*height" "lowerLeft" "R0" "stick" 2)
pcDefineParamLabel(labelId "2")

The stretch parameters width and height are defined before using the example. Creates a label using the values of width times height. In this example, database ID produced by the dbCreateLabel function is assigned to a variable named labelId. Defines d_labelId as a parameterized label whose text is evaluated when you place the Pcell. The height of the label is 2 microns.


Return to top
 ⠀
X