beautypg.com

Set_enable_c_transfer(), Set_enable_c_transaction_after_reset(), Set_enable_c_valid_non_ready() – Altera Avalon Verification IP Suite User Manual

Page 119: Transaction monitoring, Get_transaction_channel(), Transaction monitoring –10, Get_transaction_channel() –10

background image

5–10

Chapter 5: Avalon-ST Monitor

Application Program Interface

Avalon Verification IP Suite User Guide

May 2011

Altera Corporation

set_enable_c_transfer()

set_enable_c_transaction_after_reset()

set_enable_c_valid_non_ready()

Transaction Monitoring

Transaction monitoring is carried out through the transaction collector module. The
transaction collector collects the transactions, encapsulates them into descriptors, and
inserts the transactions into queue. The API provides the mechanism to query the
transactions in queue and disposes them as they are processed. By default, the
transaction collector module is disabled. You must define the

ENABLE_ALTERA_AVALON_TRANSACTION_RECORDING

Verilog macro to enable this feature.

This macro is required to ensure backward compatibility and to avoid breaking
existing test cases.

get_transaction_channel()

Prototype:

set_enable_c_transfer().

Arguments:

Boolean

.

Returns:

Void

.

Description:

Enables a coverage point that ensures test coverage of a

valid

signal is

asserted correctly for different channels. It is disabled when the

ready

or

valid

signals are not supported.

Prototype:

set_enable_c_transaction_after_reset().

Arguments:

Boolean

.

Returns:

Void

.

Description:

Enables a coverage point that ensures test coverage for transaction on the
first cycle after reset.

Prototype:

set_enable_c_valid_non_ready().

Arguments:

Boolean

.

Returns:

Void

.

Description:

Enables a coverage point that ensures test coverage for

valid

signal when

ready

is deasserted. It is disabled when the

readyLatency

is greater than

0.

Prototype:

get_transaction_channel()

.

Arguments:

None.

Returns:

STChannel_t

.

Description:

Returns the channel identifier for the most recently removed transaction.