adv7511/zc702- pmods as gpios

main
Rejeesh Kutty 2017-08-09 14:07:31 -04:00
parent c632f4463f
commit 90af9a8f8c
3 changed files with 18 additions and 7 deletions

View File

@ -0,0 +1,12 @@
# gpio (pmods)
set_property -dict {PACKAGE_PIN P17 IOSTANDARD LVCMOS25} [get_ports gpio_bd[8]] ; ## PMOD2_3_LS
set_property -dict {PACKAGE_PIN P18 IOSTANDARD LVCMOS25} [get_ports gpio_bd[9]] ; ## PMOD2_2_LS
set_property -dict {PACKAGE_PIN W10 IOSTANDARD LVCMOS25} [get_ports gpio_bd[10]] ; ## PMOD2_1_LS
set_property -dict {PACKAGE_PIN V7 IOSTANDARD LVCMOS25} [get_ports gpio_bd[11]] ; ## PMOD2_0_LS
set_property -dict {PACKAGE_PIN E15 IOSTANDARD LVCMOS25} [get_ports gpio_bd[12]] ; ## PMOD1_0_LS
set_property -dict {PACKAGE_PIN D15 IOSTANDARD LVCMOS25} [get_ports gpio_bd[13]] ; ## PMOD1_1_LS
set_property -dict {PACKAGE_PIN W17 IOSTANDARD LVCMOS25} [get_ports gpio_bd[14]] ; ## PMOD1_2_LS
set_property -dict {PACKAGE_PIN W5 IOSTANDARD LVCMOS25} [get_ports gpio_bd[15]] ; ## PMOD1_3_LS

View File

@ -6,6 +6,7 @@ source $ad_hdl_dir/projects/scripts/adi_board.tcl
adi_project_xilinx adv7511_zc702
adi_project_files adv7511_zc702 [list \
"system_top.v" \
"system_constr.xdc" \
"$ad_hdl_dir/projects/common/zc702/zc702_system_constr.xdc" \
"$ad_hdl_dir/library/xilinx/common/ad_iobuf.v" ]

View File

@ -81,13 +81,11 @@ module system_top (
// instantiations
ad_iobuf #(
.DATA_WIDTH(16)
) i_gpio_bd (
.dio_t(gpio_t[15:0]),
.dio_i(gpio_o[15:0]),
.dio_o(gpio_i[15:0]),
.dio_p(gpio_bd));
ad_iobuf #(.DATA_WIDTH(16)) i_gpio_bd (
.dio_t (gpio_t[15:0]),
.dio_i (gpio_o[15:0]),
.dio_o (gpio_i[15:0]),
.dio_p ({gpio_bd[7:4], gpio_bd[15:8], gpio_bd[3:0]}));
system_wrapper i_system_wrapper (
.ddr_addr (ddr_addr),