📄 keyboard1.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 -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
(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 1048 536 1231 552)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ledarray_row[7..0]" (rect 90 0 178 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 408 1224 536))
)
(pin
(output)
(rect 1016 552 1234 568)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ledarray_row_select[7..0]" (rect 90 0 213 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 568 1224 696))
)
(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 840 512 1016 736)
(text "ledarray_drv" (rect 5 0 67 12)(font "Arial" ))
(text "inst8" (rect 8 208 31 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "row0[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row0[7..0]" (rect 21 27 69 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "row1[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row1[7..0]" (rect 21 43 69 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "row2[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row2[7..0]" (rect 21 59 69 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "row3[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row3[7..0]" (rect 21 75 69 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "row4[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row4[7..0]" (rect 21 91 69 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "row5[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row5[7..0]" (rect 21 107 69 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "row6[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row6[7..0]" (rect 21 123 69 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "row7[7..0]" (rect 0 0 48 12)(font "Arial" ))
(text "row7[7..0]" (rect 21 139 69 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 0 160)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 155 46 167)(font "Arial" ))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 171 45 183)(font "Arial" ))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 176 32)
(output)
(text "row[7..0]" (rect 0 0 42 12)(font "Arial" ))
(text "row[7..0]" (rect 113 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(port
(pt 176 48)
(output)
(text "row_select[7..0]" (rect 0 0 77 12)(font "Arial" ))
(text "row_select[7..0]" (rect 78 43 155 55)(font "Arial" ))
(line (pt 176 48)(pt 160 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 160 208)(line_width 1))
)
)
(symbol
(rect 528 560 560 592)
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
(text "inst9" (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))
)
)
(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 584 512 784 704)
(text "charlib8_8" (rect 5 0 54 12)(font "Arial" ))
(text "inst7" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "ext_char_index[3..0]" (rect 0 0 100 12)(font "Arial" ))
(text "ext_char_index[3..0]" (rect 21 27 121 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -