Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

gpeLoadReuseTemplate

gpeLoadReuseTemplate(
l_target
t_structureName
t_fileName
[ l_mapping ]
[ n_rows ]
)
=> u_sandbox / nil

Description

Creates a new Modgen constraint by applying the given Modgen reuse template to the specified list of instances.

Arguments

l_target

Lists the instance IDs, Modgen IDs, or figroup IDs to which the Modgen reuse template is to be applied.

t_structureName

Specifies the category directory that contains the Modgen reuse template.

t_fileName

Specifies the Modgen template file name to be applied.

l_mapping

Lists pairs of instance names and symbol names to be mapped.

n_rows

Specifies the number of rows to be generated in the new Modgen.

Value Returned

u_sandbox

ID of the Modgen sandbox object that was created.

nil

The command was unsuccessful.

Example

Applies the dfII.txt template to a set of instances to create a new Modgen.

inst1 = dbFindAnyInstByName(geGetEditCellView() "M11")
inst2 = dbFindAnyInstByName(geGetEditCellView() "M12")
gpeLoadReuseTemplate(list(inst1 inst2) "MOS_Differential_Pair" "diff1.txt")

The following example uses optional arguments to specify mapping and number of rows in the Modgen.

gpeLoadReuseTemplate(list(inst1 inst2) "MOS_Differential_Pair" "diff1.txt" ?mapping list(list(inst1~>name "A") list(inst2~>name "B")) ?rows 2)

Return to top
 ⠀
X