From f80622b9724c1ec112e2726505e0d109bf636975 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Fri, 25 Sep 2015 18:56:35 +0300 Subject: [PATCH] fmcomms2/ac701: Fix the system_top Fix the enable/txnrx control line. --- projects/fmcomms2/ac701/system_top.v | 30 ++++++++++------------------ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/projects/fmcomms2/ac701/system_top.v b/projects/fmcomms2/ac701/system_top.v index ddcabbe7c..f8e47eb8f 100644 --- a/projects/fmcomms2/ac701/system_top.v +++ b/projects/fmcomms2/ac701/system_top.v @@ -192,30 +192,19 @@ module system_top ( wire spi_mosi; wire spi_miso; - wire tdd_enable_s; - wire gpio_enable; - wire gpio_txnrx; - wire enable_s; - wire txnrx_s; - // assignments assign fan_pwm = 1'b1; 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[48:32]), - .dio_i (gpio_o[48:32]), - .dio_o (gpio_i[48: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, @@ -257,7 +246,7 @@ module system_top ( .mb_intr_08 (1'b0), .mb_intr_14 (1'b0), .mb_intr_15 (1'b0), - .mdio_io (phy_mdio), + .mdio_mdio_io (phy_mdio), .mdio_mdc (phy_mdc), .phy_rst_n (phy_reset_n), .rgmii_rd (phy_rx_data), @@ -290,9 +279,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