From f3eca485332ff19d5d261d38290a0c9c217bc3ed Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Wed, 9 Sep 2015 12:37:52 +0300 Subject: [PATCH] pzsdr_rfsom: Update project with the new TDD sync interface --- projects/pzsdr/rfsom/system_constr.xdc | 3 +-- projects/pzsdr/rfsom/system_top.v | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/projects/pzsdr/rfsom/system_constr.xdc b/projects/pzsdr/rfsom/system_constr.xdc index 3c0f516bc..8ca0679b2 100644 --- a/projects/pzsdr/rfsom/system_constr.xdc +++ b/projects/pzsdr/rfsom/system_constr.xdc @@ -36,8 +36,7 @@ set_property -dict {PACKAGE_PIN B17 IOSTANDARD LVDS} [get_ports tx_data_o set_property -dict {PACKAGE_PIN A17 IOSTANDARD LVDS} [get_ports tx_data_out_n[5]] ; ## IO_L18N_T2_AD13N_35 set_property -dict {PACKAGE_PIN G14 IOSTANDARD LVCMOS18} [get_ports enable] ; ## IO_L11P_T1_SRCC_35 set_property -dict {PACKAGE_PIN F14 IOSTANDARD LVCMOS18} [get_ports txnrx] ; ## IO_L11N_T1_SRCC_35 -set_property -dict {PACKAGE_PIN AA18 IOSTANDARD LVCMOS25} [get_ports tdd_sync_out] ; ## IO_L24_13_JX2_N -set_property -dict {PACKAGE_PIN W19 IOSTANDARD LVCMOS25} [get_ports tdd_sync_in] ; ## IO_L23_13_JX2_N +set_property -dict {PACKAGE_PIN W19 IOSTANDARD LVCMOS25} [get_ports tdd_sync] ; ## IO_L23_13_JX2_N set_property -dict {PACKAGE_PIN D13 IOSTANDARD LVCMOS18} [get_ports gpio_status[0]] ; ## IO_L19P_T3_35 set_property -dict {PACKAGE_PIN C13 IOSTANDARD LVCMOS18} [get_ports gpio_status[1]] ; ## IO_L19N_T3_VREF_35 diff --git a/projects/pzsdr/rfsom/system_top.v b/projects/pzsdr/rfsom/system_top.v index 8ddccc976..f1154ac87 100644 --- a/projects/pzsdr/rfsom/system_top.v +++ b/projects/pzsdr/rfsom/system_top.v @@ -109,8 +109,7 @@ module system_top ( enable, txnrx, - tdd_sync_out, - tdd_sync_in, + tdd_sync, gpio_rf0, gpio_rf1, @@ -200,8 +199,7 @@ module system_top ( output enable; output txnrx; - output tdd_sync_out; - input tdd_sync_in; + inout tdd_sync; inout gpio_rf0; inout gpio_rf1; @@ -227,6 +225,10 @@ module system_top ( wire [63:0] gpio_o; wire [63:0] gpio_t; + wire tdd_sync_i; + wire tdd_sync_o; + wire tdd_sync_t; + // assignments assign hdmi_pd = 1'b0; @@ -255,6 +257,12 @@ module system_top ( .dio_o (gpio_i[11:0]), .dio_p (gpio_bd)); + ad_iobuf #(.DATA_WIDTH(1)) i_iobuf_tdd_sync ( + .dio_t (tdd_sync_t), + .dio_i (tdd_sync_o), + .dio_o (tdd_sync_i), + .dio_p (tdd_sync)); + system_wrapper i_system_wrapper ( .ddr_addr (ddr_addr), .ddr_ba (ddr_ba), @@ -348,8 +356,9 @@ module system_top ( .spi1_sdi_i (1'b0), .spi1_sdo_i (1'b0), .spi1_sdo_o (), - .tdd_sync_in (tdd_sync_in), - .tdd_sync_out (tdd_sync_out), + .tdd_sync_i (tdd_sync_i), + .tdd_sync_o (tdd_sync_o), + .tdd_sync_t (tdd_sync_t), .tx_clk_out_n (tx_clk_out_n), .tx_clk_out_p (tx_clk_out_p), .tx_data_out_n (tx_data_out_n),