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

asiFormatInitCond

asiFormatInitCond( 
o_session 
p_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

o_session

The simulation session object.

p_fp

The pointer to the control statement file.

Value Returned

t

The initial condition commands are formatted successfully.

nil

The initial condition commands are nor formatted.

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
 ⠀
X