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

Page 53

Advertising
background image

SystemVerilog Slave BFM

wait_on()

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

53

April 2014

wait_on()

This blocking task waits for an event on the ACLK or ARESETn signals to occur before
proceeding. An optional count argument waits for the number of events equal to count.

Example

bfm.wait_on(AXI4STREAM_RESET_POSEDGE);
bfm.wait_on(AXI4STREAM_CLOCK_POSEDGE, 10);

Prototype

task automatic wait_on
(

axi4stream_wait_e phase,
input int count = 1 //Optional

);

Arguments

phase

Wait for:

AXI4STREAM_CLOCK_POSEDGE
AXI4STREAM_CLOCK_NEGEDGE
AXI4STREAM_CLOCK_ANYEDGE
AXI4STREAM_CLOCK_0_TO_1
AXI4STREAM_CLOCK_1_TO_0
AXI4STREAM_RESET_POSEDGE
AXI4STREAM_RESET_NEGEDGE
AXI4STREAM_RESET_ANYEDGE
AXI4STREAM_RESET_0_TO_1
AXI4STREAM_RESET_1_TO_0

Advertising