Get_read_addr_phase(), Axi3 example, Axi4 example – Altera Mentor Verification IP Altera Edition AMBA AXI3/4TM User Manual

Page 106: Task

Advertising
background image

Mentor VIP AE AXI3/4 User Guide, V10.2b

88

SystemVerilog AXI3 and AXI4 Slave BFMs
get_read_addr_phase()

September 2013

get_read_addr_phase()

This blocking task gets a read address phase previously created by the

create_slave_transaction()

function.

Note

For AXI3, the get_read_addr_phase() also sets the ARREADY protocol signal at the
appropriate time, defined by the transaction record address_ready_delay field.

AXI3 Example

// Declare a local variable to hold the transaction record.
axi_transaction read_trans;

// Create a slave transaction and assign it to the local
// read_trans variable.
read_trans = bfm.create_slave_transaction();

....

// Get the read address phase of the read_trans transaction.
bfm.get_read_addr_phase(read_trans);

AXI4 Example

// Declare a local variable to hold the transaction record.
axi4_transaction read_trans;

// Create a slave transaction and assign it to the local
// read_trans variable.
read_trans = bfm.create_slave_transaction();

....

// Get the read address phase of the read_trans transaction.
bfm.get_read_addr_phase(read_trans);

Prototype

// * = axi | axi4
task automatic get_read_addr_phase
(

*_transaction trans

);

Arguments

trans

The *_transaction record.

Returns

None

Advertising