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

📄 lcd1602_driver.tcl

📁 写给小白们的FPGA入门设计实验
💻 TCL
字号:
# Copyright (C) 1991-2010 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: lcd1602_driver.tcl
# Generated on: Sun Feb 12 15:29:36 2012

# 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) "lcd1602_driver"]} {
		puts "Project lcd1602_driver is not open"
		set make_assignments 0
	}
} else {
	# Only open if not already open
	if {[project_exists lcd1602_driver]} {
		project_open -revision lcd1602_driver lcd1602_driver
	} else {
		project_new -revision lcd1602_driver lcd1602_driver
	}
	set need_to_close_project 1
}

# Make assignments
if {$make_assignments} {
	set_global_assignment -name FAMILY "Cyclone II"
	set_global_assignment -name DEVICE EP2C35F672C6
	set_global_assignment -name ORIGINAL_QUARTUS_VERSION 11.0
	set_global_assignment -name PROJECT_CREATION_TIME_DATE "05:25:26  JUNE 26, 2011"
	set_global_assignment -name LAST_QUARTUS_VERSION "9.1 SP1"
	set_global_assignment -name VERILOG_FILE src/lcd1602_driver.v
	set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
	set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
	set_global_assignment -name DEVICE_FILTER_PIN_COUNT 672
	set_global_assignment -name DEVICE_FILTER_SPEED_GRADE 6
	set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
	set_global_assignment -name USE_CONFIGURATION_DEVICE ON
	set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED"
	set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
	set_global_assignment -name PARTITION_FITTER_PRESERVATION_LEVEL PLACEMENT_AND_ROUTING -section_id Top
	set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
	set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
	set_global_assignment -name LL_ROOT_REGION ON -section_id "Root Region"
	set_global_assignment -name LL_MEMBER_STATE LOCKED -section_id "Root Region"
	set_global_assignment -name STRATIX_CONFIGURATION_DEVICE EPCS16
	set_global_assignment -name RESERVE_ASDO_AFTER_CONFIGURATION "AS INPUT TRI-STATED"
	set_global_assignment -name RESERVE_ALL_UNUSED_PINS_NO_OUTPUT_GND "AS INPUT TRI-STATED"
	set_location_assignment PIN_N2 -to clk
	set_location_assignment PIN_K4 -to lcd_rw
	set_location_assignment PIN_K3 -to lcd_en
	set_location_assignment PIN_K1 -to lcd_rs
	set_location_assignment PIN_H3 -to lcd_data[7]
	set_location_assignment PIN_H4 -to lcd_data[6]
	set_location_assignment PIN_J3 -to lcd_data[5]
	set_location_assignment PIN_J4 -to lcd_data[4]
	set_location_assignment PIN_H2 -to lcd_data[3]
	set_location_assignment PIN_H1 -to lcd_data[2]
	set_location_assignment PIN_J2 -to lcd_data[1]
	set_location_assignment PIN_J1 -to lcd_data[0]
	set_location_assignment PIN_N25 -to rst_n
	set_location_assignment PIN_L4 -to lcd_on
	set_location_assignment PIN_K2 -to lcd_blon
	set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top

	# Commit assignments
	export_assignments

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

⌨️ 快捷键说明

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