fmcomms2/kc705: Fix the system_top.

Fix the enable/txnrx control lines.
main
Istvan Csomortani 2015-09-25 18:59:52 +03:00
parent f80622b972
commit ea74413125
1 changed files with 13 additions and 21 deletions

View File

@ -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