Multi Channel DMA for PCI Express* Intel® FPGA IP Design Example User Guide

ID 683517
Date 2/06/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.8.1.2. QCSR Registers(Base address 64’h10000)

This space contains control and status registers for external descriptor controller. Host maintains separate descriptor ring for both D2H & H2D queues. External descriptor controller example design supports 16 channels. Descriptor context for each channel can be updates in the following CSR registers.

Address [11:8] = Channel number (Queue ID).

Address [7] = Data Mover direction. 0 = D2H, 1 = H2D.

Address [6:3] = Register offset.

Table 17.  D2H Start Address (Offset 8’h00)
Bit[63:0] Name R/W Default Description

[63:0]

Start_addr

R/W

0

D2H ring buffer start address [63:0].

Table 18.  D2H Buffer Size (Offset 8’h08)
Bit[63:0] Name R/W Default Description
[63:16] rsvd     Reserved

[15:0]

size

R/W

0

D2H ring buffer size

Table 19.  D2H Tail Pointer (Offset 8’h10)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

tail_ptr

R/W

0

D2H ring buffer tail pointer, Updated by Host SW & Read-only for DMA HW.

Table 20.  D2H Head Pointer (Offset 8’h18)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

head_ptr

RO

0

D2H ring buffer head pointer, Updated by DMA HW & Read-only for Host SW.

Table 21.  D2H Write back Address (Offset 8’h20)
Bit[63:0] Name R/W Default Description

[63:0]

wb_addr

R/W

0

D2H write back address [63:0].

Table 22.  D2H Completion Pointer (Offset 8’h28)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

cmpl_ptr

RO

0

D2H ring buffer completion pointer, Updated by DMA HW & Read-only for Host SW.

Table 23.  H2D Start address (Offset 8’h80)
Bit[63:0] Name R/W Default Description

[63:0]

Start_addr

R/W

0

H2D ring buffer start address [63:0].

Table 24.  H2D Buffer Size (Offset 8’h88)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

size

R/W

0

H2D ring buffer size

Table 25.  H2D Tail Pointer (Offset 8’h90)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

tail_ptr

R/W

0

H2D ring buffer tail pointer, Updated by Host SW & Read-only for DMA HW.

Table 26.  H2D Head Pointer (Offset 8’h98)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

head_ptr

RO

0

H2D ring buffer head pointer, Updated by DMA HW & Read-only for Host SW.

Table 27.  H2D Write back address (Offset 8’hA0)
Bit[63:0] Name R/W Default Description

[63:0]

wb_addr

R/W

0

H2D write back address [63:0].

Table 28.  H2D Completion Pointer (Offset 8’hA8)
Bit[63:0] Name R/W Default Description

[63:16]

rsvd

   

Reserved

[15:0]

cmpl_ptr

RO

0

H2D ring buffer completion pointer, Updated by DMA HW & Read-only for Host SW.