cycle cycle_event
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

cycle_control

Description
The 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"

Execution Context
Cell Context for all methods.

cycle cycle_event