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

maeImportOutputsFromFileInDocuments

maeImportOutputsFromFileInDocuments(
t_filename 
[ ?operation t_operation ]
[ ?test t_test ]
[ ?session t_session ]

)
=> t / nil

Description

Imports outputs from the specified CSV file in the documents directory to one or all tests in an already opened maestro cellview. The usage of this function is similar to axlOutputsImportFromFile that can import outputs from a CSV file from any location.

Arguments

t_filename

The name of the CSV file from which outputs are to be imported.

?operation t_operation

Specifies how to use the imported outputs.

Valid values are:

  • overwrite: Overwrites the existing set of outputs that are already defined with the same name as that of an output being imported.
    This is the default value.
  • retain: Retains the existing set of outputs when the name of an existing output matches with that of an output being imported.
  • merge: Keeps the existing set of outputs and merges them with the outputs imported from the specified CSV file.

?test t_test

Name of the test for which the imported outputs are to be used.

Specify this argument only when the test name is not saved in the CSV file being imported. If the CSV file contains the Test column, each output is imported for the specified test.

If you wish to use the imported outputs for all the tests, set the value for this argument to "Import to All Tests".

Default value: ""

?session t_session

Name of the maestro session.

Value Returned

t

The outputs are imported from the specified CSV file.

nil

Indicates an error.

Examples

The following example opens a maestro cellview in edit mode and imports all outputs from the specified CSV file into the documents directory.

Opens maestro cellview in edit mode

sessionName = maeOpenSetup("Two_Stage_Opamp" "OpAmp" "maestro_nominal_base") "fnxSession0"

Retrieves the files from the documents directory

getDirFiles(strcat(axlGetSetupDBDir(axlGetMainSetupDB(sessionName)) "/documents"))
(".." "variant6.il" "variant1.il" "." "variant2.il" "maestro_child.csv" "variant3.il" "variant5.il" "variant1.csv" "maestro_child.il" "variant4.il"
)

Imports the outputs from the CSV file in the documents directory

maeImportOutputsFromFileInDocuments("maestro_child.csv")
=> t

Return to top
 ⠀
X