event_handler
interface is implemented by
the vtime
port object and is invoked by CPUs or clocks
implementing the event_delta
interface.
The handle_event method should be called when the number of cycles to the next event has reached zero. The method invokes the next event and notifies the CPU or clock about the cycle count to the next pending event by invoking the set_delta method.
The stop method should be called if a dispatched
event requests the simulation to be stopped. The method is typically
called from the stop method of the execute
interface. If the stop method is not called, then time may be
advanced by a fraction of a cycle after an event has been dispatched.
SIM_INTERFACE(event_handler) { bool (*handle_event)(conf_object_t *NOTNULL obj); void (*stop)(conf_object_t *NOTNULL obj); }; #define EVENT_HANDLER_INTERFACE "event_handler"