Configuration, Set_config(), Get_config() – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual

Page 28: Creating transactions, Transaction record, That exists for the life of the transaction

Advertising
background image

Mentor Verification IP AE AXI4-Lite User Guide, V10.3

28

SystemVerilog API Overview
Configuration

April 2014

Configuration

Configuration sets timeout delays, error reporting, and other attributes of the BFM. Each BFM
has a

set_config()

function that sets the configuration of the BFM. Refer to the individual BFM

APIs for details.

Each BFM also has a

get_config()

function that returns the configuration of the BFM. Refer to

the individual BFM APIs for details.

set_config()

The following test program code sets the burst timeout factor for a transaction in the master
BFM.

// Setting the burst timeoutfactor to 1000
master_bfm.set_config(AXI4_CONFIG_BURST_TIMEOUT_FACTOR, 1000);

get_config()

The following test program code gets the protocol signal hold time in the master BFM.

// Getting hold time value

hold_time = master_bfm.get_config(AXI4_CONFIG_HOLD_TIME);

Creating Transactions

To transfer information between a master BFM and a slave DUT over the protocol signals, you
must create a transaction in the master test program. Similarly, to transfer information between
a master DUT and a slave BFM, you must create a transaction in the slave test program. To
monitor the transfer of information using a monitor BFM, you must create a transaction in the
monitor test program.

When you create a transaction, a

Transaction Record

is created and exists for the life of the

transaction. This transaction record can be accessed by the BFM test programs during the life of
the transaction as it transfers information between the master and slave.

Transaction Record

The transaction record contains two types of transaction fields, protocol and operational, that
either transfer information over the protocol signals or define how and when a transfer occurs.

Protocol fields contain transaction information that is transferred over protocol signals. For
example, the prot field is transferred over the AWPROT protocol signals during a write
transaction.

Advertising