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

asiFormatNodeSet

asiFormatNodeSet(
o_session 
p_fp 
) 
=> t / nil

Description

Formats and prints the nodeset commands to the control statement file. This routine prints .NODESET and then the nodesets 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 nodeset commands are formatted successfully.

nil

The nodeset commands are not formatted.

Examples

The following example shows how to overload the asiFormatNodeSet function:

defmethod( asiFormatNodeSet( ( session asiAnalog_session ) fp )
    let( ( (nodeSetList asiGetNodeSetList( session ))
           ( netlistDir asiGetAnalogNetlistDir( session ) ))
        when( nodeSetList
            artFprintf(fp ".NODESET ")
            foreach( obj nodeSetList
                foreach( name
                    asiMapOutputName( netlistDir asiGetSelObjType( obj )
                                        asiGetSelObjName( obj ) )
                    artFprintf(fp "V( %s )=%s" name 
         asiGetSelObjValue(obj))
                )
            )
            artFprintf(fp "\n")
        )
        t
    )
)

Return to top
 ⠀
X