Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
d8240ff3fThis file is pinned to the selected release. Download the original to open it in your design tool.
#-------------------------------------------------------------------------------
# PROJECT: SPI MASTER AND SLAVE FOR FPGA
#-------------------------------------------------------------------------------
# AUTHORS: Jakub Cabal <jakubcabal@gmail.com>
# LICENSE: The MIT License, please read LICENSE file
# WEBSITE: https://github.com/jakubcabal/spi-fpga
#-------------------------------------------------------------------------------
# GLOBAL CONSTRAINTS FOR EP4CE6 STARTER BOARD
set_global_assignment -name FAMILY "Cyclone IV E"
set_global_assignment -name DEVICE EP4CE6E22C8
set_global_assignment -name TOP_LEVEL_ENTITY SPI_LOOPBACK
# PROJECT VHDL FILES
set_global_assignment -name VHDL_FILE ../../../rtl/spi_slave.vhd
set_global_assignment -name VHDL_FILE ../../../rtl/spi_master.vhd
set_global_assignment -name VHDL_FILE ../../common/rst_sync.vhd
set_global_assignment -name VHDL_FILE ../../common/clk_en_gen.vhd
set_global_assignment -name VHDL_FILE ../../common/sseg_driver.vhd
set_global_assignment -name VHDL_FILE ../../common/btn_debounce.vhd
set_global_assignment -name VHDL_FILE ../spi_loopback.vhd
# FPGA PINS ASSIGNMENT
set_location_assignment PIN_91 -to CLK
set_location_assignment PIN_25 -to BTN_RST
set_location_assignment PIN_85 -to M_SCLK
set_location_assignment PIN_86 -to M_CS_N
set_location_assignment PIN_87 -to M_MOSI
set_location_assignment PIN_99 -to M_MISO
set_location_assignment PIN_111 -to S_SCLK
set_location_assignment PIN_110 -to S_CS_N
set_location_assignment PIN_98 -to S_MOSI
set_location_assignment PIN_100 -to S_MISO
set_location_assignment PIN_24 -to BTN_MENU_MODE
set_location_assignment PIN_23 -to BTN_MENU_ACTION
set_location_assignment PIN_7 -to SSEG[0]
set_location_assignment PIN_3 -to SSEG[1]
set_location_assignment PIN_2 -to SSEG[2]
set_location_assignment PIN_1 -to SSEG[3]
set_location_assignment PIN_144 -to SSEG[4]
set_location_assignment PIN_143 -to SSEG[5]
set_location_assignment PIN_142 -to SSEG[6]
set_location_assignment PIN_141 -to SSEG[7]
set_location_assignment PIN_137 -to SSEG_AN[0]
set_location_assignment PIN_138 -to SSEG_AN[1]
set_location_assignment PIN_10 -to SSEG_AN[2]
set_location_assignment PIN_11 -to SSEG_AN[3]