From a3e1e6286b38225a61c657efeea30db1aa6891f1 Mon Sep 17 00:00:00 2001 From: Ionut Podgoreanu Date: Mon, 21 Nov 2022 19:02:44 +0000 Subject: [PATCH] ad9081_fmca_ebz_x_band: Integrate the new TDD in project --- .../ad9081_fmca_ebz_x_band/zcu102/Makefile | 3 +-- .../zcu102/system_bd.tcl | 19 ++++++++----------- .../zcu102/system_project.tcl | 5 +++++ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/projects/ad9081_fmca_ebz_x_band/zcu102/Makefile b/projects/ad9081_fmca_ebz_x_band/zcu102/Makefile index cd51623e1..b91e4da1a 100644 --- a/projects/ad9081_fmca_ebz_x_band/zcu102/Makefile +++ b/projects/ad9081_fmca_ebz_x_band/zcu102/Makefile @@ -21,7 +21,7 @@ M_DEPS += ../../../library/util_hbm/scripts/adi_util_hbm.tcl M_DEPS += ../../../library/jesd204/scripts/jesd204.tcl M_DEPS += ../../../library/common/ad_iobuf.v M_DEPS += ../../../library/common/ad_3w_spi.v -M_DEPS += system_bd.tcl +M_DEPS += ../../../library/axi_tdd/scripts/axi_tdd.tcl LIB_DEPS += axi_dmac LIB_DEPS += axi_sysid @@ -42,7 +42,6 @@ LIB_DEPS += util_do_ram LIB_DEPS += util_hbm LIB_DEPS += util_pack/util_cpack2 LIB_DEPS += util_pack/util_upack2 -LIB_DEPS += util_tdd_sync LIB_DEPS += xilinx/axi_adxcvr LIB_DEPS += xilinx/util_adxcvr diff --git a/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl b/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl index fd62b5a3a..6bf64d98f 100644 --- a/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl +++ b/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl @@ -142,15 +142,12 @@ create_bd_port -dir O tdd_rx_mxfe_en create_bd_port -dir O tdd_tx_mxfe_en create_bd_port -dir O tdd_tx_stingray_en -ad_disconnect tdd_sync_0/sync_in GND -ad_disconnect tdd_sync_0/sync_mode GND - -ad_connect tdd_sync_0/sync_in tdd_sync -ad_connect tdd_sync_0/sync_mode VCC - -ad_connect axi_tdd_0/tdd_enabled tdd_enabled -ad_connect axi_tdd_0/tdd_rx_rf_en tdd_rx_mxfe_en -ad_connect axi_tdd_0/tdd_tx_rf_en tdd_tx_mxfe_en -# repurpose tdd_tx_vco_en as XUD1A and Stingray TR -ad_connect axi_tdd_0/tdd_tx_vco_en tdd_tx_stingray_en +set tdd_sync_in_net [get_bd_nets -of_objects [find_bd_objs -relation connected_to [get_bd_pins axi_tdd_0/sync_in]]] +set tdd_sync_in_pin [get_bd_pins axi_tdd_0/sync_in] +ad_disconnect $tdd_sync_in_net $tdd_sync_in_pin +ad_connect axi_tdd_0/sync_in tdd_sync +ad_connect axi_tdd_0/tdd_channel_2 tdd_enabled +ad_connect axi_tdd_0/tdd_channel_3 tdd_rx_mxfe_en +ad_connect axi_tdd_0/tdd_channel_4 tdd_tx_mxfe_en +ad_connect axi_tdd_0/tdd_channel_5 tdd_tx_stingray_en diff --git a/projects/ad9081_fmca_ebz_x_band/zcu102/system_project.tcl b/projects/ad9081_fmca_ebz_x_band/zcu102/system_project.tcl index 6b1ff9f73..0f00ca230 100644 --- a/projects/ad9081_fmca_ebz_x_band/zcu102/system_project.tcl +++ b/projects/ad9081_fmca_ebz_x_band/zcu102/system_project.tcl @@ -46,6 +46,11 @@ adi_project ad9081_fmca_ebz_x_band_zcu102 0 [list \ TX_KS_PER_CHANNEL [get_env_param TX_KS_PER_CHANNEL 64 ] \ TDD_SUPPORT [get_env_param TDD_SUPPORT 1 ] \ SHARED_DEVCLK [get_env_param SHARED_DEVCLK 1 ] \ + TDD_CHANNEL_CNT [get_env_param TDD_CHANNEL_CNT 6 ] \ + TDD_SYNC_WIDTH [get_env_param TDD_SYNC_WIDTH 0 ] \ + TDD_SYNC_INT [get_env_param TDD_SYNC_INT 0 ] \ + TDD_SYNC_EXT [get_env_param TDD_SYNC_EXT 1 ] \ + TDD_SYNC_EXT_CDC [get_env_param TDD_SYNC_EXT_CDC 1 ] \ ] adi_project_files ad9081_fmca_ebz_x_band_zcu102 [list \