Altera Avalon Verification IP Suite Manual de usuario Pagina 137

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 178
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 136
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.
Vista de pagina 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 177 178

Comentarios a estos manuales

Sin comentarios