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

📄 keyboard1.bdf

📁 VHDL基础的编程源代码
💻 BDF
📖 第 1 页 / 共 3 页
字号:
/*
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 -88 104 80 120)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "reset" (rect 5 0 29 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 -88 120 0 152))
)
(pin
	(input)
	(rect -88 88 80 104)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clock" (rect 5 0 30 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 -88 56 0 88))
)
(pin
	(input)
	(rect -96 440 72 456)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "row_data[3..0]" (rect 5 0 74 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 368 -8 440))
)
(pin
	(input)
	(rect 200 -24 368 -8)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clock_1k" (rect 5 0 48 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 192 -8 280 24))
)
(pin
	(output)
	(rect 1048 88 1224 104)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "row_select[3..0]" (rect 90 0 167 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 1136 104 1224 176))
)
(pin
	(output)
	(rect 1056 544 1238 560)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "seg7led_bits[7..0]" (rect 90 0 177 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 1152 416 1240 544))
)
(pin
	(output)
	(rect 1056 648 1232 664)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "led_cs[5..0]" (rect 90 0 147 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 1144 664 1232 768))
)
(pin
	(output)
	(rect 848 144 1026 160)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "key_data[7..0]" (rect 90 0 161 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 1096 400 1184 472))
)
(pin
	(output)
	(rect 784 376 962 392)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "key_down" (rect 90 0 139 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 1280 344 1368 416))
)
(pin
	(output)
	(rect 1032 320 1213 336)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "key_decode[3..0]" (rect 90 0 176 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 1656 280 1744 352))
)
(symbol
	(rect 104 64 248 160)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 144 32)
		(bidir)
		(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
		(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(bidir)
		(text "carrier" (rect 0 0 30 12)(font "Arial" ))
		(text "carrier" (rect 93 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(parameter
		"divisor"
		"24000"
		""
	)
	(parameter
		"inner_counter_width"
		"15"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 248 8 392 64))
)
(symbol
	(rect 104 192 248 288)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 144 32)
		(bidir)
		(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
		(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(bidir)
		(text "carrier" (rect 0 0 30 12)(font "Arial" ))
		(text "carrier" (rect 93 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(parameter
		"divisor"
		"4"
		""
	)
	(parameter
		"inner_counter_width"
		"2"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 248 136 392 192))
)
(symbol
	(rect 104 312 248 408)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst2" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 144 32)
		(bidir)
		(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
		(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(bidir)
		(text "carrier" (rect 0 0 30 12)(font "Arial" ))
		(text "carrier" (rect 93 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(parameter
		"divisor"
		"12"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 248 256 392 312))
)
(symbol
	(rect 464 64 696 160)
	(text "keyboard_scan" (rect 5 0 80 12)(font "Arial" ))
	(text "inst3" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 232 32)
		(output)
		(text "row_select[keyboard_size-1..0]" (rect 0 0 152 12)(font "Arial" ))
		(text "row_select[keyboard_size-1..0]" (rect 59 27 211 39)(font "Arial" ))
		(line (pt 232 32)(pt 216 32)(line_width 3))
	)
	(parameter
		"keyboard_size"
		"4"
		""
	)
	(drawing
		(rectangle (rect 16 16 216 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 696 32 808 64))
)
(symbol
	(rect 848 224 1016 320)
	(text "key_decode" (rect 5 0 65 12)(font "Arial" ))
	(text "inst5" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "key_data[7..0]" (rect 0 0 71 12)(font "Arial" ))
		(text "key_data[7..0]" (rect 21 27 92 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 168 32)
		(output)
		(text "key[3..0]" (rect 0 0 44 12)(font "Arial" ))
		(text "key[3..0]" (rect 103 27 147 39)(font "Arial" ))
		(line (pt 168 32)(pt 152 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 152 80)(line_width 1))
	)
)
(symbol
	(rect 104 520 400 616)
	(text "flip_latch" (rect 5 0 49 12)(font "Arial" ))
	(text "inst6" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data_in[data_width-1..0]" (rect 0 0 116 12)(font "Arial" ))
		(text "data_in[data_width-1..0]" (rect 21 27 137 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "wr" (rect 0 0 10 12)(font "Arial" ))
		(text "wr" (rect 21 43 31 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 59 45 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 296 32)
		(output)
		(text "data_out[data_width-1..0]" (rect 0 0 123 12)(font "Arial" ))
		(text "data_out[data_width-1..0]" (rect 152 27 275 39)(font "Arial" ))
		(line (pt 296 32)(pt 280 32)(line_width 3))
	)
	(parameter
		"data_width"
		"4"
		""
	)
	(drawing
		(rectangle (rect 16 16 280 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 400 488 504 520))
)
(symbol
	(rect 512 520 792 712)
	(text "choice1from6" (rect 5 0 72 12)(font "Arial" ))
	(text "inst7" (rect 8 176 31 188)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data_in0[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in0[bitwidth-1..0]" (rect 21 27 128 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "data_in1[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in1[bitwidth-1..0]" (rect 21 43 128 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "data_in2[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in2[bitwidth-1..0]" (rect 21 59 128 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "data_in3[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in3[bitwidth-1..0]" (rect 21 75 128 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "data_in4[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in4[bitwidth-1..0]" (rect 21 91 128 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 3))
	)
	(port
		(pt 0 112)
		(input)
		(text "data_in5[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in5[bitwidth-1..0]" (rect 21 107 128 119)(font "Arial" ))

⌨️ 快捷键说明

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