From 7a28a69061b05fc7126d1b204a5545f97a184e7d Mon Sep 17 00:00:00 2001 From: Ionut Podgoreanu Date: Thu, 10 Aug 2023 13:01:33 +0300 Subject: [PATCH] fmcomms2: Enable the scatter-gather DMA core Signed-off-by: Ionut Podgoreanu --- projects/fmcomms2/common/fmcomms2_bd.tcl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/fmcomms2/common/fmcomms2_bd.tcl b/projects/fmcomms2/common/fmcomms2_bd.tcl index 3335ae7c4..a268fd5a8 100644 --- a/projects/fmcomms2/common/fmcomms2_bd.tcl +++ b/projects/fmcomms2/common/fmcomms2_bd.tcl @@ -142,11 +142,14 @@ ad_ip_parameter axi_ad9361_adc_dma CONFIG.SYNC_TRANSFER_START 1 ad_ip_parameter axi_ad9361_adc_dma CONFIG.AXI_SLICE_SRC 0 ad_ip_parameter axi_ad9361_adc_dma CONFIG.AXI_SLICE_DEST 0 ad_ip_parameter axi_ad9361_adc_dma CONFIG.DMA_2D_TRANSFER 0 +ad_ip_parameter axi_ad9361_adc_dma CONFIG.DMA_SG_TRANSFER 1 ad_ip_parameter axi_ad9361_adc_dma CONFIG.DMA_DATA_WIDTH_SRC 64 +ad_ip_parameter axi_ad9361_adc_dma CONFIG.DMA_DATA_WIDTH_SG 64 ad_connect util_ad9361_divclk/clk_out axi_ad9361_adc_dma/fifo_wr_clk ad_connect util_ad9361_adc_pack/packed_fifo_wr axi_ad9361_adc_dma/fifo_wr ad_connect $sys_cpu_resetn axi_ad9361_adc_dma/m_dest_axi_aresetn +ad_connect $sys_cpu_resetn axi_ad9361_adc_dma/m_sg_axi_aresetn # dac-path rfifo @@ -200,12 +203,15 @@ ad_ip_parameter axi_ad9361_dac_dma CONFIG.CYCLIC 1 ad_ip_parameter axi_ad9361_dac_dma CONFIG.AXI_SLICE_SRC 0 ad_ip_parameter axi_ad9361_dac_dma CONFIG.AXI_SLICE_DEST 0 ad_ip_parameter axi_ad9361_dac_dma CONFIG.DMA_2D_TRANSFER 0 +ad_ip_parameter axi_ad9361_dac_dma CONFIG.DMA_SG_TRANSFER 1 ad_ip_parameter axi_ad9361_dac_dma CONFIG.DMA_DATA_WIDTH_DEST 64 +ad_ip_parameter axi_ad9361_dac_dma CONFIG.DMA_DATA_WIDTH_SG 64 ad_connect util_ad9361_divclk/clk_out axi_ad9361_dac_dma/m_axis_aclk ad_connect axi_ad9361_dac_dma/m_axis util_ad9361_dac_upack/s_axis ad_connect $sys_cpu_resetn axi_ad9361_dac_dma/m_src_axi_aresetn +ad_connect $sys_cpu_resetn axi_ad9361_dac_dma/m_sg_axi_aresetn # interconnects @@ -217,6 +223,9 @@ ad_mem_hp1_interconnect $sys_cpu_clk axi_ad9361_adc_dma/m_dest_axi ad_mem_hp2_interconnect $sys_cpu_clk sys_ps7/S_AXI_HP2 ad_mem_hp2_interconnect $sys_cpu_clk axi_ad9361_dac_dma/m_src_axi +ad_mem_hp2_interconnect $sys_cpu_clk axi_ad9361_dac_dma/m_sg_axi +ad_mem_hp1_interconnect $sys_cpu_clk axi_ad9361_adc_dma/m_sg_axi + # interrupts ad_cpu_interrupt ps-13 mb-12 axi_ad9361_adc_dma/irq