Altera Mentor Verification IP Altera Edition AMBA AXI4-Li Uživatelský manuál Strana 89

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 413
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 88
SystemVerilog Slave BFM
set_read_data()
Mentor Verification IP AE AXI4-Lite User Guide, V10.3
89
April 2014
set_read_data()
This nonblocking function sets a read data in the axi4_transaction record data_words field. It is
used in a slave test program as a helper function to read from the slave memory given the
address addr, data beat index, and the read data arguments.
Example
bfm.set_read_data(read_trans, 0, addr, data);
Prototype
function bit set_read_data
(
input axi4_transaction trans,
input int index = 0,
input bit [((AXI4_ADDRESS_WIDTH) - 1) : 0] addr[],
input bit [7:0] data[]
);
Arguments
trans The axi4_transaction record.
index (Optional) Data byte array element number.
Note: ‘0’ for AXI4-Lite
addr Read address.
data Read data byte.
Returns
None
Zobrazit stránku 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 412 413

Komentáře k této Příručce

Žádné komentáře