Get_read_data_phase(), Example, In a master bfm test program, you call the – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual

Page 53: Task to investigate whether a, Followed by the, Task to

Advertising
background image

SystemVerilog Master BFM

get_read_data_phase()

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

53

April 2014

get_read_data_phase()

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

create_read_transaction()

task.

Note

The get_read_data_phase() sets the RREADY protocol signal at the appropriate time
defined by the data_ready_delay field and 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 read transaction with start address of 0 and assign
// it to the local read_trans variable.
read_trans = bfm.create_read_transaction(0);

....

// 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