asiCheck
asiCheck(o_analysis|o_anaOption|o_envOption|o_simOption|o_keepOptionr_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
|
Form containing the analysis or option fields. This argument is passed into the |
Value Returned
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