Execute_stream_ready(), Example – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual

Page 153

Advertising
background image

VHDL Slave BFM

execute_stream_ready()

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

153

April 2014

execute_stream_ready()

This procedure executes a stream ready by placing the ready argument value onto the TREADY
signal.

Example

-- Assign TREADY = '0'. This will consume one cycle.
execute_stream_ready(0, bfm_index, axi4stream_tr_if_0(bfm_index));

-- Two clock cycle wait.
for i in 0 to 1 loop

wait_on(AXI4STREAM_CLOCK_POSEDGE, bfm_index,

axi4stream_tr_if_0(bfm_index));

end loop;

-- Assign TREADY = '1'.
execute_stream_ready(1, bfm_index, axi4stream_tr_if_0(bfm_index));

Prototype

procedure execute_stream_ready
(

ready : in integer;
non_blocking_mode : in integer; -- Optional
bfm_id : in integer;
signal tr_if : inout axi4stream_vhd_if_struct_t

);

Arguments

ready

The value of the TREADY signal

non_blocking_mode

(Optional) Controls the blocking or nonblocking mode of the
procedure.

0 = blocking (default)
1 = nonblocking

bfm_id

BFM identifier. Refer to

Overloaded Procedure Common

Arguments

” on page 87 for more details.

tr_if

Transaction signal interface. Refer to

Overloaded Procedure

Common Arguments

” on page 87 for more details.

Returns

None

Advertising