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

Page 73

Advertising
background image

SystemVerilog Slave BFM

execute_read_data_phase()

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

73

April 2014

execute_read_data_phase()

This task executes a read data phase (beat) previously created by the

create_slave_transaction()

task. This phase can be blocking (default) or nonblocking, as defined by the transaction record
operation_mode field.

The execute_read_data_phase() task sets the RVALID protocol signal at the appropriate time
defined by the transaction record data_valid_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 slave transaction and assign it to the local
// read_trans variable.
read_trans = bfm.create_read_transaction(0);

....

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

Prototype


task automatic execute_read_data_phase
(

axi4_transaction trans
int index = 0 // Optional

);

Arguments

trans

The axi4_transaction record.

index

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

Returns

None

Advertising