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

asiQuitSimulator

asiQuitSimulator( 
o_session 
[ ?mode g_mode ] 
) 
=> g_status / nil

Description

This function quits the simulator run process based on the ipc signal being sent to the specified process. By default, the direct integration code sends a hard-kill signal to the simulator process. To change this option and send a soft-kill signal, the ?mode option should be set to true and overloaded for yourSimulator session. 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 its definition.

The function asiQuitSimulator is called internally via asiInterruptSim. To send a hard or soft interrupt signal, asiInterruptSim should be overloaded for your simulator class. This is illustrated in the example. In case you are not concerned with the hard kill scenario, it is recommended that you do not overload asiInterruptSim or asiQuitSimulator methods and use the default behavior.

Arguments

o_session

OASIS session object.

g_mode

Specifies the type of ipc signal sent to quit the simulator process. By default, g_mode is nil, meaning a hard-kill signal (ipcKillProcess) is sent to the simulator. When, g_mode is t, a soft-kill signal (ipcSoftKill) is sent to the simulator process.

Valid Values:
nil: a hard-kill signal (ipcKillProcess) is sent
t : a soft-kill signal (ipcSoftKill) is sent
Default Value: nil

Value Returned

g_status

The simulator successfully quits the simulator.

nil

Otherwise.

Examples

The following examples show how to overload the asiInterruptSim function and use asiQuitSimulator to quit the simulator run process based on the ipc signal:

asiQuitSimulator is called from asiInterruptSim. Therefore, a simulator session can quit based on the type of signal received as follows:

)


Return to top
 ⠀
X