![Intel IXP2400 Скачать руководство пользователя страница 312](http://html1.mh-extra.com/html/intel/ixp2400/ixp2400_user-manual_2071795312.webp)
312
Development Tools User’s Guide
Intel
®
IXP2400/IXP2800 Network Processors
SPI4 Bus Functional Model
E.3
Console Functions
The SPI4 BFM supports the concept of a device/port as devised by the IXP2800 development tool
(WB). This concept allows for single instantiation of SPI4 BFM via a transactor command,
foreign_model
, to handle multiple logical spi4 devices in the simulation environment. Each spi4
device is dubbed with a unique device id; each device has its own configuration. This configuration
information includes:
•
Device/Port configuration
•
Flow control configuration
•
Simulation control
•
Statistic information access
The following sections will describe how to use each of the console functions supported by the
latest
spi4_bfm.dll
.
E.3.1
Device/Port Configuration
The device/port configuration functions are:
•
spi4_define_device (see
•
spi4_set_device_rx_param (see
)
•
spi4_set_port_rx_param (see
)
•
spi4_set_device_tx_param (see
•
spi4_set_port_tx_param (see
•
spi4_create_device (see
•
spi4_connect_device (see
•
spi4_enable_device (see
)
•
spi4_enable_port (see
E.3.1.1
spi4_define_device
The
spi4_define_device
function defines a spi4 device for use in the simulation.
int
spi4_define_device
(char
*device_type,
int
device_id,
int
num_ports
)
where:
device_type
:
N/A,
device_id
:
unique device id for each device,
num_ports
number of ports in the specified device