📄 ex.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 from 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: ex.tcl
# Generated on: Fri Jul 11 22:13:51 2008
# 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) "ex"]} {
puts "Project ex is not open"
set make_assignments 0
}
} else {
# Only open if not already open
if {[project_exists ex]} {
project_open -revision ex ex
} else {
project_new -revision ex ex
}
set need_to_close_project 1
}
# Make assignments
if {$make_assignments} {
set_global_assignment -name DEVICE EPM570T100C5
set_global_assignment -name FAMILY "MAX II"
set_global_assignment -name TOP_LEVEL_ENTITY LED
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 6.1
set_global_assignment -name PROJECT_CREATION_TIME_DATE "12:00:52 MAY 10, 2008"
set_global_assignment -name LAST_QUARTUS_VERSION 6.1
set_global_assignment -name BDF_FILE ex.bdf
set_global_assignment -name VHDL_FILE LED.vhd
set_global_assignment -name AUTO_RESTART_CONFIGURATION OFF
set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED"
set_global_assignment -name RESERVE_ALL_UNUSED_PINS_NO_OUTPUT_GND "AS INPUT TRI-STATED"
set_global_assignment -name CDF_FILE Chain1.cdf
set_location_assignment PIN_62 -to clk
set_location_assignment PIN_1 -to led8[0]
set_location_assignment PIN_2 -to led8[1]
set_location_assignment PIN_3 -to led8[2]
set_location_assignment PIN_4 -to led8[3]
set_location_assignment PIN_5 -to led8[4]
set_location_assignment PIN_6 -to led8[5]
set_location_assignment PIN_7 -to led8[6]
set_location_assignment PIN_8 -to led8[7]
set_location_assignment PIN_91 -to sel[0]
set_location_assignment PIN_92 -to sel[1]
set_location_assignment PIN_95 -to sel[2]
set_location_assignment PIN_96 -to sel[3]
set_location_assignment PIN_97 -to sel[4]
set_location_assignment PIN_98 -to sel[5]
set_location_assignment PIN_99 -to sel[6]
set_location_assignment PIN_100 -to sel[7]
set_location_assignment PIN_81 -to seg[0]
set_location_assignment PIN_82 -to seg[1]
set_location_assignment PIN_83 -to seg[2]
set_location_assignment PIN_84 -to seg[3]
set_location_assignment PIN_85 -to seg[4]
set_location_assignment PIN_86 -to seg[5]
set_location_assignment PIN_87 -to seg[6]
set_location_assignment PIN_89 -to seg[7]
set_location_assignment PIN_36 -to key[0]
# Commit assignments
export_assignments
# Close project
if {$need_to_close_project} {
project_close
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -