Application program interface, Fill(), Read() – Altera Avalon Verification IP Suite User Manual

Page 137: Signal_api_call, Write(), Application program interface –5, Fill() –5 read() –5 signal_api_call –5 write() –5, Fill() read() signal_api_call write()

Advertising
background image

Chapter 3: External Memory BFM

3–5

Application Program Interface

May 2011

Altera Corporation

Avalon Verification IP Suite User Guide

Application Program Interface

This section describes the API for the external memory BFM.

fill()

read()

signal_api_call

write()

Prototype:

fill()

.

Arguments:

logic[DATA_W-1:0]

data

.

bit[DATA_W-1:0]

increment

.

bit[CDT_ADDRESS_W-1:0]

address

low

.

bit[CDT_ADDRESS_W-1:0]

address

high

.

Returns:

void

.

Description:

Overwrites the memory content at the starting address specified by

address_low

until

the ending address specified by

address_high

. The

data

field indicates the data value.

The

increment

field indicates the data value increment from one address to the next

address. For example, fill (

data[1]

,

increment[2]

,

address_low[10]

,

address_high[12]

) fills the memory as follows:

memory[address=10]

is filled with data value 1

memory[address=11]

is filled with data value 3

memory[address=12]

is filled with data value 5

Prototype:

read()

.

Arguments:

bit[CDT_ADDRESS_W-1:0] address

.

Returns:

logic[DATA_W-1:0]

.

Description:

Retrieves the memory content from an address you specify.

Prototype:

signal_api_call

.

Arguments:

None.

Returns:

void.

Description:

Triggers when a client make an API call.

Prototype:

write()

.

Arguments:

bit[CDT_ADDRESS_W-1:0] address

.

logic[DATA_W-1:0] data

.

Returns:

void.

Description:

Overwrites the memory content at an address you specify.

Advertising