beautypg.com

Reset source bfm, Parameters, Application program interface – Altera Avalon Verification IP Suite User Manual

Page 20: Reset_assert, Reset_deassert, Get_version(), Chapter 2. reset source bfm, Parameters –1 application program interface –1, Reset_assert –1 reset_deassert –1 get_version() –1, Reset_assert reset_deassert get_version()

background image

May 2011

Altera Corporation

Avalon Verification IP Suite User Guide

2. Reset Source BFM

The Avalon Verification IP Suite includes a Reset Source BFM that you can use to
generate a reset signal in your testbench.

1

The Reset Source BFM is only supported in Qsys.

Parameters

Table 2–1

lists the parameter settings for the reset signal.

Application Program Interface

This section describes the API for the Reset Source BFM.

reset_assert

reset_deassert

get_version()

Table 2–1. Reset Source BFM Parameter Settings

Option

Default Value

Legal Values

Description

Assert reset high

On

On/Off

Specifies the polarity of the reset signal. Turn on this
option to set the reset signal active high.

Cycles of initial reset

0

Specifies the number of cycles that the reset signal is
asserted at the initial stage of the simulation.

Prototype:

reset_assert

.

Arguments:

None.

Returns:

void.

Description:

Asserts the reset signal.

Prototype:

reset_deassert

.

Arguments:

None.

Returns:

void.

Description:

Deasserts the reset signal.

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".