⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 new_project.tcl

📁 Altera FPGA CPLD设计高级篇电子书籍
💻 TCL
字号:
package require ::quartus::project

puts "Creating new project"

# Create a new project
# Target a EP1S10F780C6 device
# The project name is top
# Make it overwrite any existing project files

project_new -overwrite -device EP1S10F780C6 top

puts "Assigning pins"

# Make pin location assignments
 
set_location_assignment -to "AA" "Pin_B18"
set_location_assignment -to "AX" "Pin_A18"
set_location_assignment -to "BA" "Pin_B20"
set_location_assignment -to "BX" "Pin_C18"
set_location_assignment -to "CA" "Pin_A20"
set_location_assignment -to "CX" "Pin_D18"
set_location_assignment -to "DA" "Pin_C20"
set_location_assignment -to "DX" "Pin_A19"
set_location_assignment -to "EA" "Pin_A21"
set_location_assignment -to "EX" "Pin_B19"
set_location_assignment -to "FA" "Pin_B21"
set_location_assignment -to "FX" "Pin_C19"
set_location_assignment -to "GA" "Pin_C21"
set_location_assignment -to "GX" "Pin_E19"
set_location_assignment -to "clk" "Pin_K17"
set_location_assignment -to "countA" "Pin_AB2"
set_location_assignment -to "countX" "Pin_W5"
set_location_assignment -to "enable" "Pin_W6"
set_location_assignment -to "system_reset" "Pin_AB1"
set_location_assignment -to "winA" "Pin_H28"
set_location_assignment -to "winX" "Pin_H27"
set_location_assignment -to "finished" "Pin_L23"
set_location_assignment -to "turnA" "Pin_J25"
set_location_assignment -to "turnX" "Pin_J26"	

# Close the project

project_close

puts "Done creating project"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -