Configuration, Set_config(), Get_config() – Altera Mentor Verification IP Altera Edition AMBA AXI3/4TM User Manual
Page 205

VHDL API Overview
Configuration
Mentor VIP AE AXI3/4 User Guide, V10.2b
187
September 2013
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
procedure that returns the 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(AXI_CONFIG_BURST_TIMEOUT_FACTOR, 1000, bfm_index,
axi_tr_if_0(bfm_index))
In the above example, the bfm_index specifies the BFM.
Note
The above test program code segment is for AXI3 BFMs. Substitute the
AXI_CONFIG_BURST_TIMEOUT_FACTOR enumeration with
AXI4_CONFIG_BURST_TIMEOUT_FACTOR, and the axi_tr_if_0 path name with
axi4_tr_if_0 for AXI4 BFMs.
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(AXI_CONFIG_HOLD_TIME, config_value, bfm_index,
axi_tr_if_0(bfm_index))
In the above example, the bfm_index specifies the BFM.
Note
The above test program code segment is for AXI3 BFMs. Substitute the
AXI_CONFIG_HOLD_TIME enumeration with AXI4_CONFIG_HOLD_TIME, and the
axi_tr_if_0 path name with axi4_tr_if_0 for AXI4 BFMs.