Expand description
SIMICS APIs for event management
Structsยง
- Simplified event management mechanism using dynamic dispatch to circumvent complex trait requirements due to difference in callback specification and post time when using the canonical SIMICS APIs
- Flags for an event
Functionsยง
- _event_
cancel_ ๐step All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled. - _event_
cancel_ ๐time All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled. - Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- _event_
post_ ๐cycle An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class. - _event_
post_ ๐step An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class. - _event_
post_ ๐time An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class. - _register_
event ๐Registers events identified by name and to be posted for objects of class cl, and returns the event class to be used in other calls. Callbacks are provided when posting events individually, this function registers a FFI callback compatible with the closure parameters for posting events. - All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled.
- All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled.
- event_
filter_ ๐handler - Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- Return the number of cycles/seconds/steps to the first event of evclass of obj posted on clock for which pred is true, or โ1 if no event matched. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), the first evclass event for obj on clock will be used.
- An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class.
- An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class.
- An event of evclass for object obj is posted on clock to occur at a given point in the future. The user_data will be associated with the event. The clock is the object that should be used for keeping track of time for the event. It can be a processor or an instance of the clock class.
- register_
event ๐Registers events identified by name and to be posted for objects of class cl, and returns the event class to be used in other calls. Callbacks are provided when posting events individually, this function registers a FFI callback compatible with the closure parameters for posting events.
Type Aliasesยง
- Alias for
cycles_t
- A callable closure which receives a pointer to the triggering object when an event occurs
- Alias for
event_class_t
- A callback which is called to determine whether action should be taken on an event