From 3fd830b038e9ae4f23b62770fa6aa04479a6359d Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Fri, 17 Apr 2015 17:45:03 +0200 Subject: [PATCH] fmcomms2: Use AXI3 interface for the DMA on ZYNQ On ZYNQ the HP interconnects have a AXI3 interface. The DMA controller supports both AXI4 and AXI3. By switching to AXI3 there is no need to create a protocol converter between the DMA and the HP port. Signed-off-by: Lars-Peter Clausen --- projects/fmcomms2/common/fmcomms2_bd.tcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/fmcomms2/common/fmcomms2_bd.tcl b/projects/fmcomms2/common/fmcomms2_bd.tcl index 9cfbde087..772792c68 100644 --- a/projects/fmcomms2/common/fmcomms2_bd.tcl +++ b/projects/fmcomms2/common/fmcomms2_bd.tcl @@ -33,6 +33,10 @@ set_property -dict [list CONFIG.C_CLKS_ASYNC_REQ_SRC {0}] $axi_ad9361_dac_dma set_property -dict [list CONFIG.C_2D_TRANSFER {0}] $axi_ad9361_dac_dma set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_DEST {64}] $axi_ad9361_dac_dma +if {$sys_zynq == 1} { + set_property -dict [list CONFIG.C_DMA_AXI_PROTOCOL_SRC {1}] $axi_ad9361_dac_dma +} + set util_dac_unpack [create_bd_cell -type ip -vlnv analog.com:user:util_dac_unpack:1.0 util_dac_unpack] set_property -dict [list CONFIG.CHANNELS {4}] $util_dac_unpack @@ -49,6 +53,10 @@ set_property -dict [list CONFIG.C_CLKS_ASYNC_REQ_SRC {1}] $axi_ad9361_adc_dma set_property -dict [list CONFIG.C_2D_TRANSFER {0}] $axi_ad9361_adc_dma set_property -dict [list CONFIG.C_DMA_DATA_WIDTH_SRC {64}] $axi_ad9361_adc_dma +if {$sys_zynq == 1} { + set_property -dict [list CONFIG.C_DMA_AXI_PROTOCOL_DEST {1}] $axi_ad9361_adc_dma +} + set util_adc_pack [create_bd_cell -type ip -vlnv analog.com:user:util_adc_pack:1.0 util_adc_pack] set_property -dict [list CONFIG.CHANNELS {4}] $util_adc_pack