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

📄 ps2_keyboard.bdf

📁 详细介绍了基于verilog设计uart的原理
💻 BDF
📖 第 1 页 / 共 2 页
字号:
/*
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 24 88 192 104)
	(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 -96 72 -8 104))
)
(pin
	(input)
	(rect 24 104 192 120)
	(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)))
	(annotation_block (location)(rect -64 144 24 176))
)
(pin
	(input)
	(rect 24 72 192 88)
	(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 -80 24 8 56))
)
(pin
	(output)
	(rect 792 176 968 192)
	(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 968 192 1064 320))
)
(pin
	(output)
	(rect 752 360 928 376)
	(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 928 376 1024 408))
)
(pin
	(output)
	(rect 800 208 976 224)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "tx_write" (rect 90 0 127 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 1056 280 1152 408))
)
(pin
	(bidir)
	(rect 784 80 960 96)
	(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 960 96 1048 128))
)
(pin
	(bidir)
	(rect 784 96 960 112)
	(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 960 112 1048 144))
)
(symbol
	(rect 368 -64 464 32)
	(text "div_256" (rect 5 0 43 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "mclk" (rect 0 0 23 12)(font "Arial" ))
		(text "mclk" (rect 21 27 44 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 96 32)
		(output)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 61 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 488 56 736 280)
	(text "ps2_keyboard_interface" (rect 5 0 124 12)(font "Arial" ))
	(text "inst" (rect 8 208 25 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
		"m1_tx_first_wait_clk_l"
		"11"
		""

⌨️ 快捷键说明

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