步骤大概是,先建立并编辑TCL文件,并将其加入工程内,然后在tool->tcl script中选中相应的TCL文件,点击RUN。
用到的命令如下:
-为工程创建TCL文件projects->generat tcl file for project
-直接新建TCL文件new->tcl file
-运行TCLtool->tcl script->run
TCL脚本的编写语句:
-为工程的某个属性赋值set_global_assignment -name FAMILY "Cyclone II"
-引脚分配set_location_assignment PIN_AE16 -to DA_data[7]
package require ::quartus::project
set_location_assignment PIN_118 -to CS1
set_location_assignment PIN_139 -to DSP_Add[5]
set_location_assignment PIN_141 -to DSP_Add[4]
set_location_assignment PIN_142 -to DSP_Add[3]
set_location_assignment PIN_143 -to DSP_Add[2]
set_location_assignment PIN_144 -to DSP_Add[1]
set_location_assignment PIN_145 -to DSP_Add[0]
set_location_assignment PIN_117 -to DSP_Data[7]
set_location_assignment PIN_127 -to DSP_Data[6]
set_location_assignment PIN_128 -to DSP_Data[5]
set_location_assignment PIN_133 -to DSP_Data[4]
set_location_assignment PIN_134 -to DSP_Data[3]
set_location_assignment PIN_135 -to DSP_Data[2]
set_location_assignment PIN_137 -to DSP_Data[1]
set_location_assignment PIN_138 -to DSP_Data[0]
set_location_assignment PIN_116 -to RD
set_location_assignment PIN_115 -to WR
set_location_assignment PIN_23 -to clk
set_location_assignment PIN_28 -to rst_n
set_location_assignment PIN_104 -to sysrs
set_location_assignment PIN_101 -to send_begin
set_location_assignment PIN_110 -to ready
1、导出管脚分配文件tcl
2、导入管脚分配文件