cycle_control
interface is typically for
controlling a cycle counter with event posting capabilities.
The initiator object should call start or stop to start/stop the counting of cycles. And use set_cycle_count is used to configure the current cycle count at the target object.
SIM_INTERFACE(cycle_control) { void (*stop)(conf_object_t *NOTNULL obj); void (*start)(conf_object_t *NOTNULL obj); void (*set_cycle_count)(conf_object_t *NOTNULL obj, cycles_t cycle_count); }; #define CYCLE_CONTROL_INTERFACE "cycle_control"