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

asiFormatKeepList

asiFormatKeepList( 
o_session 
p_fp
) 
=> t / nil

Description

Formats and prints the signal save commands to the control statement file. At the asiAnalog class this routine returns t. You need to create your own asiFormatKeepList routine.

Arguments

o_session

The simulation session object.

p_fp

The pointer to the control statement file.

Value Returned

t

The save commands are formatted successfully.

nil

The save commands are not formatted.

Examples

The following example shows how to overload the asiFormatKeepList function:

defmethod( asiFormatKeepList ( ( session spectre_session ) fp )
   let( ((netlistDir (asiGetAnalogNetlistDir session))
        (keepList (asiGetKeepList session))
        nameList )
       when( keepList
            artFprintf(fp "save ")
            foreach( keep keepList
                when( memq( asiGetSelObjType( keep ) '( net terminal ))
                    nameList = asiMapOutputName( netlistDir
                        asiGetSelObjType( keep ) asiGetSelObjName( keep ))
                    foreach( name nameList 
                        artFprintf( "%s " name )
                    )
                )
            )
            artFprintf(fp "\n")
        )
        t
    )
)

Return to top
 ⠀
X