calculator.fit

来自「ProtelDXp 实现计算器功能」· FIT 代码 · 共 916 行 · 第 1/5 页

FIT
916
字号
-- MAX+plus II Compiler Fit File      
-- Version 10.0 9/14/2000             
-- Compiled: 07/03/2007 21:06:25      

-- 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 "calculator"
BEGIN

    DEVICE = "EP1K100QC208-3";

    "CLK1"                         : INPUT_PIN  = 94     ;
    "CLK2"                         : INPUT_PIN  = 95     ;
    "CLK3"                         : INPUT_PIN  = 96     ;
    "INCLK"                        : INPUT_PIN  = 183    ;
    "INKEY0"                       : INPUT_PIN  = 126    ;
    "INKEY1"                       : INPUT_PIN  = 127    ;
    "INKEY2"                       : INPUT_PIN  = 128    ;
    "INKEY3"                       : INPUT_PIN  = 131    ;
    "ALARM"                        : OUTPUT_PIN = 143    ;
    "COM10"                        : OUTPUT_PIN = 170    ;
    "COM11"                        : OUTPUT_PIN = 172    ;
    "COM12"                        : OUTPUT_PIN = 173    ;
    "COM13"                        : OUTPUT_PIN = 174    ;
    "COM20"                        : OUTPUT_PIN = 190    ;
    "COM21"                        : OUTPUT_PIN = 191    ;
    "COM22"                        : OUTPUT_PIN = 192    ;
    "COM23"                        : OUTPUT_PIN = 193    ;
    "OUTKEY0"                      : OUTPUT_PIN = 120    ;
    "OUTKEY1"                      : OUTPUT_PIN = 121    ;
    "OUTKEY2"                      : OUTPUT_PIN = 122    ;
    "OUTKEY3"                      : OUTPUT_PIN = 125    ;
    "SEG10"                        : OUTPUT_PIN = 175    ;
    "SEG11"                        : OUTPUT_PIN = 176    ;
    "SEG12"                        : OUTPUT_PIN = 177    ;
    "SEG13"                        : OUTPUT_PIN = 179    ;
    "SEG14"                        : OUTPUT_PIN = 180    ;
    "SEG15"                        : OUTPUT_PIN = 186    ;
    "SEG16"                        : OUTPUT_PIN = 187    ;
    "SEG17"                        : OUTPUT_PIN = 189    ;
    "SEG20"                        : OUTPUT_PIN = 195    ;
    "SEG21"                        : OUTPUT_PIN = 196    ;
    "SEG22"                        : OUTPUT_PIN = 197    ;
    "SEG23"                        : OUTPUT_PIN = 198    ;
    "SEG24"                        : OUTPUT_PIN = 199    ;
    "SEG25"                        : OUTPUT_PIN = 200    ;
    "SEG26"                        : OUTPUT_PIN = 202    ;
    "SEG27"                        : OUTPUT_PIN = 203    ;
    "|cal:1|bcdto2:7|add16:5|:99"  : LOCATION   = LC8_G33;
    "|cal:1|bcdto2:7|add16:5|:106" : LOCATION   = LC1_G33;
    "|cal:1|bcdto2:7|add16:5|:110" : LOCATION   = LC6_G33;
    "|cal:1|bcdto2:7|add16:5|:114" : LOCATION   = LC5_G43;
    "|cal:1|bcdto2:7|add16:5|:116" : LOCATION   = LC1_G43;
    "|cal:1|bcdto2:7|add16:5|~116~1" : LOCATION   = LC7_G47;
    "|cal:1|bcdto2:7|add16:5|:121" : LOCATION   = LC3_G42;
    "|cal:1|bcdto2:7|add16:5|:124" : LOCATION   = LC1_G42;
    "|cal:1|bcdto2:7|add16:5|:130" : LOCATION   = LC4_G42;
    "|cal:1|bcdto2:7|add16:6|:105" : LOCATION   = LC3_I52;
    "|cal:1|bcdto2:7|add16:6|:107" : LOCATION   = LC4_I52;
    "|cal:1|bcdto2:7|add16:6|:112" : LOCATION   = LC5_I33;
    "|cal:1|bcdto2:7|add16:6|:116" : LOCATION   = LC2_I33;
    "|cal:1|bcdto2:7|add16:6|:118" : LOCATION   = LC4_I40;
    "|cal:1|bcdto2:7|add16:6|:122" : LOCATION   = LC6_I40;
    "|cal:1|bcdto2:7|add16:6|:126" : LOCATION   = LC7_I40;
    "|cal:1|bcdto2:7|add16:6|:128" : LOCATION   = LC2_I40;
    "|cal:1|bcdto2:7|add16:6|:132" : LOCATION   = LC5_I45;
    "|cal:1|bcdto2:7|add16:6|:134" : LOCATION   = LC6_I45;
    "|cal:1|bcdto2:7|add16:6|:136" : LOCATION   = LC8_I45;
    "|cal:1|bcdto2:7|add16:6|:139" : LOCATION   = LC3_I45;
    "|cal:1|bcdto2:7|add16:6|:145" : LOCATION   = LC5_I30;
    "|cal:1|bcdto2:7|add16:7|:111" : LOCATION   = LC1_I33;
    "|cal:1|bcdto2:7|add16:7|:118" : LOCATION   = LC4_I33;
    "|cal:1|bcdto2:7|add16:7|:122" : LOCATION   = LC6_I33;
    "|cal:1|bcdto2:7|add16:7|:124" : LOCATION   = LC1_I40;
    "|cal:1|bcdto2:7|add16:7|:128" : LOCATION   = LC3_I40;
    "|cal:1|bcdto2:7|add16:7|:130" : LOCATION   = LC2_I45;
    "|cal:1|bcdto2:7|add16:7|:134" : LOCATION   = LC7_I45;
    "|cal:1|bcdto2:7|add16:7|:136" : LOCATION   = LC1_I45;
    "|cal:1|bcdto2:7|add16:7|:140" : LOCATION   = LC4_I45;
    "|cal:1|bcdto2:7|add16:7|:142" : LOCATION   = LC3_I30;
    "|cal:1|bcdto2:7|add16:7|:146" : LOCATION   = LC6_I30;
    "|cal:1|bcdto2:7|add16:7|:148" : LOCATION   = LC4_I30;
    "|cal:1|bcdto2:7|add16:7|:151" : LOCATION   = LC7_I30;
    "|cal:1|bcdto2:7|add16:7|:152" : LOCATION   = LC8_I30;
    "|cal:1|bcdto2:7|add16:7|~152~1" : LOCATION   = LC3_I37;
    "|cal:1|bcdto2:7|add16:7|:154" : LOCATION   = LC2_I30;
    "|cal:1|bcdto2:7|add16:7|:158" : LOCATION   = LC1_I30;
    "|cal:1|bcdto2:7|add16:7|:160" : LOCATION   = LC2_I51;
    "|cal:1|bcdto2:7|add16:7|:163" : LOCATION   = LC4_I51;
    "|cal:1|bcdto2:7|add16:7|:166" : LOCATION   = LC7_I51;
    "|cal:1|bcdto2:7|add16:7|:172" : LOCATION   = LC8_I51;
    "|cal:1|bcdto2:7|BCDTOB1:1|:1075" : LOCATION   = LC2_G43;
    "|cal:1|bcdto2:7|BCDTOB1:1|:1108" : LOCATION   = LC7_G33;
    "|cal:1|bcdto2:7|BCDTOB1:1|:1141" : LOCATION   = LC3_G33;
    "|cal:1|bcdto2:7|BCDTOB1:1|:1174" : LOCATION   = LC4_G7 ;
    "|cal:1|bcdto2:7|BCDTOB2:2|~578~1" : LOCATION   = LC4_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|:662" : LOCATION   = LC1_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|~976~1" : LOCATION   = LC2_G42;
    "|cal:1|bcdto2:7|BCDTOB2:2|~976~2" : LOCATION   = LC8_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|~976~3" : LOCATION   = LC6_G42;
    "|cal:1|bcdto2:7|BCDTOB2:2|:995" : LOCATION   = LC3_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|:1033" : LOCATION   = LC2_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|:1042" : LOCATION   = LC5_G42;
    "|cal:1|bcdto2:7|BCDTOB2:2|~1042~1" : LOCATION   = LC5_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|:1070" : LOCATION   = LC6_G47;
    "|cal:1|bcdto2:7|BCDTOB2:2|:1108" : LOCATION   = LC5_G33;
    "|cal:1|bcdto2:7|BCDTOB2:2|:1141" : LOCATION   = LC4_G33;
    "|cal:1|bcdto2:7|BCDTOB3:3|:614" : LOCATION   = LC5_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:626" : LOCATION   = LC1_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:638" : LOCATION   = LC3_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:650" : LOCATION   = LC5_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:662" : LOCATION   = LC6_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:674" : LOCATION   = LC2_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|~857~1" : LOCATION   = LC7_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:877" : LOCATION   = LC3_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|~877~1" : LOCATION   = LC2_I52;
    "|cal:1|bcdto2:7|BCDTOB3:3|~877~2" : LOCATION   = LC6_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:899" : LOCATION   = LC1_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:910" : LOCATION   = LC5_I52;
    "|cal:1|bcdto2:7|BCDTOB3:3|:943" : LOCATION   = LC8_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:976" : LOCATION   = LC2_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:986" : LOCATION   = LC4_I50;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1000" : LOCATION   = LC7_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1004" : LOCATION   = LC1_I52;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1042" : LOCATION   = LC5_I40;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1075" : LOCATION   = LC3_I33;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1091" : LOCATION   = LC4_I47;
    "|cal:1|bcdto2:7|BCDTOB3:3|:1105" : LOCATION   = LC6_I52;
    "|cal:1|bcdto2:7|BCDTOB4:4|:566" : LOCATION   = LC1_I51;
    "|cal:1|bcdto2:7|BCDTOB4:4|:602" : LOCATION   = LC8_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:650" : LOCATION   = LC3_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:662" : LOCATION   = LC3_I51;
    "|cal:1|bcdto2:7|BCDTOB4:4|:674" : LOCATION   = LC2_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|:761" : LOCATION   = LC2_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:778" : LOCATION   = LC6_I51;
    "|cal:1|bcdto2:7|BCDTOB4:4|~778~1" : LOCATION   = LC5_I51;
    "|cal:1|bcdto2:7|BCDTOB4:4|~799~1" : LOCATION   = LC6_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|~811~1" : LOCATION   = LC1_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:824" : LOCATION   = LC8_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|:844" : LOCATION   = LC7_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:910" : LOCATION   = LC1_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|:938" : LOCATION   = LC4_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|~970~1" : LOCATION   = LC4_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:976" : LOCATION   = LC5_I49;
    "|cal:1|bcdto2:7|BCDTOB4:4|:1009" : LOCATION   = LC5_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|:1042" : LOCATION   = LC7_I33;
    "|cal:1|bcdto2:7|BCDTOB4:4|:1052" : LOCATION   = LC7_I37;
    "|cal:1|bcdto2:7|BCDTOB4:4|:1075" : LOCATION   = LC6_I37;
    "|cal:1|bcdto2:8|add16:5|:99"  : LOCATION   = LC3_G46;
    "|cal:1|bcdto2:8|add16:5|:106" : LOCATION   = LC5_G46;
    "|cal:1|bcdto2:8|add16:5|:110" : LOCATION   = LC2_G46;
    "|cal:1|bcdto2:8|add16:5|:114" : LOCATION   = LC2_G35;
    "|cal:1|bcdto2:8|add16:5|:116" : LOCATION   = LC5_G32;
    "|cal:1|bcdto2:8|add16:5|~116~1" : LOCATION   = LC8_G32;
    "|cal:1|bcdto2:8|add16:5|:124" : LOCATION   = LC6_G21;
    "|cal:1|bcdto2:8|add16:5|:127" : LOCATION   = LC5_G21;
    "|cal:1|bcdto2:8|add16:5|:130" : LOCATION   = LC4_G21;
    "|cal:1|bcdto2:8|add16:6|:105" : LOCATION   = LC1_G39;
    "|cal:1|bcdto2:8|add16:6|:107" : LOCATION   = LC3_G39;
    "|cal:1|bcdto2:8|add16:6|:112" : LOCATION   = LC2_G39;
    "|cal:1|bcdto2:8|add16:6|:116" : LOCATION   = LC4_G39;
    "|cal:1|bcdto2:8|add16:6|:118" : LOCATION   = LC4_G35;
    "|cal:1|bcdto2:8|add16:6|:122" : LOCATION   = LC3_G35;
    "|cal:1|bcdto2:8|add16:6|:126" : LOCATION   = LC6_G44;
    "|cal:1|bcdto2:8|add16:6|:128" : LOCATION   = LC4_G44;
    "|cal:1|bcdto2:8|add16:6|~128~1" : LOCATION   = LC1_G41;

⌨️ 快捷键说明

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