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

📄 todac.bdf

📁 基于CPLD的4X4键盘输入+液晶显示程序
💻 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-2005 Altera Corporation
Your use of Altera Corporation's design tools, logic functions 
and other software and tools, and its AMPP partner logic       
functions, and any output files any of the foregoing           
(including device programming or simulation files), and any    
associated documentation or information are expressly subject  
to the terms and conditions of the Altera Program License      
Subscription Agreement, Altera MegaCore Function License       
Agreement, or other applicable license agreement, including,   
without limitation, that your use is for the sole purpose of   
programming logic devices manufactured by Altera and sold by   
Altera or its authorized distributors.  Please refer to the    
applicable agreement for further details.
*/
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect -152 464 16 480)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "CLK" (rect 5 0 26 12)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 92 12)(pt 117 12)(line_width 1))
		(line (pt 92 4)(pt 117 4)(line_width 1))
		(line (pt 121 8)(pt 168 8)(line_width 1))
		(line (pt 92 12)(pt 92 4)(line_width 1))
		(line (pt 117 4)(pt 121 8)(line_width 1))
		(line (pt 117 12)(pt 121 8)(line_width 1))
	)
	(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect -240 480 -152 512))
)
(pin
	(input)
	(rect -8 200 160 216)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "keyin[3..0]" (rect 5 0 58 12)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 92 12)(pt 117 12)(line_width 1))
		(line (pt 92 4)(pt 117 4)(line_width 1))
		(line (pt 121 8)(pt 168 8)(line_width 1))
		(line (pt 92 12)(pt 92 4)(line_width 1))
		(line (pt 117 4)(pt 121 8)(line_width 1))
		(line (pt 117 12)(pt 121 8)(line_width 1))
	)
	(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect -96 216 -8 288))
)
(pin
	(input)
	(rect -24 400 144 416)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "RST" (rect 5 0 26 12)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 92 12)(pt 117 12)(line_width 1))
		(line (pt 92 4)(pt 117 4)(line_width 1))
		(line (pt 121 8)(pt 168 8)(line_width 1))
		(line (pt 92 12)(pt 92 4)(line_width 1))
		(line (pt 117 4)(pt 121 8)(line_width 1))
		(line (pt 117 12)(pt 121 8)(line_width 1))
	)
	(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect -120 352 -32 384))
)
(pin
	(input)
	(rect -24 416 144 432)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "ENTER" (rect 5 0 41 12)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 92 12)(pt 117 12)(line_width 1))
		(line (pt 92 4)(pt 117 4)(line_width 1))
		(line (pt 121 8)(pt 168 8)(line_width 1))
		(line (pt 92 12)(pt 92 4)(line_width 1))
		(line (pt 117 4)(pt 121 8)(line_width 1))
		(line (pt 117 12)(pt 121 8)(line_width 1))
	)
	(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect -112 432 -24 464))
)
(pin
	(output)
	(rect 376 152 552 168)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "keyScan[3..0]" (rect 90 0 159 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 552 168 640 240))
)
(pin
	(output)
	(rect 360 352 536 368)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "DATA[8..0]" (rect 90 0 144 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 568 296 656 440))
)
(pin
	(output)
	(rect 360 368 536 384)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "E" (rect 90 0 97 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 456 408 544 440))
)
(pin
	(output)
	(rect 368 480 544 496)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "writeORread" (rect 90 0 150 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))
	)
)
(symbol
	(rect 48 440 144 536)
	(text "clk_devide" (rect 5 0 58 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 96 32)
		(output)
		(text "clkout" (rect 0 0 29 12)(font "Arial" ))
		(text "clkout" (rect 46 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 192 160 352 256)
	(text "keyboard4_4" (rect 5 0 68 12)(font "Arial" ))
	(text "inst2" (rect 8 80 31 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 0 48)
		(input)
		(text "keyin[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "keyin[3..0]" (rect 21 43 74 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 160 32)
		(output)
		(text "scan[3..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "scan[3..0]" (rect 90 27 139 39)(font "Arial" ))
		(line (pt 160 32)(pt 144 32)(line_width 3))
	)
	(port
		(pt 160 48)
		(output)
		(text "leds[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "leds[3..0]" (rect 93 43 139 55)(font "Arial" ))
		(line (pt 160 48)(pt 144 48)(line_width 3))
	)
	(port
		(pt 160 64)
		(output)
		(text "keypress" (rect 0 0 46 12)(font "Arial" ))
		(text "keypress" (rect 93 59 139 71)(font "Arial" ))
		(line (pt 160 64)(pt 144 64)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 144 80)(line_width 1))
	)
)
(symbol
	(rect 200 328 344 456)
	(text "led4bits7seg" (rect 5 0 66 12)(font "Arial" ))
	(text "inst4" (rect 8 112 31 124)(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 0 48)
		(input)
		(text "keypress" (rect 0 0 46 12)(font "Arial" ))
		(text "keypress" (rect 21 43 67 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "din[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "din[3..0]" (rect 21 59 61 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "RST" (rect 0 0 21 12)(font "Arial" ))
		(text "RST" (rect 21 75 42 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "ENTER" (rect 0 0 36 12)(font "Arial" ))
		(text "ENTER" (rect 21 91 57 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 144 32)
		(output)
		(text "data[8..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "data[8..0]" (rect 76 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(output)
		(text "e" (rect 0 0 5 12)(font "Arial" ))
		(text "e" (rect 118 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 128 112)(line_width 1))
	)
)
(symbol
	(rect 344 512 376 544)
	(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
	(text "inst1" (rect 3 21 26 33)(font "Arial" )(invisible))
	(port
		(pt 16 0)
		(output)
		(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
		(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
		(line (pt 16 8)(pt 16 0)(line_width 1))
	)
	(drawing
		(line (pt 8 8)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 24 8)(line_width 1))
		(line (pt 8 8)(pt 24 8)(line_width 1))
	)
)
(connector
	(pt 176 192)
	(pt 192 192)
)
(connector
	(pt 352 192)
	(pt 360 192)
	(bus)
)
(connector
	(pt 160 296)
	(pt 360 296)
)
(connector
	(pt 352 224)
	(pt 360 224)
)
(connector
	(pt 152 280)
	(pt 384 280)
	(bus)
)
(connector
	(pt 384 280)
	(pt 384 208)
	(bus)
)
(connector
	(pt 352 208)
	(pt 384 208)
	(bus)
)
(connector
	(pt 376 160)
	(pt 360 160)
	(bus)
)
(connector
	(pt 360 160)
	(pt 360 192)
	(bus)
)
(connector
	(pt 360 224)
	(pt 360 296)
)
(connector
	(pt 152 280)
	(pt 152 392)
	(bus)
)
(connector
	(pt 160 296)
	(pt 160 376)
)
(connector
	(pt 176 360)
	(pt 200 360)
)
(connector
	(pt 160 376)
	(pt 200 376)
)
(connector
	(pt 152 392)
	(pt 200 392)
	(bus)
)
(connector
	(pt 344 360)
	(pt 360 360)
	(bus)
)
(connector
	(pt 192 208)
	(pt 160 208)
	(bus)
)
(connector
	(pt 16 472)
	(pt 48 472)
)
(connector
	(pt 144 472)
	(pt 176 472)
)
(connector
	(pt 176 192)
	(pt 176 360)
)
(connector
	(pt 176 360)
	(pt 176 472)
)
(connector
	(pt 344 376)
	(pt 360 376)
)
(connector
	(pt 144 408)
	(pt 200 408)
)
(connector
	(pt 200 424)
	(pt 144 424)
)
(connector
	(pt 368 488)
	(pt 360 488)
)
(connector
	(pt 360 488)
	(pt 360 512)
)
(junction (pt 176 360))

⌨️ 快捷键说明

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