Get_write_data_phase(), Example, Task, followed by the – Altera Mentor Verification IP Altera Edition AMBA AXI4-Lite User Manual
Page 77
SystemVerilog Slave BFM
get_write_data_phase()
Mentor Verification IP AE AXI4-Lite User Guide, V10.3
77
April 2014
get_write_data_phase()
This blocking task gets a write data phase previously created by the
function.
The get_write_data_phase() sets the WREADY protocol signal at the appropriate time defined
by the data_ready_delay field.
Example
// Declare a local variable to hold the transaction record.
axi4_transaction write_trans;
// Create a slave transaction and assign it to the local
// write_trans variable.
write_trans = bfm.create_slave_transaction(0);
....
// Get the write data phase for the write_trans transaction.
bfm.get_write_data_phase(write_trans, 0, last); //Note: array element 0
Prototype
task automatic get_write_data_phase
(
axi4_transaction trans
int index = 0, // Optional
output bit last
);
Arguments
trans
The axi4_transaction record.
index
(Optional) Data phase (beat) number.
Note: ‘0’ for AXI4-Lite
Returns
last
Flag to indicate that this data phase is the last in the burst.
Returns
None