?? ps2rs232.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-2006 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 -336 -80 -168 -64)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "rst" (rect 5 0 17 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 -392 -64 -336 -48))
)
(pin
(input)
(rect -336 24 -168 40)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "rx_read" (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)))
)
(pin
(input)
(rect -336 -96 -168 -80)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "mclk" (rect 5 0 28 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 -392 -80 -336 -64))
)
(pin
(output)
(rect 712 88 888 104)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "rx_ascii[7..0]" (rect 90 0 153 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 888 104 944 216))
)
(pin
(output)
(rect 712 120 888 136)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "tx_write_ack_o" (rect 90 0 163 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))
)
)
(pin
(output)
(rect 712 336 888 352)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "txd" (rect 90 0 105 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 888 352 936 368))
)
(pin
(bidir)
(rect 712 -8 888 8)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "ps2_clk" (rect 90 0 127 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4)(line_width 1))
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 56 12)(pt 78 12)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
(line (pt 56 4)(pt 52 8)(line_width 1))
(line (pt 52 8)(pt 56 12)(line_width 1))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 888 8 936 24))
)
(pin
(bidir)
(rect 712 8 888 24)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "ps2_data" (rect 90 0 134 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4)(line_width 1))
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 56 12)(pt 78 12)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
(line (pt 56 4)(pt 52 8)(line_width 1))
(line (pt 52 8)(pt 56 12)(line_width 1))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 888 24 936 40))
)
(symbol
(rect 32 312 160 408)
(text "div_4" (rect 5 0 32 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk50m" (rect 0 0 35 12)(font "Arial" ))
(text "clk50m" (rect 21 27 56 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "clk1_8m" (rect 0 0 41 12)(font "Arial" ))
(text "clk1_8m" (rect 66 27 107 39)(font "Arial" ))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 80)(line_width 1))
)
)
(symbol
(rect 336 -32 584 192)
(text "ps2_keyboard_interface" (rect 5 0 124 12)(font "Arial" ))
(text "inst1" (rect 8 208 31 220)(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 "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 0 64)
(input)
(text "rx_read" (rect 0 0 36 12)(font "Arial" ))
(text "rx_read" (rect 21 59 57 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "tx_data[7..0]" (rect 0 0 62 12)(font "Arial" ))
(text "tx_data[7..0]" (rect 21 75 83 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "tx_write" (rect 0 0 37 12)(font "Arial" ))
(text "tx_write" (rect 21 91 58 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 248 64)
(output)
(text "rx_extended" (rect 0 0 60 12)(font "Arial" ))
(text "rx_extended" (rect 167 59 227 71)(font "Arial" ))
(line (pt 248 64)(pt 232 64)(line_width 1))
)
(port
(pt 248 80)
(output)
(text "rx_released" (rect 0 0 56 12)(font "Arial" ))
(text "rx_released" (rect 171 75 227 87)(font "Arial" ))
(line (pt 248 80)(pt 232 80)(line_width 1))
)
(port
(pt 248 96)
(output)
(text "rx_shift_key_on" (rect 0 0 80 12)(font "Arial" ))
(text "rx_shift_key_on" (rect 147 91 227 103)(font "Arial" ))
(line (pt 248 96)(pt 232 96)(line_width 1))
)
(port
(pt 248 112)
(output)
(text "rx_scan_code[7..0]" (rect 0 0 94 12)(font "Arial" ))
(text "rx_scan_code[7..0]" (rect 133 107 227 119)(font "Arial" ))
(line (pt 248 112)(pt 232 112)(line_width 3))
)
(port
(pt 248 128)
(output)
(text "rx_ascii[7..0]" (rect 0 0 63 12)(font "Arial" ))
(text "rx_ascii[7..0]" (rect 164 123 227 135)(font "Arial" ))
(line (pt 248 128)(pt 232 128)(line_width 3))
)
(port
(pt 248 144)
(output)
(text "rx_data_ready" (rect 0 0 70 12)(font "Arial" ))
(text "rx_data_ready" (rect 157 139 227 151)(font "Arial" ))
(line (pt 248 144)(pt 232 144)(line_width 1))
)
(port
(pt 248 160)
(output)
(text "tx_write_ack_o" (rect 0 0 73 12)(font "Arial" ))
(text "tx_write_ack_o" (rect 154 155 227 167)(font "Arial" ))
(line (pt 248 160)(pt 232 160)(line_width 1))
)
(port
(pt 248 176)
(output)
(text "tx_error_no_keyboard_ack" (rect 0 0 130 12)(font "Arial" ))
(text "tx_error_no_keyboard_ack" (rect 97 171 227 183)(font "Arial" ))
(line (pt 248 176)(pt 232 176)(line_width 1))
)
(port
(pt 248 32)
(bidir)
(text "ps2_clk" (rect 0 0 37 12)(font "Arial" ))
(text "ps2_clk" (rect 190 27 227 39)(font "Arial" ))
(line (pt 248 32)(pt 232 32)(line_width 1))
)
(port
(pt 248 48)
(bidir)
(text "ps2_data" (rect 0 0 44 12)(font "Arial" ))
(text "ps2_data" (rect 183 43 227 55)(font "Arial" ))
(line (pt 248 48)(pt 232 48)(line_width 1))
)
(parameter
"TIMER_60USEC_VALUE_PP"
"2950"
""
)
(parameter
"TIMER_60USEC_BITS_PP"
"12"
""
)
(parameter
"TIMER_5USEC_VALUE_PP"
"186"
""
)
(parameter
"TIMER_5USEC_BITS_PP"
"8"
""
)
(parameter
"TRAP_SHIFT_KEYS_PP"
"0"
""
)
(parameter
"m1_rx_clk_h"
"1"
""
)
(parameter
"m1_rx_clk_l"
"0"
""
)
(parameter
"m1_rx_falling_edge_marker"
"13"
""
)
(parameter
"m1_rx_rising_edge_marker"
"14"
""
)
(parameter
"m1_tx_force_clk_l"
"3"
""
)
(parameter
"m1_tx_first_wait_clk_h"
"10"
""
)
(parameter
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -