📄 ps2_mouse_test.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: ps2_mouse_test.tcl
# Generated on: Thu Sep 21 14:45:18 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) "ps2_mouse_test"]} {
puts "Project ps2_mouse_test is not open"
set make_assignments 0
}
} else {
# Only open if not already open
if {[project_exists ps2_mouse_test]} {
project_open -revision ps2_mouse_test ps2_mouse_test
} else {
project_new -revision ps2_mouse_test ps2_mouse_test
}
set need_to_close_project 1
}
# Make assignments
if {$make_assignments} {
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 5.0
set_global_assignment -name PROJECT_CREATION_TIME_DATE "09:59:30 AUGUST 15, 2006"
set_global_assignment -name LAST_QUARTUS_VERSION 5.0
set_global_assignment -name VERILOG_FILE count.v
set_global_assignment -name VERILOG_FILE mouse_test.v
set_global_assignment -name VERILOG_FILE ps2_mouse_interface.v
set_global_assignment -name VERILOG_FILE ps2_mouse_test.v
set_global_assignment -name VQM_FILE vga_logic.vqm
set_global_assignment -name IGNORE_CLOCK_SETTINGS ON
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 8
set_global_assignment -name FAMILY Cyclone
set_global_assignment -name DEVICE EP1C12Q240C8
set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED"
set_global_assignment -name RESERVE_ASDO_AFTER_CONFIGURATION "AS OUTPUT DRIVING AN UNSPECIFIED SIGNAL"
set_global_assignment -name ERROR_CHECK_FREQUENCY_DIVISOR 1
set_global_assignment -name ENABLE_CLOCK_LATENCY ON
set_global_assignment -name CYCLONE_CONFIGURATION_DEVICE EPCS4
set_global_assignment -name RESERVE_ALL_UNUSED_PINS_NO_OUTPUT_GND "AS INPUT TRI-STATED"
set_location_assignment PIN_28 -to clock
set_location_assignment PIN_152 -to rst_n
set_location_assignment PIN_2 -to ps2_mouse_data
set_location_assignment PIN_240 -to ps2_mouse_clk
set_location_assignment PIN_58 -to sram_addr[17]
set_location_assignment PIN_59 -to sram_addr[16]
set_location_assignment PIN_60 -to sram_addr[15]
set_location_assignment PIN_76 -to sram_addr[14]
set_location_assignment PIN_77 -to sram_addr[13]
set_location_assignment PIN_78 -to sram_addr[12]
set_location_assignment PIN_79 -to sram_addr[11]
set_location_assignment PIN_82 -to sram_addr[10]
set_location_assignment PIN_114 -to sram_addr[9]
set_location_assignment PIN_113 -to sram_addr[8]
set_location_assignment PIN_108 -to sram_addr[7]
set_location_assignment PIN_107 -to sram_addr[6]
set_location_assignment PIN_106 -to sram_addr[5]
set_location_assignment PIN_87 -to sram_addr[4]
set_location_assignment PIN_86 -to sram_addr[3]
set_location_assignment PIN_85 -to sram_addr[2]
set_location_assignment PIN_84 -to sram_addr[1]
set_location_assignment PIN_83 -to sram_addr[0]
set_location_assignment PIN_62 -to sram_data[15]
set_location_assignment PIN_61 -to sram_data[14]
set_location_assignment PIN_65 -to sram_data[13]
set_location_assignment PIN_66 -to sram_data[12]
set_location_assignment PIN_67 -to sram_data[11]
set_location_assignment PIN_68 -to sram_data[10]
set_location_assignment PIN_73 -to sram_data[9]
set_location_assignment PIN_74 -to sram_data[8]
set_location_assignment PIN_104 -to sram_data[7]
set_location_assignment PIN_101 -to sram_data[6]
set_location_assignment PIN_100 -to sram_data[5]
set_location_assignment PIN_99 -to sram_data[4]
set_location_assignment PIN_98 -to sram_data[3]
set_location_assignment PIN_95 -to sram_data[2]
set_location_assignment PIN_94 -to sram_data[1]
set_location_assignment PIN_93 -to sram_data[0]
set_location_assignment PIN_105 -to sram_nwe
set_location_assignment PIN_56 -to sram_noe
set_location_assignment PIN_64 -to upper_byte
set_location_assignment PIN_63 -to lower_byte
set_location_assignment PIN_17 -to hsync
set_location_assignment PIN_15 -to vsync
set_location_assignment PIN_45 -to disp_dato[7]
set_location_assignment PIN_43 -to disp_dato[6]
set_location_assignment PIN_41 -to disp_dato[5]
set_location_assignment PIN_23 -to disp_dato[4]
set_location_assignment PIN_20 -to disp_dato[3]
set_location_assignment PIN_18 -to disp_dato[2]
set_location_assignment PIN_16 -to disp_dato[1]
set_location_assignment PIN_14 -to disp_dato[0]
set_location_assignment PIN_88 -to sram_ncs1
# Commit assignments
export_assignments
# Close project
if {$need_to_close_project} {
project_close
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -