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

asiFormatAnalysisList

asiFormatAnalysisList( 
o_ana 
p_fp
) 
=> t / nil

Description

Formats all enabled analyses by calling asiFormatAnalysis.

Arguments

o_ana

The analysis object.

p_fp

The pointer to the control statement file.

Value Returned

t

All enabled analyses are formatted successfully.

nil

All enabled analyses are not formatted.

Examples

The following example shows how to overload the asiFormatAnalysisList function:

defmethod(asiFormatAnalysisList ((session yourSimulator_session) fp)
;; add your code
callNextMethod()
;; add your code
t
)

atAnalysis

asiFormatAnalysis( 
o_ana 
p_fp
) 
=> t / nil

Description

Formats and prints analysis statements to the control file. For the general asiAnalog class, it follows this routine: prints the analysis name by calling asiGetAnalysisName; prints the list of signals by calling asiGetAnalysisSigList and formats them in parentheses [for example: (net1 net2)]; prints the analysis field list in name=value pairs; prints the analysis options in name=value pairs; uses asiGetFormattedVal() to obtain the print string for an analysis field value or an analysis option value. Please see the description of asiGetFormattedVal routine for more details.

Arguments

o_ana

The analysis object.

p_fp

The pointer to the control statement file.

Value Returned

t

The analysis statements are formatted successfully.

nil

The analysis statements are not formatted.

Examples

The following example shows how to overload the asiFormatAnalysis function:

defmethod( asiFormatAnalysis ((ana asiAnalog_analysis) fp)
    let(( name type sigList simVal (session asiGetSession(ana) ))
        name = asiGetAnalysisName( ana )
  sigList = asiGetAnalysisSigList( session ana )
        ;;; prints analysis name
        artFprintf(fp "%s " name )
 
        ;;; handls analysis signals
        when( sigList
            artFprintf( fp "( ")
            foreach( netField sigList
                when( simVal = asiGetFormattedVal( netField )
                    artFprintf(fp "%s " simVal)
                )
            )
            artFprintf( fp ") ")
        )
 
        ;;; prints analysis fields
        foreach( f asiGetAnalysisSimFieldList( session ana )
            when( simVal = asiGetFormattedVal( f )
                artFprintf(fp "%s=%s " asiGetName(f) simVal)
            )
        )
 
        ;;; prints analysis options
        foreach( o asiGetAnalysisOptionList( ana )
            when( simVal = asiGetFormattedVal(o)
                artFprintf(fp "%s=%s " asiGetName(o) simVal)
            )
        )
 
        artFprintf(fp "\n")
        t
    )
)

Return to top
 ⠀
X