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

📄 sevseg2.fit

📁 简单的数码显示例子,初学非常好。。希望能帮助大家
💻 FIT
字号:
-- MAX+plus II Compiler Fit File      
-- Version 10.2 07/10/2002            
-- Compiled: 11/07/2005 17:01:17      

-- Copyright (C) 1988-2002 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 "sevseg2"
BEGIN

    DEVICE = "EP1K30QC208-3";

    "t0"                           : INPUT_PIN  = 7      ;
    "t1"                           : INPUT_PIN  = 8      ;
    "t2"                           : INPUT_PIN  = 9      ;
    "t3"                           : INPUT_PIN  = 11     ;
    "A1"                           : OUTPUT_PIN = 17     ;
    "A2"                           : OUTPUT_PIN = 18     ;
    "A3"                           : OUTPUT_PIN = 19     ;
    "A4"                           : OUTPUT_PIN = 24     ;
    "A5"                           : OUTPUT_PIN = 25     ;
    "A6"                           : OUTPUT_PIN = 26     ;
    "A7"                           : OUTPUT_PIN = 27     ;
    "|sevseg:1|~49~3"              : LOCATION   = LC2_A23;
    "|sevseg:1|~54~3"              : LOCATION   = LC3_A23;
    "|sevseg:1|~58~2"              : LOCATION   = LC4_A35;
    "|sevseg:1|~64~4"              : LOCATION   = LC7_A35;
    "|sevseg:1|~68~2"              : LOCATION   = LC1_A35;
    "|sevseg:1|~72~2"              : LOCATION   = LC2_A35;
    "|sevseg:1|~77~3"              : LOCATION   = LC3_A35;

END;

INTERNAL_INFO "sevseg2"
BEGIN
	DEVICE = EP1K30QC208-3;
    LC2_A23 : LORAX = "1:MSW1R0C23,V3C23,HHR2R2->OH1R2P17|";
    LC3_A23 : LORAX = "1:MSW2R0C23,V6C23,HHR21R2->OH2R2P18|";
    LC4_A35 : LORAX = "1:MSW3R0C35,V9C35,HHR17R2->OH3R2P19|";
    LC7_A35 : LORAX = "1:MSW6R0C34,V18C34,HHR62R2->OH6R2P24|";
    LC1_A35 : LORAX = "1:MSW0R0C34,V1C34,HHR34R3->OH0R3P25|";
    LC2_A35 : LORAX = "1:MSW1R0C35,V4C35,HHR10R3->OH1R3P26|";
    LC3_A35 : LORAX = "1:MSW2R0C34,V6C34,HHR33R3->OH2R3P27|";
    OH0R0P7 : LORAX = "1:G55R0|2:PA0R0C22->LC2_A23,->LC3_A23|,2:PA0R0C34->LC4_A35,->LC7_A35,->LC1_A35,->LC2_A35,->LC3_A35||";
    OH2R0P8 : LORAX = "1:G58R0|2:PA4R0C22->LC2_A23,->LC3_A23|,2:PA4R0C34->LC4_A35,->LC7_A35,->LC1_A35,->LC2_A35,->LC3_A35||";
    OH3R0P9 : LORAX = "1:G71R0|2:PA6R0C22->LC2_A23,->LC3_A23|,2:PA6R0C34->LC4_A35,->LC7_A35,->LC1_A35,->LC2_A35,->LC3_A35||";
    OH6R0P11 : LORAX = "1:G69R0|2:PA3R0C22->LC2_A23,->LC3_A23|,2:PA3R0C34->LC4_A35,->LC7_A35,->LC1_A35,->LC2_A35,->LC3_A35||";
	LC2_A23 : LORAX2 = "OH6R0P11, OH3R0P9, OH0R0P7, OH2R0P8";
	LC3_A23 : LORAX2 = "OH3R0P9, OH2R0P8, OH0R0P7, OH6R0P11";
	LC4_A35 : LORAX2 = "OH3R0P9, OH2R0P8, OH0R0P7, OH6R0P11";
	LC7_A35 : LORAX2 = "OH6R0P11, OH3R0P9, OH0R0P7, OH2R0P8";
	LC1_A35 : LORAX2 = "OH0R0P7, OH3R0P9, OH6R0P11, OH2R0P8";
	LC2_A35 : LORAX2 = "OH6R0P11, OH3R0P9, OH2R0P8, OH0R0P7";
	LC3_A35 : LORAX2 = "OH6R0P11, OH3R0P9, OH2R0P8, OH0R0P7";
END;

⌨️ 快捷键说明

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