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

maeSetVar

maeSetVar(
t_varname
g_valValue
[ ?typeName t_typeName ]
[ ?typeValue l_typeValue ]
[ ?run t_runName ]
[ ?session t_sessionName ] 
)
=> t / nil

Description

Adds a variable to the given test or corner in the given ADE Explorer or ADE Assembler session. If the variable already exists, its value is updated.

Arguments

t_varnam

Name of the variable.

g_valValue

Value of the variable.

?typeName t_typeName

Type of the variable.

  • test: Adds the specified variable to the given test. This is the default value.
  • corner: Adds the specified variable to the given corner.

?typeValue t_typeValue

List of the corners or tests for which variable has to be added.

The default value is Global.

?run t_runName

Name of the run in run plan to which you want to add a variable.

?session t_sessionName

Name of the ADE Explorer or ADE Assembler session where you want to make these changes.

If not specified, the current session is used.

Value Returned

t

The specified variable is added to the given test or corner.

nil

The specified variable is not added to the given test or corner.

Examples

Sets the value for the global variable, Cap to 5p.

maeSetVar("Cap" "5p") 

Set value for variable Cap to 5p in test AC.

maeSetVar("Cap" "5p" ?typeName "test" ?typeValue '("AC")) 

Set value for variable Cap to 5p in corners C1, C2, and C3:

maeSetVar("Cap" "5p" ?typeName "corner" ?typeValue '("C1" "C2" "C3")) 

Returns the value of a variable from a previous run and update it for the next run.

Res=maeOpenResults(?run "vco_char")
kvco_val=maeGetOutputValue("kvo" "vco_char" ?cornerName "nominal")
maeCloseResults(Res)
maeSetVar("KVCO" kvco_val)
;; This example script can be helpful in run plans.

Related Topics

maeCloseResults

maeGetOutputValue

maeOpenResults

maeSetVar


Return to top
 ⠀
X