266
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Simulator APIs
9.4.4
XACT_Define_Callback_Sim_Delete
Calls callback when the simulation has been destroyed via the "sim_delete" command
Synopsis
XACTAPI XACT_Define_Callback_Sim_Delete(
void(*fp)() )
9.4.5
XACT_Define_Callback_Restore
Calls callback when the simulation state has been reloaded via the "restore" command
Synopsis
XACTAPI XACT_Define_Callback_Restore(
void(*fp)() )
9.4.6
XACT_Define_Callback_Sim_In_Progress
Define callback that is invoked whenever the simulator starts or stops a simulating step
Synopsis
XACTAPI XACT_Define_Callback_Sim_In_Progress(
void (*fp)( int currently_simulating ) )
9.4.7
XACT_Define_Callback_Default_Go_Clock_Domain
Define callback to be invoked whenever default clock domain for "go" simulation changes
Synopsis
XACTAPI
XACT_Define_Callback_Default_Go_Clock_Domain(
void (*fp)( char * clk_name ) )
9.4.8
XACT_Define_Callback_State_Transition
Define a callback to be invoked when a specified state makes a transition. The callback priority
allows the user to specify the order in which all the defined callbacks are made in; the higher the
callback priority, the earlier the callback is made. The
user_context
argument allows the
caller of this function to pass contextual information to the callback routine if required. Note that a
callback to cancel this callback must be defined prior to executing this routine in order for this
callback definition to be successful (see
XACT_Define_Cancel_Callback_State_Transition()
below). If the specified
handle corresponds to an array state, the handle must also specify a particular valid element of the
array. Note that only 1 state transition callback may be defined per handle. If you desire 2 more
more callbacks for a particular state, acquire multiple handles to the state via
"
XACT_get_handle()
" and assign 1 callback to each handle. This routine returns 1 if
successful, 0 otherwise.
Synopsis
XACTAPI XACT_Define_Callback_State_Transition(
XACT_HANDLE transitioning_state, int
callback_priority, int(*fp)( XACT_HANDLE
transitioning_state, void *user_context, int
array_index),void *user_context )