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

Page 77: Task to receive the resp, Ll the

Advertising
background image

SystemVerilog AXI3 and AXI4 Master BFMs

get_write_response_phase()

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

59

September 2013

get_write_response_phase()

This blocking task gets a write response phase previously created by the

create_write_transaction()

task.

Note

The get_write_response_phase() sets the transaction_done field to 1 when the
transaction completes to indicate the whole transaction is complete. For AXI3, the
get_write_response_phase() also sets the BREADY protocol signal at the appropriate
time, defined by the transaction record write_response_ready_delay field.

Note

AXI3 Example

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

// Create a write transaction with start address of 0 and assign
// it to the local write_trans variable.
write_trans = bfm.create_write_transaction(0);

....

// Get the write response phase of the write_trans transaction.
bfm.get_write_response_phase(write_trans);

AXI4 Example

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

// Create a write transaction with start address of 0 and assign
// it to the local write_trans variable.
write_trans = bfm.create_write_transaction(0);

....

// Get the write response phase of the write_trans transaction.
bfm.get_write_response_phase(write_trans);

Prototype

// * = axi | axi4
task automatic get_write_response_phase

(

*_transaction trans

);

Arguments

trans

The *_transaction record.

Returns

None

Advertising