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

asiCheck

asiCheck( 
o_analysis | o_anaOption | o_envOption | o_simOption | o_keepOption 
r_form 
)
=> t / nil

Description

Called by the environment to check values in the analysis and option fields.

Note for Integrators: This procedure is defined as a method for the Analog Class. You can overload this method for your simulator class, as shown in the example for integrators.

Arguments

o_analysis

Specifies the analysis object.

o_anaOption

Specifies the analysis option object.

o_envOption

Specifies the environment option object.

o_simOption

Specifies the simulator option object.

o_keepOption

Specifies the keep option object.

r_form

Form containing the analysis or option fields. This argument is passed into the asiCheck method by the environment.

Value Returned

t

The field values are in the correct range.

nil

Indicates an error.

Examples

Checks the values of the form fields in an ac analysis.

defmethod( asiCheck ( ( ana analog_ac_analysis ) form )

    asiCheckBlankNumericGreater( ana form ’from 0 )
    asiCheckBlankNumericGreater( ana form ’to 0 )

    if( equal( asiGetAnalysisFormFieldVal( form ’ac ’incrType ) 
     "Linear" ) then asiCheckBlankNumericGreater( ana form 
’lin 0 )
else
asiCheckBlankNumericGreater( ana form ’log 0 )
)
    asiCheckMultipleGreater( ana form ’to ’from )
)

Checks whether the ABSTOL simulator option for Spectre has a value greater than zero. The Spectre simulator options class must be defined before the asiCheck function is used.

defclass( spectre_simOption ( analog_simOption ) ( ) )

defmethod( asiCheck ( ( option spectre_simOption ) form )
    asiCheckBlankNumericGreater( option form 'ABSTOL 0 )
)
If you want to write methods for analyses, analysis options, environment options, simulator options, or keep options, you must define the appropriate class in your classes.il file.

Return to top
 ⠀
X