Skip to content

Latest commit

 

History

History
115 lines (89 loc) · 2.98 KB

csr_dma.md

File metadata and controls

115 lines (89 loc) · 2.98 KB

csr_dma

  • byte_size
    • 256
name offset_address
dma_control 0x00
dma_status 0x08
dma_error_addr 0x10
dma_error_stats 0x18
dma_desc_src_addr[2] 0x20
0x28
dma_desc_dst_addr[2] 0x30
0x38
dma_desc_num_bytes[2] 0x40
0x48
dma_desc_cfg[2] 0x50
0x58

dma_control

  • offset_address
    • 0x00
  • type
    • default
name bit_assignments type initial_value reference comment
go [0] rw 0x0 Sets the start for the DMA operation
abort [1] rw 0x0 Stop DMA operation
max_burst [9:2] rw 0xff Max burst length (ALEN) in the AXI txn

dma_status

  • offset_address
    • 0x08
  • type
    • default
name bit_assignments type initial_value reference comment
version [15:0] rof 0xcafe DMA version
done [16] ro 0x0 Asserted when DMA finishes to process all the descriptors
error [17] ro 0x0 dma_error_stats.error_trig Error resume

dma_error_addr

  • offset_address
    • 0x10
  • type
    • default
name bit_assignments type initial_value reference comment
error_addr [31:0] ro 0x00000000 Error addr

dma_error_stats

  • offset_address
    • 0x18
  • type
    • default
name bit_assignments type initial_value reference comment
error_type [0] ro 0x0 Error type - 0 - Operation / 1 - Configuration
error_src [1] ro 0x0 Error source - 0 READ / 1 WRITE
error_trig [2] ro 0x0 Error Trigger, asserted when error happens

dma_desc_src_addr[2]

  • offset_address
    • 0x20
    • 0x28
  • type
    • default
name bit_assignments type initial_value reference comment
src_addr [31:0] rw 0x00000000 Source address to fetch data

dma_desc_dst_addr[2]

  • offset_address
    • 0x30
    • 0x38
  • type
    • default
name bit_assignments type initial_value reference comment
dst_addr [31:0] rw 0x00000000 Target address to write data

dma_desc_num_bytes[2]

  • offset_address
    • 0x40
    • 0x48
  • type
    • default
name bit_assignments type initial_value reference comment
num_bytes [31:0] rw 0x00000000 Number of bytes to transfer

dma_desc_cfg[2]

  • offset_address
    • 0x50
    • 0x58
  • type
    • default
name bit_assignments type initial_value reference comment
write_mode [0] rw 0x0 Write mode - 0 INCR / 1 FIXED
read_mode [1] rw 0x0 Read mode - 0 INCR / 1 FIXED
enable [2] rw 0x0 Enable descriptor