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

📄 myfx2.tcl

📁 FPGA与USB通信的测试代码
💻 TCL
字号:
# Copyright (C) 1991-2005 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: MYFX2.tcl
# Generated on: Sun Sep 17 20:17:59 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) "MYFX2"]} {
		puts "Project MYFX2 is not open"
		set make_assignments 0
	}
} else {
	# Only open if not already open
	if {[project_exists MYFX2]} {
		project_open -cmp MYFX2 MYFX2
	} else {
		project_new -cmp MYFX2 MYFX2
	}
	set need_to_close_project 1
}

# Make assignments
if {$make_assignments} {
	catch { set_global_assignment -name ORIGINAL_QUARTUS_VERSION 5.0 } result
	catch { set_global_assignment -name PROJECT_CREATION_TIME_DATE "22:49:14  MAY 16, 2006" } result
	catch { set_global_assignment -name LAST_QUARTUS_VERSION 5.0 } result
	catch { set_global_assignment -name VERILOG_FILE MYFX2.v } result
	catch { set_global_assignment -name COMPILER_SETTINGS MYFX2 } result
	catch { set_global_assignment -name SIMULATOR_SETTINGS MYFX2 } result
	catch { set_global_assignment -name SOFTWARE_SETTINGS MYFX2 } result
	catch { set_global_assignment -name DEVICE_FILTER_PACKAGE "ANY QFP" } result
	catch { set_global_assignment -name DEVICE_FILTER_PIN_COUNT 240 } result
	catch { set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 8 } result
	catch { set_global_assignment -name FAMILY Cyclone } result
	catch { set_global_assignment -name DEVICE EP1C6Q240C8 } result
	catch { set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED" } result
	catch { set_global_assignment -name ENABLE_INIT_DONE_OUTPUT ON } result
	catch { set_global_assignment -name RESERVE_ASDO_AFTER_CONFIGURATION "AS OUTPUT DRIVING AN UNSPECIFIED SIGNAL" } result
	catch { set_global_assignment -name WEAK_PULL_UP_RESISTOR OFF } result
	catch { set_global_assignment -name AUTO_GLOBAL_CLOCK OFF } result
	catch { set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1 } result
	catch { set_global_assignment -name STRATIX_DEVICE_IO_STANDARD LVTTL } result
	catch { set_global_assignment -name USE_COMPILER_SETTINGS MYFX2 } result
	catch { set_global_assignment -name LL_ORIGIN LAB_X1_Y1 -section_id MYFX2 } result
	catch { set_global_assignment -name LL_HEIGHT 1 -section_id MYFX2 } result
	catch { set_global_assignment -name LL_WIDTH 1 -section_id MYFX2 } result
	catch { set_global_assignment -name LL_STATE FLOATING -section_id MYFX2 } result
	catch { set_global_assignment -name LL_AUTO_SIZE ON -section_id MYFX2 } result
	catch { set_global_assignment -name LL_RESERVED OFF -section_id MYFX2 } result
	catch { set_global_assignment -name LL_MEMBER_STATE LOCKED -section_id MYFX2 } result
	catch { set_global_assignment -name LL_SOFT OFF -section_id MYFX2 } result
	catch { set_global_assignment -name LL_MEMBER_OF MYFX2 -section_id MYFX2 } result
	catch { set_location_assignment PIN_183 -to LED[0] } result
	catch { set_location_assignment PIN_182 -to LED[1] } result
	catch { set_location_assignment PIN_181 -to LED[2] } result
	catch { set_location_assignment PIN_180 -to LED[3] } result
	catch { set_location_assignment PIN_124 -to USBCLK } result
	catch { set_location_assignment PIN_131 -to nRESET } result
	catch { set_location_assignment PIN_153 -to MMCLK } result
	catch { set_location_assignment PIN_1 -to GPD[15] } result
	catch { set_location_assignment PIN_2 -to GPD[14] } result
	catch { set_location_assignment PIN_3 -to GPD[13] } result
	catch { set_location_assignment PIN_4 -to GPD[12] } result
	catch { set_location_assignment PIN_5 -to GPA[8] } result
	catch { set_location_assignment PIN_6 -to USER[5] } result
	catch { set_location_assignment PIN_7 -to USER[4] } result
	catch { set_location_assignment PIN_8 -to USER[3] } result
	catch { set_location_assignment PIN_11 -to USER[2] } result
	catch { set_location_assignment PIN_12 -to USER[1] } result
	catch { set_location_assignment PIN_13 -to USER[0] } result
	catch { set_location_assignment PIN_14 -to IFCLK } result
	catch { set_location_assignment PIN_15 -to nINT5 } result
	catch { set_location_assignment PIN_16 -to GPD[11] } result
	catch { set_location_assignment PIN_17 -to GPD[10] } result
	catch { set_location_assignment PIN_18 -to GPD[9] } result
	catch { set_location_assignment PIN_19 -to GPD[8] } result
	catch { set_location_assignment PIN_20 -to CTL[5] } result
	catch { set_location_assignment PIN_21 -to PA[7] } result
	catch { set_location_assignment PIN_23 -to PA[6] } result
	catch { set_location_assignment PIN_38 -to PA[5] } result
	catch { set_location_assignment PIN_39 -to PA[4] } result
	catch { set_location_assignment PIN_41 -to PA[3] } result
	catch { set_location_assignment PIN_42 -to PA[2] } result
	catch { set_location_assignment PIN_43 -to PA[1] } result
	catch { set_location_assignment PIN_44 -to PA[0] } result
	catch { set_location_assignment PIN_45 -to GPA[7] } result
	catch { set_location_assignment PIN_46 -to GPA[6] } result
	catch { set_location_assignment PIN_47 -to GPA[5] } result
	catch { set_location_assignment PIN_48 -to GPA[4] } result
	catch { set_location_assignment PIN_49 -to GPA[3] } result
	catch { set_location_assignment PIN_50 -to GPA[2] } result
	catch { set_location_assignment PIN_53 -to GPA[1] } result
	catch { set_location_assignment PIN_54 -to GPA[0] } result
	catch { set_location_assignment PIN_55 -to CTL[2] } result
	catch { set_location_assignment PIN_56 -to CTL[1] } result
	catch { set_location_assignment PIN_57 -to CTL[0] } result
	catch { set_location_assignment PIN_58 -to CTL[4] } result
	catch { set_location_assignment PIN_59 -to CTL[3] } result
	catch { set_location_assignment PIN_60 -to GPD[7] } result
	catch { set_location_assignment PIN_61 -to GPD[6] } result
	catch { set_location_assignment PIN_62 -to GPD[5] } result
	catch { set_location_assignment PIN_63 -to GPD[4] } result
	catch { set_location_assignment PIN_64 -to GPD[3] } result
	catch { set_location_assignment PIN_65 -to GPD[2] } result
	catch { set_location_assignment PIN_66 -to GPD[1] } result
	catch { set_location_assignment PIN_67 -to GPD[0] } result
	catch { set_location_assignment PIN_122 -to KEY[1] } result
	catch { set_location_assignment PIN_123 -to KEY[0] } result
	catch { set_location_assignment PIN_121 -to KEY[2] } result
	catch { set_location_assignment PIN_235 -to RDY[5] } result
	catch { set_location_assignment PIN_236 -to RDY[4] } result
	catch { set_location_assignment PIN_237 -to RDY[3] } result
	catch { set_location_assignment PIN_238 -to RDY[2] } result
	catch { set_location_assignment PIN_239 -to RDY[1] } result
	catch { set_location_assignment PIN_240 -to RDY[0] } result
	catch { set_location_assignment PIN_29 -to CLKOUT } result
	catch { set_location_assignment PIN_74 -to RAMBA[10] } result
	catch { set_location_assignment PIN_75 -to RAMBA[11] } result
	catch { set_location_assignment PIN_76 -to RAMBA[12] } result
	catch { set_location_assignment PIN_77 -to RAMBA[13] } result
	catch { set_location_assignment PIN_78 -to RAMBA[14] } result
	catch { set_location_assignment PIN_79 -to RAMBD[8] } result
	catch { set_location_assignment PIN_80 -to RAMBD[9] } result
	catch { set_location_assignment PIN_81 -to RAMBD[10] } result
	catch { set_location_assignment PIN_82 -to RAMBD[11] } result
	catch { set_location_assignment PIN_83 -to RAMBA[9] } result
	catch { set_location_assignment PIN_84 -to RAMBA[8] } result
	catch { set_location_assignment PIN_85 -to RAMBA[7] } result
	catch { set_location_assignment PIN_86 -to RAMBA[6] } result
	catch { set_location_assignment PIN_87 -to RAMBA[5] } result
	catch { set_location_assignment PIN_88 -to RAMBWE } result
	catch { set_location_assignment PIN_93 -to RAMBD[7] } result
	catch { set_location_assignment PIN_94 -to RAMBD[6] } result
	catch { set_location_assignment PIN_95 -to RAMBD[5] } result
	catch { set_location_assignment PIN_96 -to RAMBD[4] } result
	catch { set_location_assignment PIN_97 -to RAMBD[3] } result
	catch { set_location_assignment PIN_98 -to RAMBD[2] } result
	catch { set_location_assignment PIN_99 -to RAMBD[1] } result
	catch { set_location_assignment PIN_100 -to RAMBD[0] } result
	catch { set_location_assignment PIN_101 -to RAMBCE } result
	catch { set_location_assignment PIN_102 -to RAMBA[4] } result
	catch { set_location_assignment PIN_103 -to RAMBA[3] } result
	catch { set_location_assignment PIN_104 -to RAMBA[2] } result
	catch { set_location_assignment PIN_105 -to RAMBA[1] } result
	catch { set_location_assignment PIN_106 -to RAMBA[0] } result
	catch { set_location_assignment PIN_107 -to RAMBD[12] } result
	catch { set_location_assignment PIN_108 -to RAMBD[13] } result
	catch { set_location_assignment PIN_113 -to RAMBD[14] } result
	catch { set_location_assignment PIN_114 -to RAMBD[15] } result
	catch { set_location_assignment PIN_115 -to RAMBLB } result
	catch { set_location_assignment PIN_116 -to RAMBUB } result
	catch { set_location_assignment PIN_117 -to RAMBOE } result
	catch { set_location_assignment PIN_118 -to RAMBA[15] } result
	catch { set_location_assignment PIN_119 -to RAMBA[16] } result
	catch { set_location_assignment PIN_120 -to RAMBA[17] } result
	catch { set_location_assignment PIN_184 -to RAMAA[0] } result
	catch { set_location_assignment PIN_185 -to RAMAA[1] } result
	catch { set_location_assignment PIN_186 -to RAMAA[2] } result
	catch { set_location_assignment PIN_187 -to RAMAA[3] } result
	catch { set_location_assignment PIN_188 -to RAMAA[4] } result
	catch { set_location_assignment PIN_193 -to RAMACE } result
	catch { set_location_assignment PIN_194 -to RAMAD[0] } result
	catch { set_location_assignment PIN_195 -to RAMAD[1] } result
	catch { set_location_assignment PIN_196 -to RAMAD[2] } result
	catch { set_location_assignment PIN_197 -to RAMAD[3] } result
	catch { set_location_assignment PIN_198 -to RAMAA[17] } result
	catch { set_location_assignment PIN_199 -to RAMAA[16] } result
	catch { set_location_assignment PIN_200 -to RAMAA[15] } result
	catch { set_location_assignment PIN_201 -to RAMAOE } result
	catch { set_location_assignment PIN_202 -to RAMAUB } result
	catch { set_location_assignment PIN_203 -to RAMALB } result
	catch { set_location_assignment PIN_204 -to RAMAD[15] } result
	catch { set_location_assignment PIN_205 -to RAMAD[14] } result
	catch { set_location_assignment PIN_206 -to RAMAD[13] } result
	catch { set_location_assignment PIN_207 -to RAMAD[12] } result
	catch { set_location_assignment PIN_208 -to RAMAD[11] } result
	catch { set_location_assignment PIN_213 -to RAMAD[10] } result
	catch { set_location_assignment PIN_214 -to RAMAD[9] } result
	catch { set_location_assignment PIN_215 -to RAMAD[8] } result
	catch { set_location_assignment PIN_216 -to RAMAA[14] } result
	catch { set_location_assignment PIN_217 -to RAMAA[13] } result
	catch { set_location_assignment PIN_218 -to RAMAA[12] } result
	catch { set_location_assignment PIN_219 -to RAMAA[11] } result
	catch { set_location_assignment PIN_220 -to RAMAA[10] } result
	catch { set_location_assignment PIN_221 -to RAMAD[4] } result
	catch { set_location_assignment PIN_222 -to RAMAD[5] } result
	catch { set_location_assignment PIN_223 -to RAMAD[6] } result
	catch { set_location_assignment PIN_224 -to RAMAD[7] } result
	catch { set_location_assignment PIN_225 -to RAMAWE } result
	catch { set_location_assignment PIN_226 -to RAMAA[5] } result
	catch { set_location_assignment PIN_227 -to RAMAA[6] } result
	catch { set_location_assignment PIN_228 -to RAMAA[7] } result
	catch { set_location_assignment PIN_233 -to RAMAA[8] } result
	catch { set_location_assignment PIN_234 -to RAMAA[9] } result

	# Commit assignments
	export_assignments

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

⌨️ 快捷键说明

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