Mem_wr_64, Mem_rd_64 – Altera PCI Compiler User Manual
Page 221

Altera Corporation
User Guide Version 11.1
4–11
October 2011
PCI Compiler
Testbench
mem_wr_64
The mem_wr_64 command performs a memory write of the data to the
address provided in the command. This command can perform
single-cycle or burst 64-bit memory write depending on the value of the
qword
argument.
■
This command performs a single-cycle 64-bit memory write if the
qword
value is one.
■
This command performs a burst-cycle 64-bit memory write if the
qword
value is greater than one. 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 one
from the data provided in the command argument.
mem_rd_64
The mem_rd_64 command performs memory read transactions with the
address provided in the command argument. This command can perform
single-cycle or burst 64-bit memory read depending on the value of the
qword argument.
■
If the qword value is one the command performs a single-cycle
transaction.
■
If the qword value is greater than one the command performs a burst
transaction.
Syntax:
mem_wr_64(address, data, qword)
Arguments:
address
Transaction address. This value must be in
hexadecimal radix.
data
Data used for first data phase. Subsequent
data phases use a value sequentially
incremented by one from this data. This value
must be in hexadecimal radix.
qword
The number
QWORD
s written in a transaction.
A value of one 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, qword)
Arguments:
address
Transaction address. This value must be in
hexadecimal radix.
qword
The number
QWORD
s read in the transaction. A
one indicates a single-cycle memory read
transaction. A value greater than one indicates a
burst transaction. This value must be an integer.