Pop_command(), Push_response(), Set_command_transaction_mode() – Altera Avalon Verification IP Suite User Manual

Page 57: Set_interface_wait_time(), Set_max_response_queue_size()

Advertising
background image

3–14

Chapter 3: Avalon-MM Slave BFM

Application Program Interface

Avalon Verification IP Suite User Guide

May 2011

Altera Corporation

pop_command()

push_response()

set_command_transaction_mode()

set_interface_wait_time()

set_max_response_queue_size()

Prototype:

void pop_command()

.

Arguments:

None.

Returns:

void

.

Description:

Removes the command descriptor from the queue so that the testbench can query it
using the

get_command

methods.

Prototype:

void push_response()

.

Arguments:

None.

Returns:

void

.

Description:

Inserts the fully populated response transaction descriptor onto the response queue.
The BFM removes response descriptors off the queue as soon as they are available,
reads them, and drives the Avalon-MM interface response plane.

Prototype:

void set_command_transaction_mode (int mode)

;

Arguments:

mode

.

Returns:

void

.

Description:

By default, write burst commands are consolidated into a single command transaction
containing the write data for all burst cycles in that command. This mode is set when the
mode argument equals 0. When the mode argument is set to 1, the default is overridden
and write burst commands yield one command transaction per burst cycle.

Prototype:

void set_interface_wait_time(int wait_cycles, int index)

.

Arguments:

wait_cycles

.

index.

Returns:

void.

Description:

Specifies zero or more wait states to assert in each Avalon burst cycle by driving

waitrequest

active. With write burst commands, each write data cycle is forced to wait

the number of cycles corresponding to the cycle index. With read burst commands,
there is only one command cycle corresponding to index 0 which can be forced to wait.

Prototype:

void set_max_response_queue_size(int size)

.

Arguments:

int size

.

Returns:

void

.

Description:

Sets the maximum pending response queue size threshold.

Advertising