![Intel IXP2400 User Manual Download Page 258](http://html1.mh-extra.com/html/intel/ixp2400/ixp2400_user-manual_2071795258.webp)
258
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Simulator APIs
Function Prototype
int for_mod_exit( int model_instance_num )
9.1.5
FOR_MOD_RESET
This routine will be called just after resetting the simulator. The routine allows the foreign model to
reset itself to stay in sync with the simulator
Function Prototype
int for_mod_reset( int model_instance_num )
9.1.6
FOR_MOD_DELETE
This routine will be called just after the simulator deletes all of its model state via the
"
sim_delete
" command. The routine allows the foreign model to delete its internal state to stay
in sync with the simulator.
Function Prototype
int for_mod_delete ( int model_instance_num )
9.2
Overview of XACT API Functions
The following table comprises single-threaded APIs. No interlocks have been designed in to allow
proper behavior for multiple simultaneous thread execution through this interface. If multiple
threads require access to this API, it is the responsibility of those threads to synchronize their
execution so that only one thread at a time is executing any of these routines. Violation of this
constraint may cause unpredictable and/or catastrophic behavior.
Table 12. XACT API Functions (Sheet 1 of 3)
Function Name
Function Description
XACT_find_wildcard_state_name
Returns all state names that match the wildcard name
spec.
XACT_get_handle
Returns a handle to the transactor state
XACT_delete_handle
Deletes the specified handle
XACT_get_state_info
Returns information about the state referenced by the
specified handle
XACT_get_state_value
Gets the value of the state corresponding to the
transactor handle
XACT_get_state_field
Returns the specified bit field of the state
corresponding to the transactor handle.
XACT_get_array_state_value
Returns the value of an array state corresponding to
the handle of the specified array state
XACT_set_state_value
Sets the value of the state corresponding to the
transactor handle.
XACT_set_state_field
Sets the specified bit range of the state corresponding
to the transactor handle
XACT_set_array_state_value
Sets the value of the array state corresponding to the
transactor handle
XACT_add_sim_state
Creates a 32-bit integer simulation state