asiSendOptions
asiSendOptions(o_session) =>t/nil
Description
Sends the simulation options 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
Value Returned
Examples
defmethod( asiSendOptions ( ( session XYZ_session )) let( ( sendMethod simulatorOptionVariableList value command ) simulatorOptionVariableList = asiGetSimOptionNameList(
session )
foreach( name simulatorOptionVariableList
value = asiGetSimOptionVal( session name )
sendMethod = asiGetSimOptionSendMethod( session name )
if( artBlankString( value ) then
sprintf( command "deprop XYZ_Opt %s\n" name )
else
caseq( sendMethod
( set
sprintf( command "set %s=%s\n"
name value )
)
( ptprop
sprintf( command "ptprop XYZ_Opt
%s %s\n"name value )
)
( psprop
sprintf( command "psprop XYZ_Opt
%s \"%s\" \n"name value )
)
( t
warn( "don't know how to send XYZ
option %s\n." name )
command = nil
)
)
)
when( command
asiSendSim( session command nil nil nil )
)
)
t
)
)
Return to top