Hello,
I'm currently working with the 2023_r2 Patch1 release of the Analog Devices HDL Github repository and using the Zedboard reference HDL design for the EVAL-AD4134 board. I am using an modified version of the AD7134_fmcz no-OS project and am able to readout data correctly with mostly default settings.
Increasing the AD4134 ODR
I am interested in increasing the output data rate of the AD4134 from its default of approximately 333 kHz to 500 kHz. The datasheet suggests that it is possible to increase the maximum ODR from its default of 374 kHz up to 1496 kHz when using the sinc filters. I enabled the filters across all channels using the functions available in the AD7134 driver but was only able to set the data rate to 374 kHz by using a period of 2661 nanoseconds for both the axi_pwm_init_trigger and axi_pwm_init_odr. Shorter periods yield incorrect readout values but do not appear to have any PLL or chip errors.
Continuous Streaming of Samples With the SPI Engine and DMA
I am also curious about whether it is possible to continuously stream data from the AD4134 to the PS with minimal dead time using the Analog Devices SPI Engine and the DMAC. The data transfer using the spi_engine_offload_transfer function takes approximately 0.200 seconds to complete for 20,480 samples per channel in a single frame (roughly 2 Mb). I am transferring frames over TCP/UDP from the Zedboard to a computer but this has minimal impact on the dead time between frames. Most of the dead time can be attributed to the time waiting for the spi_engine_offload_transfer to complete. Is it possible to continuously transfer samples using the spi_engine_offload_transfer function with a single DMA controller?
My Questions:
1. Are there examples demonstrating how to raise the AD4134 ODR beyond 374 kHz? How should the ODR relate to the trigger rate used for SPI Engine offload? What specific timing constraints should be considered when pushing the ODR higher?
2. Is the SPI Engine offload rate inherently limited to a certain maximum number of continuous samples, or is it primarily determined by DMA buffer length and timeout behavior? My DMA length width is currently set by CONFIG.DMA_LENGTH_WIDTH 29 in common/ad4134_bd.tcl. Switching from polling (axi_dmac_transfer_wait_until_complete) to DMA IRQ notification only reduced overhead slightly.
3. Does the DMAC’s internal queue only break a single large transfer request into smaller chunks, or can I issue up to four separate requests (i.e., multiple frames) and have them queued?
4. Is it possible to submit multiple transfer requests to the DMA at once and have transfer occur with minimal deadtime?
5. Would it be better to use two or more DMAs and use the IRQs to mux their outputs?
6. Can the SPI Engine Offload module be programmed once with a single command sequence if I’m only performing repeated sample reads? Or must the offload program be rewritten each time before a transfer?
If there’s additional information that would help clarify my setup or results, please let me know.
Regards,
Paul
