de10nano: Fix IO assignments

- define IO assignments for HPS SPI master
  - delete unused GPIO ports
main
Istvan Csomortani 2020-10-27 10:43:12 +00:00 committed by István Csomortáni
parent 04a694251e
commit c048a9243a
2 changed files with 17 additions and 6 deletions

View File

@ -99,8 +99,8 @@ module system_top (
// board gpio
output [ 3:0] gpio_bd_o,
input [ 7:0] gpio_bd_i,
output [ 7:0] gpio_bd_o,
input [ 5:0] gpio_bd_i,
output hdmi_out_clk,
output hdmi_vsync,
@ -132,12 +132,10 @@ module system_top (
// instantiations
assign gpio_i[63:32] = gpio_o[63:32];
assign gpio_i[11:4] = gpio_bd_i[7:0];
assign gpio_bd_o[3:0] = gpio_o[3:0];
assign gpio_i[31:12] = gpio_o[31:12];
assign gpio_i[11:4] = gpio_bd_i[5:0];
assign gpio_bd_o[7:0] = gpio_o[7:0];
assign ltc2308_cs = gpio_o[41];
ALT_IOBUF scl_iobuf (

View File

@ -47,6 +47,19 @@ set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to gpio_bd_i[5]
set_location_assignment PIN_A22 -to uart0_rx
set_location_assignment PIN_B21 -to uart0_tx
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to uart0_rx
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to uart0_tx
# hps spi master
set_location_assignment PIN_C16 -to spim1_ss0
set_location_assignment PIN_C19 -to spim1_clk
set_location_assignment PIN_B16 -to spim1_mosi
set_location_assignment PIN_B19 -to spim1_miso
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to spim1_ss0
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to spim1_clk
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to spim1_mosi
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to spim1_miso
# SPI interface for ltc2308