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

📄 traffic.fit

📁 Verilog 的交通灯的例子。源代码中有详细的注释。
💻 FIT
字号:
-- MAX+plus II Compiler Fit File      
-- Version 10.0 9/14/2000             
-- Compiled: 11/18/2002 14:37:52      

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

    DEVICE = "EPM7128SLC84-10";

    "clock"                        : INPUT_PIN  = 83     ;
    "led0"                         : OUTPUT_PIN = 30     ; -- LC37
    "led1"                         : OUTPUT_PIN = 31     ; -- LC35
    "led2"                         : OUTPUT_PIN = 33     ; -- LC64
    "led3"                         : OUTPUT_PIN = 34     ; -- LC61
    "led4"                         : OUTPUT_PIN = 35     ; -- LC59
    "led5"                         : OUTPUT_PIN = 36     ; -- LC57
    "led6"                         : OUTPUT_PIN = 37     ; -- LC56
    "led7"                         : OUTPUT_PIN = 39     ; -- LC53
    "slcs0"                        : OUTPUT_PIN = 51     ; -- LC77
    "slcs1"                        : OUTPUT_PIN = 52     ; -- LC80
    "slcs2"                        : OUTPUT_PIN = 54     ; -- LC83
    "slcs3"                        : OUTPUT_PIN = 55     ; -- LC85
    "sled0"                        : OUTPUT_PIN = 40     ; -- LC51
    "sled1"                        : OUTPUT_PIN = 41     ; -- LC49
    "sled2"                        : OUTPUT_PIN = 44     ; -- LC65
    "sled3"                        : OUTPUT_PIN = 45     ; -- LC67
    "sled4"                        : OUTPUT_PIN = 46     ; -- LC69
    "sled5"                        : OUTPUT_PIN = 48     ; -- LC72
    "sled6"                        : OUTPUT_PIN = 49     ; -- LC73
    "sled7"                        : OUTPUT_PIN = 50     ; -- LC75
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|cout_node" : LOCATION   = LC18   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node1" : LOCATION   = LC118  ; -- PIN 75
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node2" : LOCATION   = LC119  ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node3" : LOCATION   = LC22   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node4" : LOCATION   = LC24   ; -- PIN 18
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node5" : LOCATION   = LC25   ; -- PIN 17
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node6" : LOCATION   = LC26   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder0|result_node7" : LOCATION   = LC21   ; -- PIN 20
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node0" : LOCATION   = LC19   ; -- PIN 21
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node1" : LOCATION   = LC28   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node3" : LOCATION   = LC30   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node4" : LOCATION   = LC93   ; -- PIN 60
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node5" : LOCATION   = LC88   ; -- PIN 57
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node6" : LOCATION   = LC96   ; -- PIN 62
    "|lpm_add_sub:1105|addcore:adder|addcore:adder1|result_node7" : LOCATION   = LC95   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder2|result_node0" : LOCATION   = LC94   ; -- PIN 61
    "|lpm_add_sub:1105|addcore:adder|addcore:adder2|result_node1" : LOCATION   = LC84   ;
    "|lpm_add_sub:1105|addcore:adder|addcore:adder2|result_node2" : LOCATION   = LC86   ; -- PIN 56
    "|lpm_add_sub:1105|addcore:adder|addcore:adder2|result_node3" : LOCATION   = LC91   ; -- PIN 58
    "|lpm_add_sub:1106|addcore:adder|g4" : LOCATION   = LC122  ;
    "|lpm_add_sub:1106|addcore:adder|result_node1" : LOCATION   = LC127  ;
    "|lpm_add_sub:1106|addcore:adder|result_node2" : LOCATION   = LC54   ;
    "|lpm_add_sub:1106|addcore:adder|result_node3" : LOCATION   = LC63   ;
    "|lpm_add_sub:1106|addcore:adder|result_node5" : LOCATION   = LC42   ;
    "|lpm_add_sub:1106|addcore:adder|result_node6" : LOCATION   = LC45   ; -- PIN 25
    "|lpm_add_sub:1106|addcore:adder|result_node7" : LOCATION   = LC48   ; -- PIN 23
    "|lpm_add_sub:1107|addcore:adder|g4" : LOCATION   = LC62   ;
    "|lpm_add_sub:1107|addcore:adder|result_node1" : LOCATION   = LC116  ;
    "|lpm_add_sub:1107|addcore:adder|result_node2" : LOCATION   = LC115  ; -- PIN 73
    "|lpm_add_sub:1107|addcore:adder|result_node3" : LOCATION   = LC60   ;
    "|lpm_add_sub:1107|addcore:adder|result_node5" : LOCATION   = LC44   ;
    "|lpm_add_sub:1107|addcore:adder|result_node6" : LOCATION   = LC46   ; -- PIN 24
    "|lpm_add_sub:1107|addcore:adder|result_node7" : LOCATION   = LC47   ;
    "|lpm_add_sub:1108|addcore:adder|g4" : LOCATION   = LC124  ;
    "|lpm_add_sub:1108|addcore:adder|result_node1" : LOCATION   = LC125  ; -- PIN 79
    "|lpm_add_sub:1108|addcore:adder|result_node2" : LOCATION   = LC114  ;
    "|lpm_add_sub:1108|addcore:adder|result_node3" : LOCATION   = LC50   ;
    "|lpm_add_sub:1108|addcore:adder|result_node5" : LOCATION   = LC52   ;
    "|lpm_add_sub:1108|addcore:adder|result_node6" : LOCATION   = LC39   ;
    "|lpm_add_sub:1108|addcore:adder|result_node7" : LOCATION   = LC34   ;
    ":178"                         : LOCATION   = LC102  ;  -- count19
    ":179"                         : LOCATION   = LC100  ;  -- count18
    ":180"                         : LOCATION   = LC101  ; -- PIN 65  -- count17
    ":181"                         : LOCATION   = LC98   ;  -- count16
    ":182"                         : LOCATION   = LC97   ; -- PIN 63  -- count15
    ":183"                         : LOCATION   = LC66   ;  -- count14
    ":184"                         : LOCATION   = LC107  ; -- PIN 69  -- count13
    ":185"                         : LOCATION   = LC92   ;  -- count12
    ":186"                         : LOCATION   = LC81   ;  -- count11
    ":187"                         : LOCATION   = LC82   ;  -- count10
    ":188"                         : LOCATION   = LC87   ;  -- count9
    ":189"                         : LOCATION   = LC90   ;  -- count8
    ":190"                         : LOCATION   = LC68   ;  -- count7
    ":191"                         : LOCATION   = LC74   ;  -- count6
    ":192"                         : LOCATION   = LC76   ;  -- count5
    ":193"                         : LOCATION   = LC79   ;  -- count4
    ":194"                         : LOCATION   = LC78   ;  -- count3
    ":195"                         : LOCATION   = LC71   ;  -- count2
    ":196"                         : LOCATION   = LC70   ;  -- count1
    ":197"                         : LOCATION   = LC89   ;  -- count0
    ":203"                         : LOCATION   = LC106  ;  -- sec_tick
    ":543"                         : LOCATION   = LC58   ;  -- lamp_time7
    ":544"                         : LOCATION   = LC121  ;  -- lamp_time6
    ":545"                         : LOCATION   = LC55   ;  -- lamp_time5
    ":546"                         : LOCATION   = LC113  ;  -- lamp_time4
    ":547"                         : LOCATION   = LC43   ; -- PIN 27  -- lamp_time3
    ":548"                         : LOCATION   = LC41   ;  -- lamp_time2
    ":549"                         : LOCATION   = LC40   ; -- PIN 28  -- lamp_time1
    ":550"                         : LOCATION   = LC38   ; -- PIN 29  -- lamp_time0
    ":591"                         : LOCATION   = LC36   ;  -- lamp_status1
    ":592"                         : LOCATION   = LC33   ;  -- lamp_status0
    "~793~1"                       : LOCATION   = LC126  ; -- PIN 80
    "~794~1"                       : LOCATION   = LC128  ; -- PIN 81
    "~795~1"                       : LOCATION   = LC123  ; -- PIN 77
    "~796~1"                       : LOCATION   = LC117  ; -- PIN 74

END;

INTERNAL_INFO "traffic"
BEGIN
	DEVICE = EPM7128SLC84-10;
	LC53    : LORAX = "G37R0,PA5R0C3";
	LC56    : LORAX = "G40R0,PA6R0C3";
	LC57    : LORAX = "G183R0,PA29R0C3";
	LC59    : LORAX = "G185R0,PA27R0C3";
	LC61    : LORAX = "G126R0,PA24R0C3";
	LC64    : LORAX = "G129R0,PA23R0C3";
	LC35    : LORAX = "G35R0,PA0R0C2";
	LC37    : LORAX = "G90R0,PA10R0C2";
	LC75    : LORAX = "G189R0";
	LC73    : LORAX = "G187R0";
	LC72    : LORAX = "G44R0";
	LC69    : LORAX = "G41R0";
	LC67    : LORAX = "G100R0";
	LC65    : LORAX = "G98R0";
	LC49    : LORAX = "G94R0";
	LC51    : LORAX = "G96R0";
	LC85    : LORAX = "G102R0";
	LC83    : LORAX = "G47R0";
	LC80    : LORAX = "G133R0";
	LC77    : LORAX = "G130R0";
	LC58    : LORAX = "G184R0,PA30R0C3,PA30R0C7,PA30R0C2";
	LC121   : LORAX = "G142R0,PA25R0C7,PA25R0C3,PA19R0C2";
	LC55    : LORAX = "G39R0,PA0R0C3,PA1R0C7,PA1R0C2";
	LC113   : LORAX = "G53R0,PA7R0C7,PA7R0C3,PA8R0C2";
	LC43    : LORAX = "G124R0,PA19R0C3,PA21R0C2,PA21R0C7";
	LC41    : LORAX = "G122R0,PA18R0C7,PA18R0C3,PA18R0C2";
	LC36    : LORAX = "G36R0,PA8R0C7,PA8R0C3,PA4R0C2";
	LC106   : LORAX = "G196R0,PA35R0C3,PA28R0C7,PA28R0C2";
	LC102   : LORAX = "G50R0,PA6R0C6,PA6R0C5,PA6R0C4";
	LC101   : LORAX = "G49R0,PA4R0C5,PA4R0C6,PA2R0C4";
	LC98    : LORAX = "G107R0,PA10R0C5,PA10R0C4,PA10R0C6";
	LC66    : LORAX = "G99R0,PA16R0C6,PA16R0C5,PA16R0C4";
	LC107   : LORAX = "G197R0,PA31R0C6,PA31R0C4,PA27R0C5";
	LC92    : LORAX = "G137R0,PA19R0C6,PA19R0C4,PA19R0C5,PA19R0C7";
	LC90    : LORAX = "G135R0,PA18R0C6,PA20R0C1,PA18R0C4,PA20R0C5";
	LC68    : LORAX = "G101R0,PA15R0C1,PA15R0C5,PA11R0C4,PA15R0C6";
	LC76    : LORAX = "G190R0,PA30R0C1,PA30R0C6,PA30R0C5,PA30R0C4";
	LC79    : LORAX = "G132R0,PA25R0C1,PA25R0C6,PA25R0C4,PA25R0C5";
	LC24    : LORAX = "G32R0,PA7R0C4";
	LC78    : LORAX = "G131R0,PA18R0C1,PA18R0C5";
	LC22    : LORAX = "G30R0,PA0R0C4";
	LC71    : LORAX = "G43R0,PA3R0C1,PA3R0C7,PA3R0C5";
	LC119   : LORAX = "G112R0,PA12R0C4";
	LC70    : LORAX = "G42R0,PA0R0C1,PA0R0C7,PA0R0C5";
	LC118   : LORAX = "G111R0,PA15R0C4";
	LC89    : LORAX = "G134R0,PA22R0C1,PA22R0C7,PA22R0C5";
	LC81    : LORAX = "G45R0,PA4R0C7,PA7R0C1,PA7R0C6,PA7R0C5,PA4R0C4";
	LC30    : LORAX = "G119R0,PA21R0C5";
	LC82    : LORAX = "G46R0,PA1R0C1,PA1R0C6,PA1R0C5,PA1R0C4";
	LC87    : LORAX = "G104R0,PA11R0C1,PA11R0C5,PA14R0C4,PA11R0C6";
	LC28    : LORAX = "G178R0,PA29R0C5";
	LC74    : LORAX = "G188R0,PA28R0C1,PA27R0C4,PA28R0C5,PA28R0C6";
	LC26    : LORAX = "G176R0,PA34R0C4";
	LC97    : LORAX = "G106R0,PA13R0C6,PA13R0C5,PA13R0C4";
	LC95    : LORAX = "G193R0,PA33R0C6";
	LC100   : LORAX = "G109R0,PA14R0C5,PA9R0C4,PA14R0C6";
	LC86    : LORAX = "G103R0,PA12R0C6";
	LC18    : LORAX = "G87R0,PA9R0C5";
	LC25    : LORAX = "G175R0,PA32R0C4";
	LC21    : LORAX = "G29R0,PA3R0C4";
	LC19    : LORAX = "G88R0,PA17R0C5";
	LC93    : LORAX = "G191R0,PA31R0C5";
	LC88    : LORAX = "G105R0,PA9R0C6";
	LC96    : LORAX = "G194R0,PA28R0C4";
	LC94    : LORAX = "G192R0,PA29R0C6";
	LC84    : LORAX = "G48R0,PA0R0C6";
	LC91    : LORAX = "G136R0,PA21R0C6";
	LC33    : LORAX = "G33R0,PA5R0C7,PA1R0C3,PA5R0C2";
	LC40    : LORAX = "G93R0,PA17R0C7,PA13R0C3,PA17R0C2";
	LC127   : LORAX = "G201R0,PA27R0C2";
	LC38    : LORAX = "G91R0,PA12R0C3,PA15R0C7,PA15R0C2";
	LC50    : LORAX = "G95R0,PA11R0C2";
	LC116   : LORAX = "G56R0,PA2R0C2";
	LC125   : LORAX = "G199R0,PA34R0C2";
	LC63    : LORAX = "G128R0,PA25R0C2";
	LC54    : LORAX = "G38R0,PA7R0C2";
	LC115   : LORAX = "G55R0,PA3R0C2";
	LC114   : LORAX = "G54R0,PA6R0C2";
	LC60    : LORAX = "G186R0,PA31R0C2";
	LC62    : LORAX = "G127R0,PA26R0C7";
	LC122   : LORAX = "G143R0,PA23R0C7";
	LC124   : LORAX = "G145R0,PA24R0C7";
	LC42    : LORAX = "G123R0,PA20R0C3";
	LC52    : LORAX = "G97R0,PA15R0C3";
	LC44    : LORAX = "G125R0,PA22R0C3";
	LC39    : LORAX = "G92R0,PA9R0C7";
	LC45    : LORAX = "G179R0,PA27R0C7";
	LC46    : LORAX = "G180R0,PA29R0C7";
	LC34    : LORAX = "G34R0,PA3R0C3";
	LC48    : LORAX = "G182R0,PA31R0C3";
	LC47    : LORAX = "G181R0,PA28R0C3";
	LC126   : LORAX = "G200R0,PA32R0C3,PA35R0C4";
	LC128   : LORAX = "G202R0,PA33R0C3,PA33R0C4";
	LC123   : LORAX = "G144R0,PA21R0C3,PA21R0C4";
	LC117   : LORAX = "G110R0,PA17R0C4,PA17R0C3";
END;

⌨️ 快捷键说明

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