Mem_rd_32 – Altera PCI Compiler User Manual

Page 220

Advertising
background image

4–10

User Guide Version 11.1

Altera Corporation

PCI Compiler

October 2011

Testbench Specifications

The mem_wr_32 command performs a burst-cycle 32-bit memory
write if the DWORD value is greater than 1. In a burst transaction, the
first data phase uses the data value provided in the command. The
subsequent data phases use values incremented sequentially by 1
from the data provided in the command argument.

mem_rd_32
The mem_rd_32 command performs a memory read with the address
provided in the command argument. This command can perform
single-cycle or burst 32-bit memory read depending on the value of the
dword

argument.

If the dword value is 1, the command performs a single-cycle
transaction.

If the dword value is greater than 1, the command performs a burst
transaction.

Syntax:

mem_wr_32(address, data, dword)

Arguments:

address

Transaction address. This value must be in
hexadecimal radix.

data

Data used for the first data phase. Subsequent
data phases use a value incremented sequentially
by 1. This value must be in hexadecimal radix.

dword

The number of

DWORD

s written during the

transaction. A value of 1 indicates a single-cycle
memory write transaction. A value greater than one
indicates a burst transaction. This value must be
an integer.

Syntax:

mem_rd_32(address, dword)

Arguments:

address

Transaction address. This value must be in
hexadecimal radix.

dword

The number

DWORD

s read during the transaction.

A value of one indicates a single-cycle memory
read transaction. A value greater than one
indicates a burst transaction. This value must be
an integer.

Advertising