Altera Mentor Verification IP Altera Edition AMBA AXI3/4T Instrukcja Użytkownika Strona 205

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 783
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 204
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 set_config() procedure that sets the configuration of the BFM. Refer to the
individual BFM API for valid details.
Each BFM has a get_config() 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.
Przeglądanie stron 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 782 783

Komentarze do niniejszej Instrukcji

Brak uwag