Configuration, Set_config(), Get_config() – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual
Page 139: Creating transactions, Transaction record, Configuration creating transactions

VHDL API Overview
Configuration
Mentor Verification IP AE AXI4-Lite User Guide, V10.3
139
April 2014
Configuration
Configuration sets timeout delays, error reporting, and other attributes of the BFM.
Each BFM has a
procedure that sets the configuration of the BFM. Refer to the
individual BFM API for valid details. Each BFM has a
configuration of the BFM. Refer to the individual BFM API for details.
set_config()
For example, the following test program code sets the burst timeout factor for a transaction in
the master BFM:
-- Setting the burst timeout factor to 1000
set_config(AXI4_CONFIG_BURST_TIMEOUT_FACTOR, 1000, bfm_index,
axi4_tr_if_0(bfm_index))
In the above example, the bfm_index specifies the BFM.
get_config()
For example, the following test program code gets the protocol signal hold time in the master
BFM:
-- Getting the burst timeout factor
get_config(4_CONFIG_HOLD_TIME, config_value, bfm_index,
axi4_tr_if_0(bfm_index))
In the above example, the bfm_index specifies the BFM.
Creating Transactions
To transfer information between a master BFM and 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.
Creating a transaction also creates a
that exists for the life of the
transaction. This transaction record can be accessed by the BFM test program during the life of
the transaction as it transfers information between the master and slave.
Transaction Record
The transaction record contains transaction fields. There are two main types of transaction
fields, protocol and operational.