Execute_transaction(), Example, Information to be transferred, and then calls the – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual

Page 39

Advertising
background image

SystemVerilog Master BFM

execute_transaction()

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

39

April 2014

execute_transaction()

This task executes a master transaction previously created by the

create_master_transaction()

function. The transaction may be blocking (default) or nonblocking, as defined by the
transaction record operation_mode field.

It calls the

execute_transfer()

task for each transfer within a packet, with the number of transfers

defined by the transaction burst_length field.

Example

// Declare a local variable trans to hold the transaction record.
axi4stream_transaction trans;

// Create a master transaction with a transfer count of 3 and assign
// it to the local trans variable.
trans = bfm.create_master_transaction(3);

....

// Execute the trans transaction.
bfm.execute_transaction(trans);

Prototype

task automatic execute_transaction
(

axi4stream_transaction trans

)

Arguments

trans

The axi4stream_transaction record.

Returns

None

Advertising