Get_command_burst_cycle(), Get_command_byte_enable(), Get_command_data() – Altera Avalon Verification IP Suite User Manual

Page 54: Get_command_debugaccess(), Get_command_queue_size()

Advertising
background image

Chapter 3: Avalon-MM Slave BFM

3–11

Application Program Interface

May 2011

Altera Corporation

Avalon Verification IP Suite User Guide

get_command_burst_cycle()

get_command_byte_enable()

get_command_data()

get_command_debugaccess()

get_command_queue_size()

Prototype:

int get_command_burst_cycle()

.

Arguments:

None.

Returns:

Int

.

Description:

The slave BFM receives and processes write burst commands as a sequence of discrete
commands. The number of commands corresponds to the burst count. A separate
command descriptor is constructed for each write burst cycle, corresponding to a
partially completed burst. This method returns a burst cycle field that tells the testbench
which burst cycle was active when this descriptor was constructed. This facility enables
the testbench to query partially completed write burst operations. In other words, the
testbench can query the write data word on each burst cycle as it arrives and begin to
process it immediately rather than waiting until the entire burst has been received,
making it possible to perform pipelined write burst processing in the testbench.

Prototype:

bit [AV_NUMSYMBOLS-1:0] get_command_byte_enable (int index)

.

Arguments:

index

.

Returns:

bit [AV_NUMSYMBOLS-1:0].

Description:

Queries the received command descriptor for the transaction byte enable. For burst
commands with burst count greater than 1, the index selects the data cycle.

Prototype:

bit [AV_DATA_W-1:0] get_command_data(int index)

.

Arguments:

index

.

Returns:

bit [AV_DATA_W-1:0]

.

Description:

Queries the received command descriptor for the transaction write data. For burst
commands with burst count greater than 1, the index selects the write data cycle.

Prototype:

bit get_command_debugaccess()

.

Arguments:

None.

Returns:

bit

.

Description:

Queries the received command descriptor for the transaction debugaccess.

Prototype:

int get_command_queue_size()

.

Arguments:

None.

Returns:

int

.

Description:

Queries the command queue to determine number of pending commands.

Advertising