Get_packet(), Example – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual
Page 63
Advertising

SystemVerilog Monitor BFM
get_packet()
Mentor Verification IP AE AMBA AXI4-Stream User Guide, V10.3
63
April 2014
get_packet()
This blocking task gets a monitor packet previously created by the
function.
It calls the
task for each transfer of the packet with the number of transfers
defined by the transaction record burst_length field.
Example
// Declare a local variable to hold the transaction record.
axi4stream_transaction trans;
// Create a monitor transaction and assign it to the local
// trans variable.
trans = bfm.create_monitor_transaction();
....
// Get the packet of the trans transaction.
bfm.get_packet(trans);
Prototype
task automatic get_packet
(
axi4stream_transaction trans
);
Arguments
trans
The axi4stream_transaction record.
Returns
None
Advertising