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

📄 test.tcl

📁 altera公司的FPGA的一些开发用的VHDL的源代码用于学习
💻 TCL
字号:
# Copyright (C) 1991-2006 Altera Corporation
# Your use of Altera Corporation's design tools, logic functions 
# and other software and tools, and its AMPP partner logic 
# functions, and any output files any of the foregoing 
# (including device programming or simulation files), and any 
# associated documentation or information are expressly subject 
# to the terms and conditions of the Altera Program License 
# Subscription Agreement, Altera MegaCore Function License 
# Agreement, or other applicable license agreement, including, 
# without limitation, that your use is for the sole purpose of 
# programming logic devices manufactured by Altera and sold by 
# Altera or its authorized distributors.  Please refer to the 
# applicable agreement for further details.

# Quartus II: Generate Tcl File for Project
# File: ka.tcl
# Generated on: Fri Jul 14 15:07:48 2006

# Load Quartus II Tcl Project package
package require ::quartus::project

set need_to_close_project 0
set make_assignments 1

# Check that the right project is open
if {[is_project_open]} {
	if {[string compare $quartus(project) "ka"]} {
		puts "Project ka is not open"
		set make_assignments 0
	}
} else {
	# Only open if not already open
	if {[project_exists ka]} {
		project_open -revision ka ka
	} else {
		project_new -revision ka ka
	}
	set need_to_close_project 1
}

# Make assignments
if {$make_assignments} {
	set_global_assignment -name FAMILY Cyclone
	set_global_assignment -name DEVICE EP1C12Q240C6
	set_global_assignment -name TOP_LEVEL_ENTITY top
	set_global_assignment -name ORIGINAL_QUARTUS_VERSION 6.0
	set_global_assignment -name PROJECT_CREATION_TIME_DATE "08:43:24  JULY 03, 2006"
	set_global_assignment -name LAST_QUARTUS_VERSION 6.0
	set_global_assignment -name DEVICE_FILTER_PACKAGE "ANY QFP"
	set_global_assignment -name DEVICE_FILTER_PIN_COUNT 240
	set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 6
	set_global_assignment -name BDF_FILE top.bdf
	set_global_assignment -name VHDL_FILE led.vhd
	set_global_assignment -name CYCLONE_CONFIGURATION_DEVICE EPCS4
	set_global_assignment -name RESERVE_ASDO_AFTER_CONFIGURATION "AS INPUT TRI-STATED"
	set_global_assignment -name MIF_FILE ka.mif
	set_location_assignment PIN_140 -to BIGEND_
	set_location_assignment PIN_141 -to CCS_
	set_location_assignment PIN_161 -to LINT_
	set_location_assignment PIN_158 -to MODE[0]
	set_location_assignment PIN_156 -to MODE[1]
	set_location_assignment PIN_143 -to USERi
	set_location_assignment PIN_169 -to ADS_
	set_location_assignment PIN_167 -to BLAST_
	set_location_assignment PIN_165 -to BREQi
	set_location_assignment PIN_180 -to BTERM_
	set_location_assignment PIN_175 -to DP[0]
	set_location_assignment PIN_176 -to DP[1]
	set_location_assignment PIN_177 -to DP[2]
	set_location_assignment PIN_178 -to DP[3]
	set_location_assignment PIN_227 -to LBE[0]
	set_location_assignment PIN_228 -to LBE[1]
	set_location_assignment PIN_234 -to LBE[2]
	set_location_assignment PIN_233 -to LBE[3]
	set_location_assignment PIN_170 -to LHOLDA
	set_location_assignment PIN_235 -to LW/R_
	set_location_assignment PIN_179 -to READY_
	set_location_assignment PIN_164 -to WAIT_
	set_location_assignment PIN_163 -to LRESETo_
	set_location_assignment PIN_144 -to USERo
	set_location_assignment PIN_153 -to sysclk
	set_location_assignment PIN_174 -to LCLK
	set_location_assignment PIN_166 -to BREQo
	set_location_assignment PIN_162 -to EOT_
	set_location_assignment PIN_173 -to LHOLD
	set_location_assignment PIN_168 -to LSERR_
	set_location_assignment PIN_159 -to pin_name
	set_location_assignment PIN_236 -to LA[2]
	set_location_assignment PIN_237 -to LA[3]
	set_location_assignment PIN_238 -to LA[4]
	set_location_assignment PIN_239 -to LA[5]
	set_location_assignment PIN_240 -to LA[6]
	set_location_assignment PIN_1 -to LA[7]
	set_location_assignment PIN_2 -to LA[8]
	set_location_assignment PIN_3 -to LA[9]
	set_location_assignment PIN_4 -to LA[10]
	set_location_assignment PIN_5 -to LA[11]
	set_location_assignment PIN_6 -to LA[12]
	set_location_assignment PIN_7 -to LA[13]
	set_location_assignment PIN_8 -to LA[14]
	set_location_assignment PIN_11 -to LA[15]
	set_location_assignment PIN_12 -to LA[16]
	set_location_assignment PIN_13 -to LA[17]
	set_location_assignment PIN_14 -to LA[18]
	set_location_assignment PIN_15 -to LA[19]
	set_location_assignment PIN_16 -to LA[20]
	set_location_assignment PIN_17 -to LA[21]
	set_location_assignment PIN_18 -to LA[22]
	set_location_assignment PIN_19 -to LA[23]
	set_location_assignment PIN_20 -to LA[24]
	set_location_assignment PIN_21 -to LA[25]
	set_location_assignment PIN_23 -to LA[26]
	set_location_assignment PIN_38 -to LA[29]
	set_location_assignment PIN_39 -to LA[30]
	set_location_assignment PIN_41 -to LA[31]
	set_location_assignment PIN_181 -to LD[0]
	set_location_assignment PIN_182 -to LD[1]
	set_location_assignment PIN_183 -to LD[2]
	set_location_assignment PIN_184 -to LD[3]
	set_location_assignment PIN_185 -to LD[4]
	set_location_assignment PIN_186 -to LD[5]
	set_location_assignment PIN_187 -to LD[6]
	set_location_assignment PIN_188 -to LD[7]
	set_location_assignment PIN_193 -to LD[8]
	set_location_assignment PIN_194 -to LD[9]
	set_location_assignment PIN_195 -to LD[10]
	set_location_assignment PIN_196 -to LD[11]
	set_location_assignment PIN_197 -to LD[12]
	set_location_assignment PIN_200 -to LD[13]
	set_location_assignment PIN_201 -to LD[14]
	set_location_assignment PIN_202 -to LD[15]
	set_location_assignment PIN_203 -to LD[16]
	set_location_assignment PIN_206 -to LD[17]
	set_location_assignment PIN_207 -to LD[18]
	set_location_assignment PIN_208 -to LD[19]
	set_location_assignment PIN_213 -to LD[20]
	set_location_assignment PIN_214 -to LD[21]
	set_location_assignment PIN_215 -to LD[22]
	set_location_assignment PIN_216 -to LD[23]
	set_location_assignment PIN_217 -to LD[24]
	set_location_assignment PIN_218 -to LD[25]
	set_location_assignment PIN_219 -to LD[26]
	set_location_assignment PIN_222 -to LD[27]
	set_location_assignment PIN_223 -to LD[28]
	set_location_assignment PIN_224 -to LD[29]
	set_location_assignment PIN_225 -to LD[30]
	set_location_assignment PIN_226 -to LD[31]

	# Commit assignments
	export_assignments

	# Close project
	if {$need_to_close_project} {
		project_close
	}
}

⌨️ 快捷键说明

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