Application program interface, Get_<role name>(), Get_version() – Altera Avalon Verification IP Suite User Manual

Page 126: Set_<role name>(), Set_<role name>_oe(), Signal_input_<role name>_change, Application program interface –3, Get_ <role name, Get_version() –3 set_ <role name, Set_ <role name

Advertising
background image

Chapter 1: Conduit BFM

1–3

Application Program Interface

May 2011

Altera Corporation

Avalon Verification IP Suite User Guide

Application Program Interface

This section describes the API for the Conduit BFM.

get_<role name>()

get_version()

set_<role name>()

set_<role name>_oe()

signal_input_<role name>_change

Prototype:

int

<<

width of the role name port

>

get_

<

role name

>

()

.

Arguments:

None.

Returns:

Int

<

width of the role name port

>.

Description:

Returns interface signal value from the input/bidirectional port.

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:

void set_<role name>()

.

Arguments:

new_value.

Returns:

void.

Description:

Rewrites the registers inside the BFMs that are driven to the <

role name

> output ports.

Prototype:

void set_<role name>_oe()

.

Arguments:

bit enable.

Returns:

void

Description:

Enables the bidirectional ports when the value is set to 1.

Prototype:

signal_input_<role name>_change

.

Arguments:

None.

Returns:

void.

Description:

Triggers when the input signal for a particular port changes its value. For a bidirectional
port, this event is only triggered if its input value defers from its last input value.

Advertising