Get_read_data_phase(), Example – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual

Page 102

Advertising
background image

Mentor Verification IP AE AXI4-Lite User Guide, V10.3

102

SystemVerilog Monitor BFM
get_read_data_phase()

April 2014

get_read_data_phase()

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

create_monitor_transaction()

function. The get_read_data_phase() sets the transaction_done

field to 1 to indicate the whole read transaction has completed.

Example

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

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

....

// Get the read data phase for the read_trans transaction.
bfm.get_read_data_phase(read_trans, 0); //Note: array element 0

Prototype

task automatic get_read_data_phase
(

axi4_transaction trans
int index = 0 // Optional

);

Arguments

trans

The axi4_transaction record.

index

(Optional) Data phase (beat) number.
Note: ‘0’ for AXI4-Lite

Returns

None

Advertising