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_csn_0,
spi_clk, spi_clk,
spi_mosi, spi_mosi,
spi_miso spi_miso);
);
input sys_rst; input sys_rst;
input sys_clk_p; input sys_clk_p;
@ -215,12 +214,9 @@ module system_top (
wire spi_clk; wire spi_clk;
wire spi_mosi; wire spi_mosi;
wire spi_miso; wire spi_miso;
wire tdd_sync_t;
wire tdd_enable_s; wire tdd_sync_o;
wire gpio_enable; wire tdd_sync_i;
wire gpio_txnrx;
wire enable_s;
wire txnrx_s;
// default logic // default logic
@ -230,18 +226,13 @@ module system_top (
assign iic_rstn = 1'b1; assign iic_rstn = 1'b1;
assign spi_csn_0 = spi_csn[0]; 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 // instantiations
ad_iobuf #(.DATA_WIDTH(17)) i_iobuf ( ad_iobuf #(.DATA_WIDTH(15)) i_iobuf (
.dio_t (gpio_t[49:32]), .dio_t (gpio_t[46:32]),
.dio_i (gpio_o[49:32]), .dio_i (gpio_o[46:32]),
.dio_o (gpio_i[49:32]), .dio_o (gpio_i[46:32]),
.dio_p ({ gpio_txnrx, .dio_p ({ gpio_resetb,
gpio_enable,
gpio_resetb,
gpio_sync, gpio_sync,
gpio_en_agc, gpio_en_agc,
gpio_ctl, gpio_ctl,
@ -326,9 +317,10 @@ module system_top (
.tx_frame_out_p (tx_frame_out_p), .tx_frame_out_p (tx_frame_out_p),
.uart_sin (uart_sin), .uart_sin (uart_sin),
.uart_sout (uart_sout), .uart_sout (uart_sout),
.enable (enable_s), .enable (enable),
.txnrx (txnrx_s), .txnrx (txnrx),
.tdd_enable (tdd_enable_s)); .up_enable (gpio_o[47]),
.up_txnrx (gpio_o[48]));
endmodule endmodule