2020-06-14 02:41:52 +00:00
|
|
|
# 时钟约束50MHz
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property -dict { PACKAGE_PIN N14 IOSTANDARD LVCMOS33 } [get_ports {clk}];
|
|
|
|
create_clock -add -name sys_clk_pin -period 20.00 -waveform {0 10} [get_ports {clk}];
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# 时钟引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports clk]
|
|
|
|
set_property PACKAGE_PIN N14 [get_ports clk]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# 复位引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports rst]
|
|
|
|
set_property PACKAGE_PIN L13 [get_ports rst]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# 程序执行完毕指示引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports over]
|
|
|
|
set_property PACKAGE_PIN M16 [get_ports over]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# 程序执行成功指示引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports succ]
|
|
|
|
set_property PACKAGE_PIN N16 [get_ports succ]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# CPU停住指示引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports halted_ind]
|
|
|
|
set_property PACKAGE_PIN P15 [get_ports halted_ind]
|
|
|
|
|
2020-07-04 06:33:33 +00:00
|
|
|
# 串口下载使能引脚
|
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports uart_debug_pin]
|
|
|
|
set_property PACKAGE_PIN K13 [get_ports uart_debug_pin]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# 串口发送引脚
|
2020-07-04 06:33:33 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports uart_tx_pin]
|
|
|
|
set_property PACKAGE_PIN M6 [get_ports uart_tx_pin]
|
2020-04-25 08:59:23 +00:00
|
|
|
|
2020-06-26 14:41:48 +00:00
|
|
|
# 串口接收引脚
|
2020-07-04 06:33:33 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports uart_rx_pin]
|
|
|
|
set_property PACKAGE_PIN N6 [get_ports uart_rx_pin]
|
2020-06-26 14:41:48 +00:00
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# GPIO0引脚
|
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports {gpio[0]}]
|
|
|
|
set_property PACKAGE_PIN P16 [get_ports {gpio[0]}]
|
2020-04-25 08:59:23 +00:00
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# GPIO1引脚
|
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports {gpio[1]}]
|
|
|
|
set_property PACKAGE_PIN T15 [get_ports {gpio[1]}]
|
|
|
|
|
|
|
|
# JTAG TCK引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports jtag_TCK]
|
|
|
|
set_property PACKAGE_PIN N11 [get_ports jtag_TCK]
|
|
|
|
|
|
|
|
create_clock -name jtag_clk_pin -period 300 [get_ports {jtag_TCK}];
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# JTAG TMS引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports jtag_TMS]
|
|
|
|
set_property PACKAGE_PIN N3 [get_ports jtag_TMS]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# JTAG TDI引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports jtag_TDI]
|
|
|
|
set_property PACKAGE_PIN N2 [get_ports jtag_TDI]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# JTAG TDO引脚
|
2020-04-25 08:59:23 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports jtag_TDO]
|
|
|
|
set_property PACKAGE_PIN M1 [get_ports jtag_TDO]
|
2020-05-06 15:10:42 +00:00
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# SPI MISO引脚
|
2020-05-06 15:10:42 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports spi_miso]
|
|
|
|
set_property PACKAGE_PIN P1 [get_ports spi_miso]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# SPI MOSI引脚
|
2020-05-06 15:10:42 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports spi_mosi]
|
|
|
|
set_property PACKAGE_PIN N1 [get_ports spi_mosi]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# SPI SS引脚
|
2020-05-06 15:10:42 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports spi_ss]
|
|
|
|
set_property PACKAGE_PIN M5 [get_ports spi_ss]
|
|
|
|
|
2020-06-14 02:41:52 +00:00
|
|
|
# SPI CLK引脚
|
2020-05-06 15:10:42 +00:00
|
|
|
set_property IOSTANDARD LVCMOS33 [get_ports spi_clk]
|
|
|
|
set_property PACKAGE_PIN N4 [get_ports spi_clk]
|
2020-06-14 14:13:44 +00:00
|
|
|
|
|
|
|
set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]
|
|
|
|
set_property CONFIG_MODE SPIx4 [current_design]
|
|
|
|
set_property BITSTREAM.CONFIG.CONFIGRATE 50 [current_design]
|