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

Customizing an Inherited Method for Your Simulator

The callNextMethod procedure lets you use an inherited method and add some code before or after it.

For example, suppose you need to modify the transient analysis to add transient options for your simulator. You need to write a method to send the information to Cadence SPICE. There is already a method defined to send a transient analysis to Cadence SPICE. Because there are no transient options in the default analysis, the code does not send options. So you can use callNextMethod() to call the method to format the analysis, then call your procedure to format the options.

defmethod(asiFormatAnalysis ( 
    (analysis <yourSimulator>_tran_analysis) fp)
    callNextMethod()
    asiFormatAnalysisOption(analysis fp)
    t
)

In this example, callNextMethod calls the analog asiFormatAnalysis method to format the transient analysis and send it to Cadence SPICE. Then your asiFormatAnalysis method calls asiFormatAnalysisOption to format and send the options.

Related Topics

Cadence SKILL++ Object System Reference.


Return to top
 ⠀
X