Xact_Set_State_Value; Xact_Set_State_Field; Xact_Set_Array_State_Value; Xact_Add_Sim_State - Intel IXP2400 User Manual

Network processors
Table of Contents

Advertisement

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
Returns
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
Returns
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
Returns
Synopsis
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
Development Tools User's Guide
®
Intel
XACTAPI XACT_set_state_value( XACT_HANDLE
state_handle, unsigned int *value )
1 if function is successful
0 if function is unsuccessful
XACTAPI XACT_set_state_field( XACT_HANDLE
state_handle, unsigned int *value, int msb, int
lsb )
1 if the bit range is valid
0 if the bit range is invalid
XACTAPI XACT_set_array_state_value( XACT_HANDLE
state_handle, int array_index, unsigned int
*value )
1 if function is successful
0 if function is unsuccessful
XACTAPI XACT_set_fifo_state_value( XACT_HANDLE
fifo_handle, int fifo_index, unsigned int *value
)
XACTAPI XACT_add_sim_state( char *state_name )
IXP2400/IXP2800 Network Processors
Simulator APIs
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ixp2800

Table of Contents