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

asiInterruptSim

asiInterruptSim( 
o_session
) 
=> g_status / nil

Description

This method provides an interrupt to the simulation run process for a session. It is associated with the Simulation->Stop action in the user interface. This method is called by the environment. Therefore, you should not call it directly from the interface. This method can be re-defined for the interface. Use callNextMethod in this definition.

This function is defined as a method for the Analog Class. You can overload this method for your simulator class, as illustrated in the example. If you want to send a soft interrupt signal to your simulator, refer to the example mentioned in the asiQuitSimulator function.

Arguments

o_session

The OASIS session object.

Value Returned

g_status

Successful interruption of a simulation run process.

nil

Errors when interrupting the simulation.

Examples

The following example shows how to override a method to interrupt a simulation run process:

defmethod(  asiInterruptSim (( session yourSimulator_session ))
    println("yourSimulator : Simulation stopped by user")
    <insert code you need >
    callNextMethod()
    <insert code you need >
)

Return to top
 ⠀
X