pluto_hdl_adi/projects/cn0561/de10nano/system_project.tcl

67 lines
2.7 KiB
Tcl
Raw Normal View History

###############################################################################
## Copyright (C) 2023 Analog Devices, Inc. All rights reserved.
### SPDX short identifier: ADIBSD
###############################################################################
set REQUIRED_QUARTUS_VERSION 22.1std.0
2022-03-30 12:29:54 +00:00
set QUARTUS_PRO_ISUSED 0
source ../../../scripts/adi_env.tcl
source ../../scripts/adi_project_intel.tcl
adi_project cn0561_de10nano
source $ad_hdl_dir/projects/common/de10nano/de10nano_system_assign.tcl
#
## down-grade Critical Warning related to asynchronous RAM in DMAC
#
## "mixed_port_feed_through_mode" parameter of RAM can not have value "old"
set_global_assignment -name MESSAGE_DISABLE 15003
# files
# SPI interface for ad7134
set_location_assignment PIN_AH12 -to cn0561_spi_sclk ; ## Arduino_IO13
set_location_assignment PIN_AH11 -to cn0561_spi_sdi ; ## Arduino_IO12
set_location_assignment PIN_AG16 -to cn0561_spi_sdo ; ## Arduino_IO11
set_location_assignment PIN_AF15 -to cn0561_spi_cs ; ## Arduino_IO10
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_spi_sclk
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_spi_sdi
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_spi_sdo
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_spi_cs
# I2C
set_location_assignment PIN_AG11 -to i2c_scl ; ## Arduino_IO15
set_location_assignment PIN_AH9 -to i2c_sda ; ## Arduino_IO14
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to i2c_scl
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to i2c_sda
# reset and GPIO signals
set_location_assignment PIN_AF13 -to cn0561_pdn ; ## Arduino_IO1
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_pdn
# synchronization and timing
set_location_assignment PIN_AG9 -to cn0561_odr ; ## Arduino_IO3
set_location_assignment PIN_AG10 -to cn0561_dclk ; ## Arduino_IO2
set_location_assignment PIN_U14 -to cn0561_din[0] ; ## Arduino_IO4
set_location_assignment PIN_U13 -to cn0561_din[1] ; ## Arduino_IO5
set_location_assignment PIN_AG8 -to cn0561_din[2] ; ## Arduino_IO6
set_location_assignment PIN_AH8 -to cn0561_din[3] ; ## Arduino_IO7
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_odr
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_dclk
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_din[0]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_din[1]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_din[2]
set_instance_assignment -name IO_STANDARD "3.3-V LVTTL" -to cn0561_din[3]
execute_flow -compile