system_top: Non functional changes in system_tops to reduce warnings

Loop back the unused GPIO pins, and add all the SPI interface to system
wrapper instance.

The following system_top modules were changed:
  - ad738x_fmc
  - ad7616_sdz
  - ad77681evb
  - ad77681evb
  - ad7768evb
  - ad9739a_fmc
  - ad9434
  - adrv9739
  - fmcadc5
  - ad6676evb
  - ad9265
  - ad5766
  - fmcomms5
  - m2k
main
Adrian Costina 2018-02-16 14:02:41 +00:00 committed by István Csomortáni
parent b2d63bf9e0
commit 98b58562d6
17 changed files with 68 additions and 12 deletions

View File

@ -121,6 +121,8 @@ module system_top (
.dio_o(gpio_i[31:0]),
.dio_p(gpio_bd));
assign gpio_i[63:33] = gpio_o[63:33];
ad_iobuf #(
.DATA_WIDTH(2)
) i_iic_mux_scl (

View File

@ -118,8 +118,6 @@ module system_top (
wire [63:0] gpio_o;
wire [63:0] gpio_t;
wire [ 6:0] spi_csn_open;
wire spi_mosi;
wire spi_miso;
wire rx_ref_clk;
wire rx_sysref;
wire rx_sync;
@ -130,6 +128,9 @@ module system_top (
assign fan_pwm = 1'b1;
assign iic_rstn = 1'b1;
assign gpio_i[63:42]= gpio_o[63:42];
assign gpio_i[31:21]= gpio_o[31:21];
// instantiations
IBUFDS_GTE2 i_ibufds_rx_ref_clk (

View File

@ -116,6 +116,9 @@ module system_top (
wire rx_sysref;
wire rx_clk;
assign gpio_i[63:42]= gpio_o[63:42];
assign gpio_i[31:15]= gpio_o[31:15];
// instantiations
IBUFDS_GTE2 i_ibufds_rx_ref_clk (

View File

@ -104,7 +104,7 @@ module system_top (
// instantiations
assign gpio_i[63:32] = 32'b0;
assign gpio_i[63:32] = gpio_o[63:32];
ad_iobuf #(
.DATA_WIDTH(32)
) i_iobuf (

View File

@ -124,6 +124,10 @@ module system_top (
adc_seq_en, // 37
adc_chsel})); // 35:33
assign gpio_i[63:44] = gpio_o[63:44];
assign gpio_i[40:38] = gpio_o[40:38];
assign gpio_i[36] = gpio_o[36];
generate
for (i = 0; i < 16; i = i + 1) begin: adc_db_io
ad_iobuf i_iobuf_adc_db (

View File

@ -133,6 +133,8 @@ module system_top (
.dio_o(gpio_i[31:0]),
.dio_p(gpio_bd));
assign gpio_i[63:44] = gpio_o[63:44];
ad_iobuf #(
.DATA_WIDTH(2)
) i_iobuf_iic_mux_scl (

View File

@ -164,6 +164,9 @@ module system_top (
ad7768_0_sync_out,
ad7768_0_reset}));
assign gpio_i[47:39] = gpio_o[47:39];
assign gpio_i[63:55] = gpio_o[63:55];
ad_iobuf #(
.DATA_WIDTH(32)
) i_iobuf (
@ -172,6 +175,9 @@ module system_top (
.dio_o(gpio_i[31:0]),
.dio_p(gpio_bd));
assign gpio_i[47:39] = gpio_o[47:39];
assign gpio_i[63:55] = gpio_o[63:55];
ad_iobuf #(
.DATA_WIDTH(2)
) i_iic_mux_scl (

View File

@ -155,6 +155,11 @@ module system_top (
.dio_o (gpio_i[31:0]),
.dio_p (gpio_bd));
assign gpio_i[36:32] = 5'b0;
assign gpio_i[39:37] = gpio_o[39:37];
assign gpio_i[47:44] = gpio_o[47:44];
assign gpio_i[63:53] = gpio_o[63:53];
ad_iobuf #(.DATA_WIDTH(2)) i_iic_mux_scl (
.dio_t ({iic_mux_scl_t_s, iic_mux_scl_t_s}),
.dio_i (iic_mux_scl_o_s),

View File

@ -113,6 +113,8 @@ ad_iobuf #(.DATA_WIDTH(15)) iobuf_gpio_bd (
.dio_t (gpio_t[14:0]),
.dio_p (gpio_bd));
assign gpio_i[63:15] = gpio_o[63:15];
ad9265_spi i_spi (
.spi_csn(spi0_csn[1:0]),
.spi_clk(spi_clk),

View File

@ -92,6 +92,14 @@ module system_top (
wire [63:0] gpio_t;
wire spi_miso;
wire spi_mosi;
wire [ 2:0] spi1_csn;
wire spi1_clk;
wire spi1_mosi;
wire spi1_miso;
// assignments
assign gpio_i[63:15] = gpio_o[63:15];
// instantiations
@ -169,7 +177,17 @@ module system_top (
.spi0_csn_i (1'b1),
.spi0_sdi_i (spi_miso),
.spi0_sdo_i (1'b0),
.spi0_sdo_o (spi_mosi));
.spi0_sdo_o (spi_mosi),
.spi1_clk_i (spi1_clk),
.spi1_clk_o (spi1_clk),
.spi1_csn_0_o (spi1_csn[0]),
.spi1_csn_1_o (spi1_csn[1]),
.spi1_csn_2_o (spi1_csn[2]),
.spi1_csn_i (1'b1),
.spi1_sdi_i (1'b1),
.spi1_sdo_i (spi1_mosi),
.spi1_sdo_o (spi1_mosi));
endmodule

View File

@ -118,6 +118,8 @@ module system_top (
.dio_o (gpio_i[14:0]),
.dio_p (gpio_bd));
assign gpio_i[63:15] = gpio_o[63:15];
system_wrapper i_system_wrapper (
.ddr_addr (ddr_addr),
.ddr_ba (ddr_ba),

View File

@ -163,9 +163,11 @@ module system_top (
wire tx_sync;
wire tx_sync_1;
wire sysref;
// wire sysref_out;
wire sysref_out;
assign sysref_out = 0;
assign gpio_i[63:60] = gpio_o[63:60];
assign gpio_i[31:15] = gpio_o[31:15];
// instantiations

View File

@ -138,7 +138,6 @@ module system_top (
wire [ 63:0] gpio_o;
wire [ 63:0] gpio_t;
wire [ 7:0] spi_csn;
wire spi_clk;
wire spi_mosi;
wire spi_miso;
wire rx_ref_clk_0;
@ -163,6 +162,11 @@ module system_top (
assign psync_0 = psync;
assign psync_1 = psync;
assign gpio_i[63:47]= gpio_o[63:47];
assign gpio_i[45:45]= gpio_o[45:45];
assign gpio_i[37:36]= gpio_o[37:36];
assign gpio_i[33:21]= gpio_o[33:21];
// lvds buffers
IBUFDS_GTE2 i_ibufds_rx_ref_clk_0 (

View File

@ -221,6 +221,7 @@ module system_top (
assign spi_clk = spi0_clk;
assign spi_mosi = spi0_mosi;
assign spi0_miso = spi_miso;
assign gpio_i[63:60] = gpio_o[63:60];
system_wrapper i_system_wrapper (
.ddr_addr (ddr_addr),

View File

@ -218,6 +218,7 @@ module system_top (
assign spi_clk = spi0_clk;
assign spi_mosi = spi0_mosi;
assign spi0_miso = spi_miso;
assign gpio_i[63:60] = gpio_o[63:60];
system_wrapper i_system_wrapper (
.ddr_addr (ddr_addr),

View File

@ -148,7 +148,6 @@ module system_top (
.O (ref_clk));
assign gpio_resetb_1 = gpio_o[65];
assign gpio_i[64] = gpio_ad5355_lock;
assign gpio_ad5355_rfen = gpio_o[63];
assign gpio_calsw_4_1 = gpio_o[62];
assign gpio_calsw_3_1 = gpio_o[61];
@ -169,15 +168,15 @@ module system_top (
assign gpio_debug_1_0 = gpio_o[46];
assign gpio_ctl_1 = gpio_o[45:42];
assign gpio_ctl_0 = gpio_o[41:38];
assign gpio_i[37:30] = gpio_status_1;
assign gpio_i[29:22] = gpio_status_0;
assign gpio_open_15_15 = gpio_o[21];
assign gpio_bd_o = gpio_o[20:13];
assign gpio_i[12: 0] = gpio_bd_i;
assign gpio_i[94:65] = gpio_o[94:65];
assign gpio_i[21:13] = gpio_o[21:13];
assign gpio_i[29:22] = gpio_status_0;
assign gpio_i[37:30] = gpio_status_1;
assign gpio_i[63:38] = gpio_o[63:38];
assign gpio_i[21:14] = gpio_o[21:14];
assign gpio_i[64] = gpio_ad5355_lock;
assign gpio_i[94:65] = gpio_o[94:65];
assign spi_ad9361_0 = spi0_csn[0];
assign spi_ad9361_1 = spi0_csn[1];
@ -186,10 +185,13 @@ module system_top (
assign spi_mosi = spi0_mosi;
assign spi0_miso = spi_miso;
assign spi1_miso = 1'b0;
assign gpio_debug_3_1 = 1'b0;
assign gpio_debug_4_1 = 1'b0;
system_wrapper i_system_wrapper (
.gpio_i (gpio_i),
.gpio_o (gpio_o),
.gpio_t (),
.ps_intr_00 (1'b0),
.ps_intr_01 (1'b0),
.ps_intr_02 (1'b0),

View File

@ -194,6 +194,7 @@ module system_top (
.spi0_clk_o (spi0_clk),
.spi0_csn_0_o (spi0_csn[0]),
.spi0_csn_1_o (spi0_csn[1]),
.spi0_csn_2_o (),
.spi0_csn_i (1'b1),
.spi0_sdi_i (spi0_miso),
.spi0_sdo_i (spi0_mosi),