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

📄 keyboard.fit

📁 4*4键盘显示的4x4键盘识别与显示模块。小键盘中有0~f共16个按键
💻 FIT
字号:
-- MAX+plus II Compiler Fit File      
-- Version 10.0 9/14/2000             
-- Compiled: 03/16/2006 16:13:09      

-- Copyright (C) 1988-2000 Altera Corporation
-- Any megafunction design, and related net list (encrypted or decrypted),
-- support information, device programming or simulation file, and any other
-- associated documentation or information provided by Altera or a partner
-- under Altera's Megafunction Partnership Program may be used only to
-- program PLD devices (but not masked PLD devices) from Altera.  Any other
-- use of such megafunction design, net list, support information, device
-- programming or simulation file, or any other related documentation or
-- information is prohibited for any other purpose, including, but not
-- limited to modification, reverse engineering, de-compiling, or use with
-- any other silicon devices, unless such use is explicitly licensed under
-- a separate agreement with Altera or a megafunction partner.  Title to
-- the intellectual property, including patents, copyrights, trademarks,
-- trade secrets, or maskworks, embodied in any such megafunction design,
-- net list, support information, device programming or simulation file, or
-- any other related documentation or information provided by Altera or a
-- megafunction partner, remains with Altera, the megafunction partner, or
-- their respective licensors.  No other licenses, including any licenses
-- needed under any third party's intellectual property, are provided herein.

CHIP "keyboard"
BEGIN

    DEVICE = "EPM7064SLC44-5";

    "clk_4M"                       : INPUT_PIN  = 43     ;
    "key_in0"                      : INPUT_PIN  = 8      ; -- LC5
    "key_in1"                      : INPUT_PIN  = 9      ; -- LC4
    "key_in2"                      : INPUT_PIN  = 12     ; -- LC1
    "key_in3"                      : INPUT_PIN  = 11     ; -- LC3
    "a"                            : OUTPUT_PIN = 20     ; -- LC19
    "b"                            : OUTPUT_PIN = 36     ; -- LC52
    "clk_debounce"                 : OUTPUT_PIN = 24     ; -- LC33
    "clk_scan0"                    : OUTPUT_PIN = 39     ; -- LC57
    "clk_scan1"                    : OUTPUT_PIN = 40     ; -- LC62
    "clk_scan2"                    : OUTPUT_PIN = 41     ; -- LC64
    "clk_scan3"                    : OUTPUT_PIN = 28     ; -- LC40
    "c"                            : OUTPUT_PIN = 19     ; -- LC20
    "d"                            : OUTPUT_PIN = 31     ; -- LC46
    "e"                            : OUTPUT_PIN = 37     ; -- LC53
    "f"                            : OUTPUT_PIN = 29     ; -- LC41
    "g"                            : OUTPUT_PIN = 34     ; -- LC51
    "out_numb0"                    : OUTPUT_PIN = 27     ; -- LC37
    "out_numb1"                    : OUTPUT_PIN = 26     ; -- LC36
    "out_numb2"                    : OUTPUT_PIN = 33     ; -- LC49
    "out_numb3"                    : OUTPUT_PIN = 25     ; -- LC35
    "|debouncing:u1|dff1"          : LOCATION   = LC47   ;
    "|debouncing:u1|dff2"          : LOCATION   = LC63   ;
    "|debouncing:u1|:3"            : LOCATION   = LC59   ;
    "|debouncing:u2|dff1"          : LOCATION   = LC43   ;
    "|debouncing:u2|dff2"          : LOCATION   = LC44   ;
    "|debouncing:u2|:3"            : LOCATION   = LC38   ;
    "|debouncing:u3|dff1"          : LOCATION   = LC27   ;
    "|debouncing:u3|dff2"          : LOCATION   = LC48   ; -- PIN 32
    "|debouncing:u3|:3"            : LOCATION   = LC34   ;
    "|debouncing:u4|dff1"          : LOCATION   = LC17   ; -- PIN 21
    "|debouncing:u4|dff2"          : LOCATION   = LC42   ;
    "|debouncing:u4|:3"            : LOCATION   = LC45   ;
    ":36"                          : LOCATION   = LC50   ;  -- q5
    ":37"                          : LOCATION   = LC61   ;  -- q4
    ":38"                          : LOCATION   = LC60   ;  -- q3
    ":39"                          : LOCATION   = LC54   ;  -- q2
    ":40"                          : LOCATION   = LC55   ;  -- q1
    "~1814~1"                      : LOCATION   = LC39   ;
    "~1820~1"                      : LOCATION   = LC56   ; -- PIN 38
    "~1850~1"                      : LOCATION   = LC58   ;

END;

INTERNAL_INFO "keyboard"
BEGIN
	DEVICE = EPM7064SLC44-5;
	LC40    : LORAX = "G28R0";
	LC64    : LORAX = "G114R0";
	LC62    : LORAX = "G112R0";
	LC57    : LORAX = "G78R0";
	LC35    : LORAX = "G60R0,PA12R0C2";
	LC49    : LORAX = "G29R0,PA7R0C3";
	LC36    : LORAX = "G61R0,PA9R0C2";
	LC37    : LORAX = "G25R0,PA2R0C2";
	LC19    : LORAX = "G56R0";
	LC52    : LORAX = "G32R0";
	LC20    : LORAX = "G57R0";
	LC46    : LORAX = "G75R0";
	LC53    : LORAX = "G62R0";
	LC41    : LORAX = "G107R0";
	LC51    : LORAX = "G31R0";
	LC33    : LORAX = "G58R0,PA11R0C1,PA11R0C2,PA11R0C3";
	LC50    : LORAX = "G30R0,PA5R0C1,PA5R0C3,PA5R0C2";
	LC61    : LORAX = "G111R0,PA29R0C1,PA29R0C2,PA29R0C3";
	LC60    : LORAX = "G81R0,PA22R0C3";
	LC54    : LORAX = "G63R0,PA14R0C3";
	LC55    : LORAX = "G64R0,PA12R0C3";
	LC59    : LORAX = "G80R0,PA25R0C1,PA25R0C2,PA25R0C3";
	LC47    : LORAX = "G76R0,PA19R0C3";
	OH4R0P8 : LORAX = "G116R0,PA27R0C2";
	LC63    : LORAX = "G113R0,PA34R0C3";
	LC38    : LORAX = "G26R0,PA1R0C1,PA1R0C2,PA6R0C3";
	LC43    : LORAX = "G109R0,PA30R0C2";
	OH3R0P9 : LORAX = "G86R0,PA26R0C2";
	LC44    : LORAX = "G110R0,PA31R0C2";
	LC34    : LORAX = "G59R0,PA10R0C1,PA10R0C2,PA15R0C3";
	LC27    : LORAX = "G105R0,PA33R0C2";
	OH0R0P12 : LORAX = "G83R0,PA19R0C1";
	LC48    : LORAX = "G77R0,PA22R0C2";
	LC45    : LORAX = "G74R0,PA18R0C1,PA18R0C2,PA18R0C3";
	LC17    : LORAX = "G54R0,PA13R0C2";
	OH2R0P11 : LORAX = "G85R0,PA23R0C1";
	LC42    : LORAX = "G108R0,PA32R0C2";
	LC56    : LORAX = "G65R0,PA10R0C3";
	LC39    : LORAX = "G27R0,PA3R0C2";
	LC58    : LORAX = "G79R0,PA21R0C1";
END;

⌨️ 快捷键说明

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