Get_response_write_response(), Get_write_response_queue_size(), Get_version() – Altera Avalon Verification IP Suite User Manual

Page 35: Init(), Pop_response()

Advertising
background image

1–12

Chapter 1: Avalon-MM Master BFM

Application Program Interface

Avalon Verification IP Suite User Guide

May 2011

Altera Corporation

get_response_write_response()

get_write_response_queue_size()

get_version()

init()

pop_response()

Prototype:

bit [2**(AV_BURSTCOUNT_W-1)-1:0] [AV_WRITERESPONSE_W-1:0]

get_response_write_response(int index)

.

Arguments:

int index.

Returns:

AvalonWriteResponse_t

.

Description:

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

Prototype:

int get_write_response_queue_size()

.

Arguments:

None.

Returns:

int

.

Description:

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

Prototype:

string get_version()

.

Arguments:

None.

Returns:

String

.

Description:

Returns BFM version as a string of three integers separated by periods. For example,
version 10.1 sp1 is encoded as "10.1.1".

Prototype:

init

.

Arguments:

None.

Returns:

void

.

Description:

Initializes the Avalon-MM master interface.

Prototype:

void pop_response()

.

Arguments:

None.

Returns:

void

.

Description:

Removes the oldest response descriptor from the response queue, such that transaction
information is available using the

get_response_

<rolename>

commands.

Advertising