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

Page 110

Advertising
background image

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

110

SystemVerilog Monitor BFM
wait_on()

April 2014

wait_on()

This blocking task waits for an event(s) 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(AXI4_RESET_POSEDGE);
bfm.wait_on(AXI4_CLOCK_POSEDGE,10);

Prototype

task automatic wait_on
(

axi4_wait_e phase,
input int count = 1 //Optional

);

Arguments

phase

Wait for:

AXI4_CLOCK_POSEDGE
AXI4_CLOCK_NEGEDGE
AXI4_CLOCK_ANYEDGE
AXI4_CLOCK_0_TO_1
AXI4_CLOCK_1_TO_0
AXI4_RESET_POSEDGE
AXI4_RESET_NEGEDGE
AXI4_RESET_ANYEDGE
AXI4_RESET_0_TO_1
AXI4_RESET_1_TO_0

count

(Optional) Wait for a number of events to occur set by count.
(default = 1)

Returns

None

Advertising