Application program interface, All_transactions_complete(), Get_command_issued_queue_size() – Altera Avalon Verification IP Suite User Manual

Page 32: Get_command_pending_queue_size(), Get_read_response_queue_size(), Get_response_address(), Application program interface –9

Advertising
background image

Chapter 1: Avalon-MM Master BFM

1–9

Application Program Interface

May 2011

Altera Corporation

Avalon Verification IP Suite User Guide

Application Program Interface

This section describes the API for the Avalon-MM Master BFM.

all_transactions_complete()

get_command_issued_queue_size()

get_command_pending_queue_size()

get_read_response_queue_size()

get_response_address()

Prototype:

bit all_transactions_complete()

.

Arguments:

None.

Returns:

bit

.

Description:

Queries the BFM component to determine whether all issued commands have been
completed. A return value of 1 means that there are no more transactions in the
transaction queue or in progress.

Prototype:

int get_command_issued_queue_size()

.

Arguments:

None.

Returns:

int

.

Description:

Queries the issued command queue to determine the number of commands that have
been driven to the system interconnect fabric, but not completed.

Prototype:

int get_command_pending_queue_size()

.

Arguments:

None.

Returns:

int

.

Description:

Queries the command queue to determine number of pending commands waiting to be
driven out as Avalon requests.

Prototype:

int get_read_response_queue_size()

.

Arguments:

None.

Returns:

int

.

Description:

Queries the read response queue to determine number of response descriptors currently
stored in the BFM. This is the number of responses the test program can immediately
remove from the response queue for further processing.

Prototype:

bit [AV_ADDRESS_W-1:0] get_response_address()

.

Arguments:

None.

Returns:

bit

.

Description:

Returns the transaction address in the response descriptor that has been removed from
the response queue.

Advertising