asiFormatInitCond
asiFormatInitCond(o_sessionp_fp) =>t/nil
Description
Formats and prints the initial condition commands to the control statement file. This routine prints the string .IC followed by the initial conditions in V(net)=voltage pairs.
Arguments
Value Returned
Examples
The following example shows how to overload the asiFormatInitCond function:
defmethod( asiFormatInitCond (( session asiAnalog_session ) fp )
let( ( (icList asiGetInitCondList( session ))
( netlistDir asiGetAnalogNetlistDir( session ) ))
when( icList
artFprintf(fp ".IC ")
foreach( obj icList
foreach( name
asiMapOutputName( netlistDir asiGetSelObjType( obj )
asiGetSelObjName( obj ) )
artFprintf(fp "V( %s )=%s" name asiGetSelObjValue(obj))
)
)
artFprintf(fp "\n")
)
t
)
)
Return to top