Altera IP Compiler for PCI Express User Manual

Page 247

Advertising
background image

Chapter 15: Testbench and Design Example

15–15

Chaining DMA Design Example

August 2014

Altera Corporation

IP Compiler for PCI Express User Guide

Table 15–7

defines the DMA status registers. These registers are read only.

Table 15–8

describes the fields of the DMA write status register. All of these fields are

read only.

[30:28]

MSI Traffic Class

When the RC application software reads the MSI capabilities of the endpoint, this
value is assigned by default to MSI traffic class 0. These register bits map to the IP
Compiler for PCI Express back-end signal app_msi_tc[2:0].

31

DT RC Last Sync

When 0, the DMA engine stops transfers when the last descriptor has been
executed. When 1, the DMA engine loops infinitely restarting with the first
descriptor when the last descriptor is completed. To stop the infinite loop, set this
bit to 0.

Table 15–6. Bit Definitions for the Control Field in the DMA Write Control Register and DMA Read Control Register

Bit

Field

Description

Table 15–7. Chaining DMA Status Register Definitions

Addr

(2)

Register Name

3124

2316

150

0x20

DMA Wr Status Hi

For field definitions refer to

Table 15–8

0x24

DMA Wr Status Lo

Target Mem Address

Width

Write DMA Performance Counter. (Clock cycles from
time DMA header programmed until last descriptor
completes, including time to fetch descriptors.)

0x28

DMA Rd Status Hi

For field definitions refer to

Table 15–9

0x2C

DMA Rd Status Lo

Max No. of Tags

Read DMA Performance Counter. The number of clocks
from the time the DMA header is programmed until the
last descriptor completes, including the time to fetch
descriptors.

0x30

Error Status

Reserved

Error Counter. Number of bad
ECRCs detected by the
application layer. Valid only
when ECRC forwarding is
enabled.

Note to

Table 15–7

:

(1) This is the endpoint byte address offset from BAR2 or BAR3.

Table 15–8. Fields in the DMA Write Status High Register

Bit

Field

Description

[31:28]

CDMA version

Identifies the version of the chaining DMA example design.

[27:26]

Core type

Identifies the core interface. The following encodings are defined:

01 Descriptor/Data Interface

10 Avalon-ST soft IP implementation

00 Other

[25:24]

Reserved

Advertising