From 6d91e2e54f8b7257257a9a7730c4312cdf141530 Mon Sep 17 00:00:00 2001 From: Arpadi Date: Thu, 6 Feb 2020 11:06:35 +0200 Subject: [PATCH] coraz7s_fix: Tied drdy to gpio removed IOB attribute for drdy --- projects/ad77681evb/coraz7s/system_constr.xdc | 2 +- projects/ad77681evb/coraz7s/system_top.v | 29 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/projects/ad77681evb/coraz7s/system_constr.xdc b/projects/ad77681evb/coraz7s/system_constr.xdc index 5480616ff..88ffbe1d6 100644 --- a/projects/ad77681evb/coraz7s/system_constr.xdc +++ b/projects/ad77681evb/coraz7s/system_constr.xdc @@ -15,5 +15,5 @@ set_property -dict {PACKAGE_PIN V18 IOSTANDARD LVCMOS33} # syncronization and timing -set_property -dict {PACKAGE_PIN T14 IOSTANDARD LVCMOS33 IOB TRUE} [get_ports ad77681_drdy] ; ## CK_IO2 +set_property -dict {PACKAGE_PIN T14 IOSTANDARD LVCMOS33} [get_ports ad77681_drdy] ; ## CK_IO2 set_property -dict {PACKAGE_PIN R17 IOSTANDARD LVCMOS33} [get_ports ad77681_sync_in] ; ## CK_IO6 diff --git a/projects/ad77681evb/coraz7s/system_top.v b/projects/ad77681evb/coraz7s/system_top.v index 0a63fd41e..6c27b0bc5 100644 --- a/projects/ad77681evb/coraz7s/system_top.v +++ b/projects/ad77681evb/coraz7s/system_top.v @@ -59,13 +59,13 @@ module system_top ( inout fixed_io_ps_clk, inout fixed_io_ps_porb, inout fixed_io_ps_srstb, - + inout [1:0] btn, inout [5:0] led, inout ad77681_reset, inout ad77681_sync_in, - + inout ad77681_fda_dis, inout ad77681_fda_mode, inout ad77681_dac_buf_en, @@ -74,14 +74,14 @@ module system_top ( output ad77681_spi_mosi, output ad77681_spi_sclk, output ad77681_spi_cs, - input ad77681_drdy); + inout ad77681_drdy); // internal signals wire [63:0] gpio_i; wire [63:0] gpio_o; wire [63:0] gpio_t; - + // instantiations ad_iobuf #( @@ -91,7 +91,7 @@ module system_top ( .dio_i(gpio_o[1:0]), .dio_o(gpio_i[1:0]), .dio_p(btn)); - + ad_iobuf #( .DATA_WIDTH(6) ) i_iobuf_leds ( @@ -99,24 +99,25 @@ module system_top ( .dio_i(gpio_o[7:2]), .dio_o(gpio_i[7:2]), .dio_p(led)); - + assign gpio_i[31:8] = gpio_o[31:8]; - + ad_iobuf #( - .DATA_WIDTH(5) + .DATA_WIDTH(6) ) i_iobuf_ad77681_gpio ( - .dio_t(gpio_t[36:32]), - .dio_i(gpio_o[36:32]), - .dio_o(gpio_i[36:32]), + .dio_t(gpio_t[37:32]), + .dio_i(gpio_o[37:32]), + .dio_o(gpio_i[37:32]), .dio_p({ + ad77681_drdy, ad77681_fda_dis, ad77681_fda_mode, ad77681_dac_buf_en, ad77681_sync_in, ad77681_reset})); - - assign gpio_i[63:37] = gpio_o[63:37]; - + + assign gpio_i[63:38] = gpio_o[63:38]; + system_wrapper i_system_wrapper ( .ddr_addr (ddr_addr), .ddr_ba (ddr_ba),