
Development Tools User’s Guide
263
Intel
®
IXP2400/IXP2800 Network Processors
Simulator APIs
9.3.8
XACT_set_state_value
This function sets the value of the state corresponding to the transactor handle. Note that the
"value" pointer is assumed to point to an array of unsigned ints large enough to accommodate the
value of the state element. Thus, the array length must be =
(state_width/32) +
((state_width%32) ? 1 : 0 )
. If a handle to an array state is specified that was not
associated to a specific array element, this function will fail.
Synopsis
XACTAPI XACT_set_state_value( XACT_HANDLE
state_handle, unsigned int *value )
Returns
1 if function is successful
0 if function is unsuccessful
9.3.9
XACT_set_state_field
This function behaves analogously to
XACT_set_state_val
with the exception that the data
is field inserted into the specified bit range.
Synopsis
XACTAPI XACT_set_state_field( XACT_HANDLE
state_handle, unsigned int *value, int msb, int
lsb )
Returns
1 if the bit range is valid
0 if the bit range is invalid
9.3.10
XACT_set_array_state_value
This function behaves the same as
XACT_set_state_value
, except that the handle must
correspond to an array state, and a valid array index must be specified. If the specified handle was
associated to a particular element of an array, its predefined array index is ignored for the purpose
of this call.
Synopsis
XACTAPI XACT_set_array_state_value( XACT_HANDLE
state_handle, int array_index, unsigned int
*value )
Returns
1 if function is successful
0 if function is unsuccessful
Synopsis
XACTAPI XACT_set_fifo_state_value( XACT_HANDLE
fifo_handle, int fifo_index, unsigned int *value
)
9.3.11
XACT_add_sim_state
This function creates a 32-bit integer simulation state. This state type is equivalent to that created
by defining a C integer at the transactor command line (e.g. "int foo;"). This state is destroyed upon
executing a "sim_reset" command, unless the "/preserve" qualifier is appended to "sim_reset". This
*/
Synopsis
XACTAPI XACT_add_sim_state( char *state_name )