op_sim_at_end()
Abstract
Determines if the simulation is processing its end of simulation.
Syntax
op_sim_at_end ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
Boolean
Boolean value indicating if the simulation is currently in endsim mode. This value is OPC_TRUE if in endsim mode, OPC_FALSE if not.
Example
if (op_sim_at_end ())
{
/* do end of sim things */
}
Details
This KP is useful for code that needs to distinguish being invoked during normal simulation versus during the end phase, such as function calls scheduled with
op_intrpt_schedule_call (OPC_INTRPT_SCHED_CALL_ENDSIM, ...)
Purpose
Provides a mechanism for determining if a simulation is performing its end of simulation activities.
Errors
- No errors are trapped.
Reference
- None.