ad9467_zed: Using ad_iobuf module for IO buffer instantiations on top

No functional changes, we just try to keep consistency.
main
Istvan Csomortani 2014-11-24 17:55:19 +02:00
parent 83c2eefea2
commit 64b4d0177e
2 changed files with 17 additions and 14 deletions

View File

@ -7,6 +7,7 @@ set project_name ad9467_fmc_zed
adi_project_create $project_name adi_project_create $project_name
adi_project_files $project_name [list "../common/ad9467_spi.v" \ adi_project_files $project_name [list "../common/ad9467_spi.v" \
"$ad_hdl_dir/library/common/ad_iobuf.v" \
"system_top.v" \ "system_top.v" \
"system_constr.xdc" \ "system_constr.xdc" \
"$ad_hdl_dir/projects/common/zed/zed_system_constr.xdc"] "$ad_hdl_dir/projects/common/zed/zed_system_constr.xdc"]

View File

@ -175,21 +175,23 @@ wire [15:0] ps_intrs;
// instantiations // instantiations
genvar n; ad_iobuf #(.DATA_WIDTH(32)) i_iobuf_gpio (
generate .dt ({gpio_t[31:0]}),
for (n = 0; n <= 31; n = n + 1) begin: g_iobuf_gpio_bd .di ({gpio_o[31:0]}),
IOBUF i_iobuf_gpio_bd ( .do ({gpio_i[31:0]}),
.I (gpio_o[n]), .dio(gpio_bd));
.O (gpio_i[n]),
.T (gpio_t[n]),
.IO (gpio_bd[n]));
end
endgenerate
IOBUF i_iic_mux_scl_0 (.I(iic_mux_scl_o_s[0]), .O(iic_mux_scl_i_s[0]), .T(iic_mux_scl_t_s), .IO(iic_mux_scl[0])); ad_iobuf #(.DATA_WIDTH(2)) i_iobuf_iic_scl (
IOBUF i_iic_mux_scl_1 (.I(iic_mux_scl_o_s[1]), .O(iic_mux_scl_i_s[1]), .T(iic_mux_scl_t_s), .IO(iic_mux_scl[1])); .dt ({iic_mux_scl_t_s,iic_mux_scl_t_s}),
IOBUF i_iic_mux_sda_0 (.I(iic_mux_sda_o_s[0]), .O(iic_mux_sda_i_s[0]), .T(iic_mux_sda_t_s), .IO(iic_mux_sda[0])); .di (iic_mux_scl_o_s),
IOBUF i_iic_mux_sda_1 (.I(iic_mux_sda_o_s[1]), .O(iic_mux_sda_i_s[1]), .T(iic_mux_sda_t_s), .IO(iic_mux_sda[1])); .do (iic_mux_scl_i_s),
.dio(iic_mux_scl));
ad_iobuf #(.DATA_WIDTH(2)) i_iobuf_iic_sda (
.dt ({iic_mux_sda_t_s,iic_mux_sda_t_s}),
.di (iic_mux_sda_o_s),
.do (iic_mux_sda_i_s),
.dio(iic_mux_sda));
assign spi_csn_adc = spi_csn[0]; assign spi_csn_adc = spi_csn[0];
assign spi_csn_clk = spi_csn[1]; assign spi_csn_clk = spi_csn[1];