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

SystemVerilog AXI3 and AXI4 Monitor BFMs
get_rw_transaction()
Mentor VIP AE AXI3/4 User Guide, V10.2b
117
September 2013
get_rw_transaction()
This blocking task gets a complete read or write transaction previously created by the
function.
It updates the *_transaction record for the complete transaction.
AXI3 Example
// Declare a local variable to hold the transaction record.
axi_transaction monitor_trans;
// Create a monitor transaction and assign it to the local
// monitor_trans variable.
monitor_trans = bfm.create_monitor_transaction();
....
// Get the complete monitor_trans transaction.
bfm.get_rw_transaction(monitor_trans);
AXI4 Example
// Declare a local variable to hold the transaction record.
axi4_transaction monitor_trans;
// Create a monitor transaction and assign it to the local
// monitor_trans variable.
monitor_trans = bfm.create_monitor_transaction();
....
// Get the complete monitor_trans transaction.
bfm.get_rw_transaction(monitor_trans);
Prototype
// * = axi | axi4
task automatic get_rw_transaction
(
*_transaction trans
)
Arguments
trans
The *_transaction record.
Returns
None