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

📄 top.fit

📁 一个用VHDL编写的在CPLD上实现模拟交通灯的程序源代码
💻 FIT
📖 第 1 页 / 共 3 页
字号:
-- MAX+plus II Compiler Fit File      
-- Version 10.2 07/10/2002            
-- Compiled: 07/17/2005 10:07:12      

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

    DEVICE = "EP1K10TC100-3";

    "clk"                          : INPUT_PIN  = 39     ;
    "clk_scan"                     : INPUT_PIN  = 90     ;
    "reset"                        : INPUT_PIN  = 38     ;
    "a"                            : OUTPUT_PIN = 71     ;
    "b"                            : OUTPUT_PIN = 70     ;
    "c"                            : OUTPUT_PIN = 69     ;
    "d"                            : OUTPUT_PIN = 68     ;
    "e"                            : OUTPUT_PIN = 65     ;
    "f"                            : OUTPUT_PIN = 64     ;
    "g"                            : OUTPUT_PIN = 63     ;
    "lampa0"                       : OUTPUT_PIN = 16     ;
    "lampa1"                       : OUTPUT_PIN = 15     ;
    "lampa2"                       : OUTPUT_PIN = 14     ;
    "lampb0"                       : OUTPUT_PIN = 22     ;
    "lampb1"                       : OUTPUT_PIN = 21     ;
    "lampb2"                       : OUTPUT_PIN = 20     ;
    "sel0"                         : OUTPUT_PIN = 7      ;
    "sel1"                         : OUTPUT_PIN = 6      ;
    "sel2"                         : OUTPUT_PIN = 5      ;
    "|DECODER:1|:432"              : LOCATION   = LC5_B10;
    "|DECODER:1|:444"              : LOCATION   = LC3_B10;
    "|DECODER:1|:456"              : LOCATION   = LC5_B12;
    "|DECODER:1|:492"              : LOCATION   = LC1_B11;
    "|DECODER:1|:528"              : LOCATION   = LC3_B12;
    "|DECODER:1|:540"              : LOCATION   = LC2_B12;
    "|DECODER:1|:543"              : LOCATION   = LC4_B10;
    "|DECODER:1|~581~1"            : LOCATION   = LC4_B12;
    "|DECODER:1|:591"              : LOCATION   = LC2_B10;
    "|DECODER:1|:639"              : LOCATION   = LC8_B10;
    "|DECODER:1|:687"              : LOCATION   = LC7_B12;
    "|DECODER:1|~687~1"            : LOCATION   = LC7_B10;
    "|DECODER:1|~687~2"            : LOCATION   = LC6_B10;
    "|DECODER:1|~687~3"            : LOCATION   = LC6_B12;
    "|DECODER:1|:729"              : LOCATION   = LC8_B12;
    "|DECODER:1|:735"              : LOCATION   = LC1_B12;
    "|DECODER:1|:783"              : LOCATION   = LC1_B10;
    "|DECODER:1|~785~1"            : LOCATION   = LC2_B11;
    "|DECODER:1|:833"              : LOCATION   = LC4_B11;
    "|MUX4:2|:181"                 : LOCATION   = LC7_B9 ;
    "|MUX4:2|:184"                 : LOCATION   = LC1_B6 ;
    "|MUX4:2|:191"                 : LOCATION   = LC6_B9 ;
    "|MUX4:2|:194"                 : LOCATION   = LC7_B6 ;
    "|MUX4:2|:201"                 : LOCATION   = LC5_B9 ;
    "|MUX4:2|:204"                 : LOCATION   = LC5_B6 ;
    "|MUX4:2|:211"                 : LOCATION   = LC4_B9 ;
    "|MUX4:2|:214"                 : LOCATION   = LC5_B11;
    "|MUX4:2|:220"                 : LOCATION   = LC6_B3 ;
    "|MUX4:2|:223"                 : LOCATION   = LC7_B3 ;
    "|MUX4:2|:226"                 : LOCATION   = LC8_B3 ;
    "|MUX4:2|:229"                 : LOCATION   = LC1_B3 ;
    "|MUX4:2|:235"                 : LOCATION   = LC6_B11;
    "|MUX4:2|:238"                 : LOCATION   = LC7_B11;
    "|MUX4:2|:241"                 : LOCATION   = LC8_B11;
    "|MUX4:2|:244"                 : LOCATION   = LC3_B11;
    "|MUX4:2|:250"                 : LOCATION   = LC2_B3 ;
    "|MUX4:2|:253"                 : LOCATION   = LC3_B3 ;
    "|MUX4:2|:256"                 : LOCATION   = LC4_B3 ;
    "|MUX4:2|:259"                 : LOCATION   = LC5_B3 ;
    "|SELEC:3|:5"                  : LOCATION   = LC1_B9 ;  -- |SELEC:3|cnt2
    "|SELEC:3|:6"                  : LOCATION   = LC2_B9 ;  -- |SELEC:3|cnt1
    "|SELEC:3|:7"                  : LOCATION   = LC3_B9 ;  -- |SELEC:3|cnt0
    "|TRAFFIC_CON:4|LPM_ADD_SUB:1002|addcore:adder|:76" : LOCATION   = LC6_C8 ;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:1002|addcore:adder|:77" : LOCATION   = LC6_C6 ;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:1130|addcore:adder|pcarry1" : LOCATION   = LC1_C1 ;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:1130|addcore:adder|pcarry2" : LOCATION   = LC2_C1 ;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:2600|addcore:adder|:76" : LOCATION   = LC6_B21;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:2600|addcore:adder|:77" : LOCATION   = LC7_B13;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:2728|addcore:adder|pcarry1" : LOCATION   = LC1_B4 ;
    "|TRAFFIC_CON:4|LPM_ADD_SUB:2728|addcore:adder|pcarry2" : LOCATION   = LC2_B4 ;
    "|TRAFFIC_CON:4|:3"            : LOCATION   = LC3_C19;
    "|TRAFFIC_CON:4|:5"            : LOCATION   = LC5_C19;
    "|TRAFFIC_CON:4|:7"            : LOCATION   = LC7_C19;
    "|TRAFFIC_CON:4|:9"            : LOCATION   = LC2_C21;
    "|TRAFFIC_CON:4|:11"           : LOCATION   = LC4_C14;
    "|TRAFFIC_CON:4|:13"           : LOCATION   = LC5_C14;
    "|TRAFFIC_CON:4|:31"           : LOCATION   = LC8_C19;  -- |TRAFFIC_CON:4|statea2
    "|TRAFFIC_CON:4|:32"           : LOCATION   = LC4_C18;  -- |TRAFFIC_CON:4|statea1
    "|TRAFFIC_CON:4|:33"           : LOCATION   = LC2_C18;  -- |TRAFFIC_CON:4|statea0
    "|TRAFFIC_CON:4|:34"           : LOCATION   = LC1_C6 ;  -- |TRAFFIC_CON:4|counta7
    "|TRAFFIC_CON:4|:35"           : LOCATION   = LC2_C8 ;  -- |TRAFFIC_CON:4|counta6
    "|TRAFFIC_CON:4|:36"           : LOCATION   = LC3_C5 ;  -- |TRAFFIC_CON:4|counta5
    "|TRAFFIC_CON:4|:37"           : LOCATION   = LC1_C4 ;  -- |TRAFFIC_CON:4|counta4
    "|TRAFFIC_CON:4|:38"           : LOCATION   = LC2_C9 ;  -- |TRAFFIC_CON:4|counta3
    "|TRAFFIC_CON:4|:39"           : LOCATION   = LC1_C7 ;  -- |TRAFFIC_CON:4|counta2
    "|TRAFFIC_CON:4|:40"           : LOCATION   = LC2_C12;  -- |TRAFFIC_CON:4|counta1
    "|TRAFFIC_CON:4|:41"           : LOCATION   = LC1_C10;  -- |TRAFFIC_CON:4|counta0
    "|TRAFFIC_CON:4|:66"           : LOCATION   = LC7_C21;  -- |TRAFFIC_CON:4|stateb2
    "|TRAFFIC_CON:4|:67"           : LOCATION   = LC6_C21;  -- |TRAFFIC_CON:4|stateb1
    "|TRAFFIC_CON:4|:68"           : LOCATION   = LC5_C21;  -- |TRAFFIC_CON:4|stateb0
    "|TRAFFIC_CON:4|:69"           : LOCATION   = LC1_B13;  -- |TRAFFIC_CON:4|countb7
    "|TRAFFIC_CON:4|:70"           : LOCATION   = LC8_B21;  -- |TRAFFIC_CON:4|countb6
    "|TRAFFIC_CON:4|:71"           : LOCATION   = LC2_B2 ;  -- |TRAFFIC_CON:4|countb5
    "|TRAFFIC_CON:4|:72"           : LOCATION   = LC1_B14;  -- |TRAFFIC_CON:4|countb4
    "|TRAFFIC_CON:4|:73"           : LOCATION   = LC8_B5 ;  -- |TRAFFIC_CON:4|countb3
    "|TRAFFIC_CON:4|:74"           : LOCATION   = LC2_B1 ;  -- |TRAFFIC_CON:4|countb2
    "|TRAFFIC_CON:4|:75"           : LOCATION   = LC1_B8 ;  -- |TRAFFIC_CON:4|countb1
    "|TRAFFIC_CON:4|:76"           : LOCATION   = LC1_B7 ;  -- |TRAFFIC_CON:4|countb0
    "|TRAFFIC_CON:4|:103"          : LOCATION   = LC4_C5 ;  -- |TRAFFIC_CON:4|tempa
    "|TRAFFIC_CON:4|:454"          : LOCATION   = LC8_C18;
    "|TRAFFIC_CON:4|:457"          : LOCATION   = LC1_C5 ;
    "|TRAFFIC_CON:4|:464"          : LOCATION   = LC5_C18;
    "|TRAFFIC_CON:4|:467"          : LOCATION   = LC2_C2 ;
    "|TRAFFIC_CON:4|:474"          : LOCATION   = LC6_C18;
    "|TRAFFIC_CON:4|:477"          : LOCATION   = LC3_C6 ;
    "|TRAFFIC_CON:4|:484"          : LOCATION   = LC3_C18;
    "|TRAFFIC_CON:4|:487"          : LOCATION   = LC4_C6 ;
    "|TRAFFIC_CON:4|:494"          : LOCATION   = LC7_C18;
    "|TRAFFIC_CON:4|~494~1"        : LOCATION   = LC6_C19;
    "|TRAFFIC_CON:4|:497"          : LOCATION   = LC5_C6 ;
    "|TRAFFIC_CON:4|:503"          : LOCATION   = LC7_C5 ;
    "|TRAFFIC_CON:4|:506"          : LOCATION   = LC2_C3 ;
    "|TRAFFIC_CON:4|:509"          : LOCATION   = LC3_C8 ;
    "|TRAFFIC_CON:4|:512"          : LOCATION   = LC4_C8 ;
    "|TRAFFIC_CON:4|:515"          : LOCATION   = LC5_C8 ;
    "|TRAFFIC_CON:4|:521"          : LOCATION   = LC5_C11;
    "|TRAFFIC_CON:4|:524"          : LOCATION   = LC6_C11;
    "|TRAFFIC_CON:4|:527"          : LOCATION   = LC7_C11;
    "|TRAFFIC_CON:4|:530"          : LOCATION   = LC8_C11;
    "|TRAFFIC_CON:4|:533"          : LOCATION   = LC1_C11;
    "|TRAFFIC_CON:4|:539"          : LOCATION   = LC4_C4 ;
    "|TRAFFIC_CON:4|:542"          : LOCATION   = LC5_C4 ;
    "|TRAFFIC_CON:4|:545"          : LOCATION   = LC6_C4 ;
    "|TRAFFIC_CON:4|:548"          : LOCATION   = LC7_C4 ;
    "|TRAFFIC_CON:4|:557"          : LOCATION   = LC1_C9 ;
    "|TRAFFIC_CON:4|:560"          : LOCATION   = LC3_C9 ;
    "|TRAFFIC_CON:4|:563"          : LOCATION   = LC5_C9 ;
    "|TRAFFIC_CON:4|:566"          : LOCATION   = LC6_C9 ;
    "|TRAFFIC_CON:4|:575"          : LOCATION   = LC4_C7 ;
    "|TRAFFIC_CON:4|:578"          : LOCATION   = LC5_C7 ;
    "|TRAFFIC_CON:4|:581"          : LOCATION   = LC6_C7 ;
    "|TRAFFIC_CON:4|:584"          : LOCATION   = LC7_C7 ;
    "|TRAFFIC_CON:4|:593"          : LOCATION   = LC4_C12;
    "|TRAFFIC_CON:4|:596"          : LOCATION   = LC5_C12;
    "|TRAFFIC_CON:4|:599"          : LOCATION   = LC6_C12;
    "|TRAFFIC_CON:4|:602"          : LOCATION   = LC7_C12;
    "|TRAFFIC_CON:4|~641~1"        : LOCATION   = LC1_C18;
    "|TRAFFIC_CON:4|:668"          : LOCATION   = LC2_C19;
    "|TRAFFIC_CON:4|:686"          : LOCATION   = LC1_C19;
    "|TRAFFIC_CON:4|:800"          : LOCATION   = LC4_C9 ;
    "|TRAFFIC_CON:4|:948"          : LOCATION   = LC8_C6 ;
    "|TRAFFIC_CON:4|:1176"         : LOCATION   = LC7_C6 ;
    "|TRAFFIC_CON:4|:1182"         : LOCATION   = LC7_C8 ;
    "|TRAFFIC_CON:4|:1188"         : LOCATION   = LC6_C5 ;
    "|TRAFFIC_CON:4|:1325"         : LOCATION   = LC8_C4 ;
    "|TRAFFIC_CON:4|:1331"         : LOCATION   = LC7_C9 ;
    "|TRAFFIC_CON:4|:1332"         : LOCATION   = LC8_C9 ;
    "|TRAFFIC_CON:4|:1337"         : LOCATION   = LC8_C7 ;
    "|TRAFFIC_CON:4|:1343"         : LOCATION   = LC8_C12;
    "|TRAFFIC_CON:4|~1344~1"       : LOCATION   = LC8_C8 ;
    "|TRAFFIC_CON:4|~1348~1"       : LOCATION   = LC5_C10;
    "|TRAFFIC_CON:4|~1348~2"       : LOCATION   = LC6_C10;
    "|TRAFFIC_CON:4|~1348~3"       : LOCATION   = LC7_C10;
    "|TRAFFIC_CON:4|~1348~4"       : LOCATION   = LC8_C10;
    "|TRAFFIC_CON:4|~1350~1"       : LOCATION   = LC8_C5 ;
    "|TRAFFIC_CON:4|~1361~1"       : LOCATION   = LC4_C19;
    "|TRAFFIC_CON:4|:1436"         : LOCATION   = LC2_C6 ;
    "|TRAFFIC_CON:4|:1445"         : LOCATION   = LC1_C8 ;
    "|TRAFFIC_CON:4|:1454"         : LOCATION   = LC4_C11;
    "|TRAFFIC_CON:4|:1463"         : LOCATION   = LC2_C20;
    "|TRAFFIC_CON:4|:1472"         : LOCATION   = LC1_C22;
    "|TRAFFIC_CON:4|:1481"         : LOCATION   = LC2_C15;
    "|TRAFFIC_CON:4|:1490"         : LOCATION   = LC3_C12;
    "|TRAFFIC_CON:4|:1499"         : LOCATION   = LC4_C10;
    "|TRAFFIC_CON:4|:1508"         : LOCATION   = LC2_C5 ;
    "|TRAFFIC_CON:4|:1517"         : LOCATION   = LC5_C5 ;
    "|TRAFFIC_CON:4|:1526"         : LOCATION   = LC2_C11;
    "|TRAFFIC_CON:4|:1535"         : LOCATION   = LC2_C4 ;
    "|TRAFFIC_CON:4|:1544"         : LOCATION   = LC2_C13;
    "|TRAFFIC_CON:4|:1553"         : LOCATION   = LC2_C7 ;
    "|TRAFFIC_CON:4|:1562"         : LOCATION   = LC1_C12;
    "|TRAFFIC_CON:4|:1571"         : LOCATION   = LC3_C10;
    "|TRAFFIC_CON:4|:1580"         : LOCATION   = LC1_C2 ;
    "|TRAFFIC_CON:4|:1589"         : LOCATION   = LC1_C3 ;
    "|TRAFFIC_CON:4|:1598"         : LOCATION   = LC3_C11;
    "|TRAFFIC_CON:4|:1607"         : LOCATION   = LC3_C4 ;

⌨️ 快捷键说明

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