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

  • 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 87
Mentor Verification IP AE AXI4-Lite User Guide, V10.3
88
SystemVerilog Slave BFM
get_read_addr()
April 2014
get_read_addr()
This nonblocking function returns the address addr of a particular byte in a read transaction. It
is used in a slave test program as a helper function to return the address of a data byte in the
slave memory. If the corresponding index does not exist, then this function returns false;
otherwise, it returns true.
Example
bfm.get_read_addr(read_trans, 0, addr);
Prototype
function bit get_read_addr
(
input axi4_transaction trans,
input int index = 0,
output bit [((AXI4_ADDRESS_WIDTH) - 1) : 0] addr[]
);
Arguments
trans The axi4_transaction record.
index Array element number.
Note: ‘0’ for AXI4-Lite
addr Read address array
Returns
bit Flag to indicate existence of data;
0 = nonexistent.
1 = exists.
Zobrazit stránku 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 412 413

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

Žádné komentáře