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

Page 121

Advertising
background image

VHDL Master BFM

wait_on()

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

121

April 2014

wait_on()

This blocking procedure 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

wait_on(AXI4STREAM_RESET_POSEDGE, bfm_index,
axi4stream_tr_if_0(bfm_index));

wait_on(AXI4STREAM_CLOCK_POSEDGE, 10, bfm_index,
axi4stream_tr_if_0(bfm_index));

Prototype

procedure wait_on
(

phase : in integer;
count: in integer; -optional
bfm_id : in integer;
signal tr_if : inout axi4stream_vhd_if_struct_t

);

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

count

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

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