Cfg_rd, Cfg_wr, Mem_wr_32 – Altera PCI Compiler User Manual

Page 219

Advertising
background image

Altera Corporation

User Guide Version 11.1

4–9

October 2011

PCI Compiler

Testbench

cfg_rd
The cfg_rd command performs single-cycle PCI configuration read
transactions with the address provided in the command argument.

cfg_wr
The cfg_wr command performs single-cycle PCI configuration write
transactions with the address, data, and byte enable provided in the
command arguments.

mem_wr_32
The mem_wr_32 command performs a memory write with the address
and data provided in the command arguments. This command can
perform a single-cycle or burst 32-bit memory write depending on the
number of DWORDs provided in the command argument.

The mem_wr_32 command performs a single-cycle 32-bit memory
write if the DWORD value is 1.

Syntax:

cfg_rd(address)

Arguments:

address

Transaction address. This value must be in
hexadecimal radix.

Syntax:

cfg_wr(address, data, byte_enable)

Arguments:

address

Transaction address. This value must be in
hexadecimal radix.

data

Transaction data. The data must be in
hexadecimal radix.

byte_enable

Transaction byte enable. The byte enable
value must be in hexadecimal radix

Advertising