analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
971 stars 1.67k forks source link

Align buffers for DMA transfers #2317

Closed danmois closed 2 months ago

danmois commented 2 months ago

Pull Request Description

Address Alignment

Software must program the SRC_ADDRESS and DEST_ADDRESS registers to be multiple of the corresponding MM data bus. The following conditions must hold:

SRC_ADDRESS MOD (DMA_DATA_WIDTH_SRC/8) == 0
DEST_ADDRESS MOD (DMA_DATA_WIDTH_DEST/8) == 0 

https://wiki.analog.com/resources/fpga/docs/axi_dmac

PR Type

PR Checklist

danmois commented 2 months ago

V2

danmois commented 2 months ago

V3

danmois commented 2 months ago

V4