From b9b619d9180b091be2cd950436b9798dc1e46cef Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 7 May 2017 20:41:43 +0200 Subject: [PATCH] axi_ad9144: Hide unused ports in DUAL mode In DUAL mode half of the data ports are unused and the unused inputs need to be connected to dummy signals. Completely hide the unused ports in DUAL mode to remove that requirement. Signed-off-by: Lars-Peter Clausen --- library/axi_ad9144/axi_ad9144_ip.tcl | 7 +++++++ projects/daq2/common/daq2_bd.tcl | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/library/axi_ad9144/axi_ad9144_ip.tcl b/library/axi_ad9144/axi_ad9144_ip.tcl index 7ced34d04..39fb0e1d0 100644 --- a/library/axi_ad9144/axi_ad9144_ip.tcl +++ b/library/axi_ad9144/axi_ad9144_ip.tcl @@ -13,6 +13,13 @@ adi_ip_add_core_dependencies { \ analog.com:user:ad_ip_jesd204_tpl_dac:1.0 \ } +adi_set_ports_dependency "dac_valid_2" "QUAD_OR_DUAL_N == 1" +adi_set_ports_dependency "dac_valid_3" "QUAD_OR_DUAL_N == 1" +adi_set_ports_dependency "dac_enable_2" "QUAD_OR_DUAL_N == 1" +adi_set_ports_dependency "dac_enable_3" "QUAD_OR_DUAL_N == 1" +adi_set_ports_dependency "dac_ddata_2" "QUAD_OR_DUAL_N == 1" "0" +adi_set_ports_dependency "dac_ddata_3" "QUAD_OR_DUAL_N == 1" "0" + set_property driver_value 0 [ipx::get_ports *dunf* -of_objects [ipx::current_core]] set_property driver_value 0 [ipx::get_ports *tx_ready* -of_objects [ipx::current_core]] diff --git a/projects/daq2/common/daq2_bd.tcl b/projects/daq2/common/daq2_bd.tcl index 5f51fa723..aca540099 100644 --- a/projects/daq2/common/daq2_bd.tcl +++ b/projects/daq2/common/daq2_bd.tcl @@ -160,7 +160,5 @@ ad_cpu_interrupt ps-11 mb-14 axi_ad9680_jesd/irq ad_cpu_interrupt ps-12 mb-13 axi_ad9144_dma/irq ad_cpu_interrupt ps-13 mb-12 axi_ad9680_dma/irq -ad_connect axi_ad9144_core/dac_ddata_2 GND -ad_connect axi_ad9144_core/dac_ddata_3 GND ad_connect axi_ad9144_fifo/bypass GND