analogdevicesinc / hdl

HDL libraries and projects
https://wiki.analog.com/resources/fpga/docs/hdl
Other
1.53k stars 1.52k forks source link

pulsar_adc: add split transfer functionality #1474

Open LBFFilho opened 2 months ago

LBFFilho commented 2 months ago

Add a parameter, SPLIT_TRANSFER SIZE to enable split transfers. If SPLIT_TRANSFER is set to 0, split transfers are disabled (previous behavior). If set to any other positive value =an asymetric fifo is used to stitch together 2 transfers before sending them to the DMA. In this case SPLIT_TRANSFER is used to indicate the size of each transfer in the split.

PR Type

PR Checklist

sarpadi commented 2 months ago

Looks good. Should work as long as the software resets the FIFO properly. I would try using only one build parameter. Either use a fixed width value or use only the SPLIT_SIZE parameter. if SPLIT_SIZE = 0 (default) then the feature is not used at all, if SPLIT_SIZE != 0 then use the value as width or something similar.