在Quartus中使用TCL文件分配引腳

在Quartus中可使用TCL文件分配引腳,這種方法可重用性較好。

  步驟大概是,先建立並編輯TCL文件,並將其加入工程內,然後在tool->tcl script中選中相應的TCL文件,點擊RUN。

  用到的命令如下:

  -爲工程創建TCL文件 projects->generat tcl file for project

    -直接新建TCL文件  new->tcl file

    -運行TCL      tool->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、導入管腳分配文件


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章