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

Page 52

Advertising
background image

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

52

SystemVerilog Slave BFM
execute_stream_ready()

April 2014

execute_stream_ready()

This task executes a slave ready by placing the state of the ready input argument onto the
TREADY signal. This task may be blocking (default) or nonblocking, as defined by the optional
non_blocking_mode input argument.

Example

// Assign TREADY = '0'. This will consume one cycle.
bfm.execute_stream_ready(0);

// Two clock cycle wait.
repeat(2) bfm.wait_on(AXI4STREAM_CLOCK_POSEDGE);

// Assign TREADY = '1'.
bfm.execute_stream_ready(1);

Prototype

task automatic execute_stream_ready
(

input bit ready,
input bit non_blocking_mode = 0 // Optional

);

Arguments

ready

The value to be placed onto the TREADY signal.

non_blocking_mode

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

0 = blocking (default)
1 = nonblocking

Returns

None

Advertising