Altera Mentor Verification IP Altera Edition AMBA AXI3/4T Manuel d'utilisateur Page 205

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 783
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 782 783

Commentaires sur ces manuels

Pas de commentaire