
254
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
Transactor
•
C "int" =11
•
User-Defined=12
•
Vector=13
•
User-Defined Function=14
•
Macro=15
•
Internal=24
•
Statistic=16
•
Watch=17
•
Model Artifact=18
•
Constant=19
•
Imported=20
•
Ubreak=21
•
Statistic=22
•
String=23
system( char *shell_cmd ):
Implements the C "system" function which passes a shell
command to the OS or executing shell. The return status resulting from
the execution of the command is returned by this function
uaddr( control_store_state, label_name ):
Returns the micro-address value of
the specified label name within the specified control_store_state. If the
label is not found, it returns -1
uninitialized()
:
Returns 1 if the model is not yet initialized; otherwise it returns 0.
valid_elements( array_state_name ):
Returns the number of valid elements in the
specified array. If an array index is included in the array_state_name, the
function returns a boolean value reflecting the validity of only the
specified array element.
valid_file( file_name ):
Indicates if the specified file_name exists. If it does, the entire
path and file name is returned; otherwise an empty string is returned. The
specified file name can have an absolute or relative path included, or it
can assume the default path specified by the current working directory.
The file specification can include a wildcard name which will return a
matched file name only if the specification matches exactly one (1) file.
8.7
Error Handling
When an error is generated, it is printed to the console and to any log files that have been
configured to record simulator responses. Additionally, the built-in simulation state
"
sim.error_count
" is incremented. The built-in simulation state,
"
sim.error_handle_mode
", can be used to alter this default error handling behavior. See
for the error handling values and their corresponding modes.
The default error handle mode value is 40.