asiFormatAnalysis
asiFormatAnalysis(o_analysis p_fp) =>t/nil
Description
Formats the analysis statements to send to Cadence SPICE.
Note for Integrators: This function 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
|
Specifies a file pointer to the file containing the analysis statements to send to the simulator (for simulators that are not in the Cadence SPICE Socket). |
Value Returned
Examples
In the following example, the integrator of the XYZ simulator sends the trial analysis to Cadence SPICE, which formats the analysis to send to the XYZ simulator:
defmethod( asiFormatAnalysis ( (analysis XYZ_trial_analysis) fp ) let(( str ( aelEnv aelEnvCreate( 's ) ) (session asiGetSession( analysis )) )
str = sprintf( nil "* Trial Analysis\n")
str = sprintf( nil "%sptprop XYZ_trial DoIt 1\n" str )
str = sprintf( nil "%sptprop XYZ_trial from %s\n" str
aelEnvInterpret( aelEnv asiGetAnalysisFieldVal
(analysis 'from )))
str = sprintf( nil "%sptprop XYZ_trial to %s\n" str
aelEnvInterpret( aelEnv asiGetAnalysisFieldVal
(analysis 'to )))
str = sprintf( nil "%sptprop XYZ_trial by %s\n" str
aelEnvInterpret( aelEnv asiGetAnalysisFieldVal
(analysis 'by )))
asiSendSim( session str nil nil nil )
asiFormatAnalysisOption( analysis fp )
t
)
)
Return to top