
264
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Simulator APIs
Returns
1 if the state was created
0 if the state pre-existed as a non-integer, non-user-defined state
-1 if the state pre-existed as a previously defined user-defined integer
state */
9.3.12
XACT_HANDLE XACT_alloc_user_sim_state
This function creates a user-specified simulation state.
Synopsis
XACTAPI_NORET XACT_HANDLE
XACT_alloc_user_sim_state( char *state_name, int
width )
Returns
a handle to the created state if the function is successful
INVALID_XACT_HANDLE if the function is unsuccessful
9.3.13
XACT_start_of_cycle
This function tests the current simulation time to see if it corresponds to the time when the
specified clock domain starts a new cycle.
Synopsis
XACTAPI XACT_start_of_cycle( XACT_HANDLE
clock_handle )
Returns
1 if there is a correspondence
0 if the times do not correspond
9.3.14
XACT_full_cycle_simulated
This function tests the current simulation time to see if it corresponds to the time when the
specified clock has been fully simulated,
Synopsis
XACTAPI XACT_full_cycle_simulated( XACT_HANDLE
clock_handle )
Returns
1 if there is a correspondence
0 if the times do not correspond
9.3.15
XACT_clock_cycle
This function returns the clock cycle number (starting at 0) for the specified clock It returns -1 if an
error occurred during routine execution. If the simulation time does not fall on a whole multiple of
the specified clock, the remainder is ignored.
Synopsis
XACTAPI XACT_clock_cycle( XACT_HANDLE
clock_handle )