Tready signal delay transaction field, Transfer done, Transaction done – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual
Page 85
VHDL API Overview
Operational Transaction Fields
Mentor Verification IP AE AMBA AXI4-Stream User Guide, V10.3
85
April 2014
TREADY Signal Delay Transaction Field
contains a ready_delay transaction field to configure the delay of the
TREADY signal. The setting of the ready_delay transaction field is performed in the slave
BFM test program by calling the local ready_delay() procedure.
shows the slave BFM test program implementing a ready_delay() procedure that
inserts a specified delay before the assertion of the TREADY signal.
Example 7-12. Slave Test Program ready_delay() Procedure
-- Procedure : ready_delay
-- This is used to set ready delay to extend the transfer
procedure ready_delay(signal tr_if : inout axi4stream_vhd_if_struct_t) is
begin
-- Making TREADY '0'. This will consume one cycle.
execute_stream_ready(0, index, tr_if);
-- Two clock cycle wait. In total 3 clock wait.
for i in 0 to 1 loop
wait_on(AXI4STREAM_CLOCK_POSEDGE, index, tr_if);
end loop;
-- Making TREADY '1'.
execute_stream_ready(1, index, tr_if);
end ready_delay;
Transfer Done
A transfer_done transaction field is set to 1 to indicate when each protocol transfer completes.
Transaction Done
A transaction_done transaction field is set to 1 to indicate when each protocol transaction
completes.
In a slave BFM, you call the
BFM procedure to investigate whether a transaction is
complete. If complete, the procedure returns the last argument set to 1, and the transaction
record has the transaction_done field set to 1.