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

Page 143

Advertising
background image

SystemVerilog AXI3 and AXI4 Monitor BFMs

get_write_data_burst()

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

125

September 2013

get_write_data_burst()

This blocking task gets a write data burst previously created by the

create_monitor_transaction()

function.

It calls the

get_read_data_phase()

task for each beat of the data burst, with the length of the

burst defined by the transaction record burst_length field.

AXI3 Example

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

// Create a monitor transaction and assign it to the local
// write_trans variable.
write_trans = bfm.create_monitor_transaction();

....

// Get the write data burst of write_trans transaction.
bfm.get_write_data_burst(write_trans);

AXI4 Example

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

// Create a monitor transaction and assign it to the local
// write_trans variable.
write_trans = bfm.create_monitor_transaction();

....

// Get the write data burst of the write_trans transaction.
bfm.get_write_data_burst(write_trans);

Prototype

// * = axi | axi4
task automatic get_write_data_burst
(

*_transaction trans

);

Arguments

trans

The *_transaction record.

Returns

None

Advertising