
Development Tools User’s Guide
315
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
E.3.2
Simulation Control
The simulation control functions are:
•
spi4_set_device_stop_control (see
•
spi4_set_port_stop_control (see
)
•
spi4_set_sim_options (see
E.3.2.1
spi4_set_X_stop_control
The
spi4_set_X_stop_control
sets simulation control over the specified spi4 device/port.
int
spi4_set_device_stop_control
(int
device_id,
int
stop_type,
int
num_packets)
int
spi4_set_port_stop_control
(int
device_id,
int
port_num,
int
stop_type,
int
num_packets)
where:
device_id
:
unique device id for each device
port_num
port in the specified device
stop_type
0: no stop-control
1: stop on sending X packets to IXP/MSF
2: stop on receiving X packets from IXP/MSF
num_packets
number of packets received/transmitted for the stop condition to be true
E.3.2.2
spi4_set_sim_options
The
spi4_set_sim_options
sets simulation control over:
•
Running in unbounded mode - spi4 mode at full-bandwidth of IXP/MSF bus.
•
Ignoring the spi4_bfm receive buffer overflow.
•
Ignoring the spi4_bfm transmit buffer underflow.
int
spi4_set_sim_options
(int
run_unbounded,
int
ignore_rx_buffer_overflow,
int
ignore_tx_buffer_underflow)
where:
run_unbounded
1: run unbounded mode otherwise run normal mode
ignore_rx_buffer_overflow
1: ignore spi4_bfm rx FIFO overflow
ignore_tx_buffer_underflow
1: ignore spi4_bfm tx FIFO underflow