From ea7441312507d2910bcd1e162fa29bdb8cd97057 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Fri, 25 Sep 2015 18:59:52 +0300 Subject: [PATCH] fmcomms2/kc705: Fix the system_top. Fix the enable/txnrx control lines. --- projects/fmcomms2/kc705/system_top.v | 34 +++++++++++----------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/projects/fmcomms2/kc705/system_top.v b/projects/fmcomms2/kc705/system_top.v index 01f43f98a..0e8f942c8 100644 --- a/projects/fmcomms2/kc705/system_top.v +++ b/projects/fmcomms2/kc705/system_top.v @@ -121,8 +121,7 @@ module system_top ( spi_csn_0, spi_clk, spi_mosi, - spi_miso - ); + spi_miso); input sys_rst; input sys_clk_p; @@ -215,12 +214,9 @@ module system_top ( wire spi_clk; wire spi_mosi; wire spi_miso; - - wire tdd_enable_s; - wire gpio_enable; - wire gpio_txnrx; - wire enable_s; - wire txnrx_s; + wire tdd_sync_t; + wire tdd_sync_o; + wire tdd_sync_i; // default logic @@ -230,18 +226,13 @@ module system_top ( assign iic_rstn = 1'b1; assign spi_csn_0 = spi_csn[0]; - assign enable = (tdd_enable_s == 1'b1) ? enable_s : gpio_enable; - assign txnrx = (tdd_enable_s == 1'b1) ? txnrx_s : gpio_txnrx; - // instantiations - ad_iobuf #(.DATA_WIDTH(17)) i_iobuf ( - .dio_t (gpio_t[49:32]), - .dio_i (gpio_o[49:32]), - .dio_o (gpio_i[49:32]), - .dio_p ({ gpio_txnrx, - gpio_enable, - gpio_resetb, + ad_iobuf #(.DATA_WIDTH(15)) i_iobuf ( + .dio_t (gpio_t[46:32]), + .dio_i (gpio_o[46:32]), + .dio_o (gpio_i[46:32]), + .dio_p ({ gpio_resetb, gpio_sync, gpio_en_agc, gpio_ctl, @@ -326,9 +317,10 @@ module system_top ( .tx_frame_out_p (tx_frame_out_p), .uart_sin (uart_sin), .uart_sout (uart_sout), - .enable (enable_s), - .txnrx (txnrx_s), - .tdd_enable (tdd_enable_s)); + .enable (enable), + .txnrx (txnrx), + .up_enable (gpio_o[47]), + .up_txnrx (gpio_o[48])); endmodule