使用tcl脚本设置引脚配置

发布时间 2023-08-13 21:54:36作者: 生活的艺术

tcl设置引脚

tool->TCL -> run

#------------------GLOBAL--------------------#
#set_global_assignment -name FAMILY "Cyclone IV E"
#set_global_assignment -name DEVICE EP4CE6F17C8
#set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED"
#set_global_assignment -name ENABLE_INIT_DONE_OUTPUT OFF

#复位引脚
set_location_assignment	PIN_M15	-to RESET

#时钟引脚
set_location_assignment	PIN_E1	-to CLK

#LED对应的引脚
set_location_assignment	PIN_G15	-to LEDS[0]
set_location_assignment	PIN_F16	-to LEDS[1]
set_location_assignment	PIN_F15	-to LEDS[2]
set_location_assignment	PIN_D16	-to LEDS[3]

#RXD/TXD
set_location_assignment	PIN_E7	-to RXD
set_location_assignment	PIN_D8	-to TXD

参考

https://blog.csdn.net/sdvch/article/details/9029223