Application program interface, Get_(), Get_version() – Altera Avalon Verification IP Suite User Manual
Page 126: Set_(), Set__oe(), Signal_input__change, Application program interface –3, Get_
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_
get_version()
set_
set_
signal_input_
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.