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

📄 lightw.bdf

📁 一個LCD燈的小程序。不是我寫的。我只負責了調試。適用在ACEXEP1K30QC208-3上。我跑了SIMULATOR
💻 BDF
字号:
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 1991-2004 Altera Corporation
Any  megafunction  design,  and related netlist (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,  netlist,  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, netlist,
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.
*/
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect 72 40 240 56)
	(text "INPUT" (rect 7 0 35 9)(font "Arial" (font_size 6)))
	(text "pin_clk" (rect 116 0 150 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 76 12)(pt 51 12)(line_width 1))
		(line (pt 76 4)(pt 51 4)(line_width 1))
		(line (pt 47 8)(pt 0 8)(line_width 1))
		(line (pt 76 12)(pt 76 4)(line_width 1))
		(line (pt 51 4)(pt 47 8)(line_width 1))
		(line (pt 51 12)(pt 47 8)(line_width 1))
	)
	(flipy)
	(text "VCC" (rect 15 7 32 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect -16 56 72 88))
)
(pin
	(output)
	(rect 536 256 712 272)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "testout0" (rect 90 0 130 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 272 800 304))
)
(pin
	(output)
	(rect 536 240 712 256)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "testout1" (rect 90 0 130 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 256 800 288))
)
(pin
	(output)
	(rect 536 224 712 240)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "testout2" (rect 90 0 130 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 240 800 272))
)
(pin
	(output)
	(rect 536 208 712 224)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "testout3" (rect 90 0 130 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 224 800 256))
)
(pin
	(output)
	(rect 536 176 712 192)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout0" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 192 800 224))
)
(pin
	(output)
	(rect 536 192 712 208)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "testout4" (rect 90 0 130 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 208 800 240))
)
(pin
	(output)
	(rect 536 160 712 176)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout1" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 176 800 208))
)
(pin
	(output)
	(rect 536 144 712 160)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout2" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 160 800 192))
)
(pin
	(output)
	(rect 536 128 712 144)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout3" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 144 800 176))
)
(pin
	(output)
	(rect 536 112 712 128)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout4" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 128 800 160))
)
(pin
	(output)
	(rect 536 96 712 112)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout5" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 112 800 144))
)
(pin
	(output)
	(rect 536 80 712 96)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout6" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 96 800 128))
)
(pin
	(output)
	(rect 536 64 712 80)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "dataout7" (rect 90 0 132 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 52 4)(pt 78 4)(line_width 1))
		(line (pt 52 12)(pt 78 12)(line_width 1))
		(line (pt 52 12)(pt 52 4)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 82 8)(pt 78 12)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
	)
	(annotation_block (location)(rect 712 80 800 112))
)
(symbol
	(rect 72 88 200 184)
	(text "div" (rect 5 0 20 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 27 35 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 128 32)
		(output)
		(text "dataout[4..0]" (rect 0 0 62 12)(font "Arial" ))
		(text "dataout[4..0]" (rect 45 27 107 39)(font "Arial" ))
		(line (pt 128 32)(pt 112 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 112 80)(line_width 1))
	)
)
(symbol
	(rect 72 200 192 296)
	(text "light" (rect 5 0 25 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clk1" (rect 0 0 20 12)(font "Arial" ))
		(text "clk1" (rect 21 27 41 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 120 32)
		(bidir)
		(text "light[7..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "light[7..0]" (rect 53 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 288 40 440 296)
	(text "divid" (rect 5 244 28 256)(font "Arial" ))
	(text "inst2" (rect 8 4 31 16)(font "Arial" ))
	(port
		(pt 0 224)
		(input)
		(text "testin[4..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "testin[4..0]" (rect 21 217 74 229)(font "Arial" ))
		(line (pt 0 224)(pt 16 224)(line_width 3))
	)
	(port
		(pt 0 208)
		(input)
		(text "datain[7..0]" (rect 0 0 55 12)(font "Arial" ))
		(text "datain[7..0]" (rect 21 201 76 213)(font "Arial" ))
		(line (pt 0 208)(pt 16 208)(line_width 3))
	)
	(port
		(pt 152 224)
		(output)
		(text "testout0" (rect 0 0 40 12)(font "Arial" ))
		(text "testout0" (rect 91 217 131 229)(font "Arial" ))
		(line (pt 152 224)(pt 136 224)(line_width 1))
	)
	(port
		(pt 152 208)
		(output)
		(text "testout1" (rect 0 0 40 12)(font "Arial" ))
		(text "testout1" (rect 91 201 131 213)(font "Arial" ))
		(line (pt 152 208)(pt 136 208)(line_width 1))
	)
	(port
		(pt 152 192)
		(output)
		(text "testout2" (rect 0 0 40 12)(font "Arial" ))
		(text "testout2" (rect 91 185 131 197)(font "Arial" ))
		(line (pt 152 192)(pt 136 192)(line_width 1))
	)
	(port
		(pt 152 176)
		(output)
		(text "testout3" (rect 0 0 40 12)(font "Arial" ))
		(text "testout3" (rect 91 169 131 181)(font "Arial" ))
		(line (pt 152 176)(pt 136 176)(line_width 1))
	)
	(port
		(pt 152 160)
		(output)
		(text "testout4" (rect 0 0 40 12)(font "Arial" ))
		(text "testout4" (rect 91 153 131 165)(font "Arial" ))
		(line (pt 152 160)(pt 136 160)(line_width 1))
	)
	(port
		(pt 152 144)
		(output)
		(text "dataout0" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout0" (rect 89 137 131 149)(font "Arial" ))
		(line (pt 152 144)(pt 136 144)(line_width 1))
	)
	(port
		(pt 152 128)
		(output)
		(text "dataout1" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout1" (rect 89 121 131 133)(font "Arial" ))
		(line (pt 152 128)(pt 136 128)(line_width 1))
	)
	(port
		(pt 152 112)
		(output)
		(text "dataout2" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout2" (rect 89 105 131 117)(font "Arial" ))
		(line (pt 152 112)(pt 136 112)(line_width 1))
	)
	(port
		(pt 152 96)
		(output)
		(text "dataout3" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout3" (rect 89 89 131 101)(font "Arial" ))
		(line (pt 152 96)(pt 136 96)(line_width 1))
	)
	(port
		(pt 152 80)
		(output)
		(text "dataout4" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout4" (rect 89 73 131 85)(font "Arial" ))
		(line (pt 152 80)(pt 136 80)(line_width 1))
	)
	(port
		(pt 152 64)
		(output)
		(text "dataout5" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout5" (rect 89 57 131 69)(font "Arial" ))
		(line (pt 152 64)(pt 136 64)(line_width 1))
	)
	(port
		(pt 152 48)
		(output)
		(text "dataout6" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout6" (rect 89 41 131 53)(font "Arial" ))
		(line (pt 152 48)(pt 136 48)(line_width 1))
	)
	(port
		(pt 152 32)
		(output)
		(text "dataout7" (rect 0 0 42 12)(font "Arial" ))
		(text "dataout7" (rect 89 25 131 37)(font "Arial" ))
		(line (pt 152 32)(pt 136 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 136 240)(line_width 1))
	)
	(flipx)
)
(connector
	(pt 200 120)
	(pt 240 120)
	(bus)
)
(connector
	(pt 240 264)
	(pt 240 120)
	(bus)
)
(connector
	(pt 240 264)
	(pt 288 264)
	(bus)
)
(connector
	(pt 440 248)
	(pt 536 248)
)
(connector
	(pt 440 184)
	(pt 536 184)
)
(connector
	(pt 440 168)
	(pt 536 168)
)
(connector
	(pt 440 152)
	(pt 536 152)
)
(connector
	(pt 440 136)
	(pt 536 136)
)
(connector
	(pt 440 120)
	(pt 536 120)
)
(connector
	(pt 440 88)
	(pt 536 88)
)
(connector
	(pt 440 72)
	(pt 536 72)
)
(connector
	(pt 288 248)
	(pt 264 248)
	(bus)
)
(connector
	(pt 264 248)
	(pt 264 232)
	(bus)
)
(connector
	(pt 264 232)
	(pt 192 232)
	(bus)
)
(connector
	(pt 72 232)
	(pt 56 232)
)
(connector
	(pt 56 232)
	(pt 56 304)
)
(connector
	(pt 72 120)
	(pt 56 120)
)
(connector
	(pt 56 120)
	(pt 56 48)
)
(connector
	(pt 56 48)
	(pt 72 48)
)
(connector
	(pt 464 304)
	(pt 56 304)
)
(connector
	(pt 440 232)
	(pt 536 232)
)
(connector
	(pt 440 104)
	(pt 536 104)
)
(connector
	(pt 440 216)
	(pt 536 216)
)
(connector
	(pt 440 200)
	(pt 536 200)
)
(connector
	(pt 464 304)
	(pt 464 264)
)
(connector
	(pt 440 264)
	(pt 464 264)
)
(connector
	(pt 464 264)
	(pt 536 264)
)
(junction (pt 464 264))

⌨️ 快捷键说明

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