Slave bfm configuration, Example 4-1. slave bfm configuration, Table 4-1. slave bfm signal width parameters – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual
Page 44

Mentor Verification IP AE AMBA AXI4-Stream User Guide, V10.3
44
SystemVerilog Slave BFM
Slave BFM Configuration
April 2014
Slave BFM Configuration
The slave BFM supports the full range of signals defined for the AMBA AXI4-Stream Protocol
Specification. It has parameters that you use to configure the widths of the data and ID signals,
and transaction fields to configure timeout factors, setup and hold times, and so on.
You can change the data and ID signal widths from their default settings by assigning them new
values, usually in the top-level module of the test bench. These new values are then passed into
the slave BFM using a parameter port list of the slave BFM module.
shows the
slave BFM with the data and ID signal widths defined in module top() and passed in to the slave
BFM mgc_axi4stream_slave parameter port list.
Example 4-1. Slave BFM Configuration
module top ();
parameter AXI4STREAM_ID_WIDTH = 18;
parameter AXI4STREAM_USER_WIDTH = 4;
parameter AXI4STREAM_DEST_WIDTH = 4;
parameter AXI4STREAM_DATA_WIDTH = 32;
mgc_axi4stream_slave #(AXI4STREAM_ID_WIDTH, AXI4STREAM_USER_WIDTH,
AXI4STREAM_DEST_WIDTH, AXI4STREAM_DATA_WIDTH) bfm_slave(....);
Note
In the
code extract, the mgc_axi4stream_slave is the slave BFM interface.
lists the parameter names for the data and ID signals and their default values.
Table 4-1. Slave BFM Signal Width Parameters
Signal Width Parameter
Description
AXI4_ID_WIDTH
ID signal width in bits. This applies to the TID signal.
Refer to the AMBA AXI4-Stream Protocol Specification
for more details. Default: 18.
AXI4_USER_WIDTH
User data signal width in bits. This applies to the TUSER
signal. Refer to the AMBA AXI4-Stream Protocol
Specification for more details. Default: 8.
AXI4_DEST_WIDTH
Destination routing signal width in bits. This applies to
the TDEST signal. Refer to the AMBA AXI4-Stream
Protocol Specification for more details. Default: 18.
AXI4_DATA_WIDTH
Data signal width in bits. This applies to the TDATA
signal. Refer to the AMBA AXI4-Stream Protocol
Specification for more details. Default: 1024.