www.pudn.com > PS2_jianpanshibie_FPGA.rar > ps2_module.bdf, change:2010-12-03,size:8995b


/* 
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-2009 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 from 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. 
*/ 
//#pragma file_not_in_maxplusii_format 
(header "graphic" (version "1.3")) 
(pin 
	(input) 
	(rect -88 216 80 232) 
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) 
	(text "clk" (rect 5 0 19 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 -88 232 80 248) 
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) 
	(text "rstn" (rect 5 0 23 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 -88 248 80 264) 
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) 
	(text "ps2_clk_in" (rect 5 0 56 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 -88 264 80 280) 
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) 
	(text "ps2_data_pin_in" (rect 5 0 84 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 
	(output) 
	(rect 624 232 800 248) 
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) 
	(text "ps2_done_sig" (rect 90 0 157 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 624 184 800 200) 
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) 
	(text "ps2_data_f[7..0]" (rect 90 0 171 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 624 200 801 216) 
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) 
	(text "ps2_data_s[7..0]" (rect 90 0 172 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 624 216 800 232) 
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) 
	(text "ps2_data_t[7..0]" (rect 90 0 170 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 152 192 288 288) 
	(text "edge_detect" (rect 5 0 65 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 0 48) 
		(input) 
		(text "rstn" (rect 0 0 18 12)(font "Arial" )) 
		(text "rstn" (rect 21 43 39 55)(font "Arial" )) 
		(line (pt 0 48)(pt 16 48)(line_width 1)) 
	) 
	(port 
		(pt 0 64) 
		(input) 
		(text "ps2_clk_in" (rect 0 0 51 12)(font "Arial" )) 
		(text "ps2_clk_in" (rect 21 59 72 71)(font "Arial" )) 
		(line (pt 0 64)(pt 16 64)(line_width 1)) 
	) 
	(port 
		(pt 136 32) 
		(output) 
		(text "h2l_sig" (rect 0 0 34 12)(font "Arial" )) 
		(text "h2l_sig" (rect 81 27 115 39)(font "Arial" )) 
		(line (pt 136 32)(pt 120 32)(line_width 1)) 
	) 
	(drawing 
		(rectangle (rect 16 16 120 80)(line_width 1)) 
	) 
) 
(symbol 
	(rect 376 160 592 288) 
	(text "ps2_decode" (rect 5 0 64 12)(font "Arial" )) 
	(text "inst1" (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 "rstn" (rect 0 0 18 12)(font "Arial" )) 
		(text "rstn" (rect 21 43 39 55)(font "Arial" )) 
		(line (pt 0 48)(pt 16 48)(line_width 1)) 
	) 
	(port 
		(pt 0 64) 
		(input) 
		(text "h2l_sig" (rect 0 0 34 12)(font "Arial" )) 
		(text "h2l_sig" (rect 21 59 55 71)(font "Arial" )) 
		(line (pt 0 64)(pt 16 64)(line_width 1)) 
	) 
	(port 
		(pt 0 80) 
		(input) 
		(text "ps2_data_pin_in" (rect 0 0 79 12)(font "Arial" )) 
		(text "ps2_data_pin_in" (rect 21 75 100 87)(font "Arial" )) 
		(line (pt 0 80)(pt 16 80)(line_width 1)) 
	) 
	(port 
		(pt 216 32) 
		(output) 
		(text "ps2_data_f[7..0]" (rect 0 0 81 12)(font "Arial" )) 
		(text "ps2_data_f[7..0]" (rect 114 27 195 39)(font "Arial" )) 
		(line (pt 216 32)(pt 200 32)(line_width 3)) 
	) 
	(port 
		(pt 216 48) 
		(output) 
		(text "ps2_data_s[7..0]" (rect 0 0 82 12)(font "Arial" )) 
		(text "ps2_data_s[7..0]" (rect 113 43 195 55)(font "Arial" )) 
		(line (pt 216 48)(pt 200 48)(line_width 3)) 
	) 
	(port 
		(pt 216 64) 
		(output) 
		(text "ps2_data_t[7..0]" (rect 0 0 80 12)(font "Arial" )) 
		(text "ps2_data_t[7..0]" (rect 115 59 195 71)(font "Arial" )) 
		(line (pt 216 64)(pt 200 64)(line_width 3)) 
	) 
	(port 
		(pt 216 80) 
		(output) 
		(text "ps2_done_sig" (rect 0 0 67 12)(font "Arial" )) 
		(text "ps2_done_sig" (rect 128 75 195 87)(font "Arial" )) 
		(line (pt 216 80)(pt 200 80)(line_width 1)) 
	) 
	(drawing 
		(rectangle (rect 16 16 200 112)(line_width 1)) 
	) 
) 
(connector 
	(pt 120 224) 
	(pt 120 160) 
) 
(connector 
	(pt 80 224) 
	(pt 120 224) 
) 
(connector 
	(pt 120 224) 
	(pt 152 224) 
) 
(connector 
	(pt 120 160) 
	(pt 328 160) 
) 
(connector 
	(pt 360 136) 
	(pt 104 136) 
) 
(connector 
	(pt 104 136) 
	(pt 104 240) 
) 
(connector 
	(pt 80 240) 
	(pt 104 240) 
) 
(connector 
	(pt 104 240) 
	(pt 152 240) 
) 
(connector 
	(pt 80 256) 
	(pt 152 256) 
) 
(connector 
	(pt 312 312) 
	(pt 128 312) 
) 
(connector 
	(pt 128 312) 
	(pt 128 272) 
) 
(connector 
	(pt 128 272) 
	(pt 80 272) 
) 
(connector 
	(pt 328 160) 
	(pt 328 192) 
) 
(connector 
	(pt 360 136) 
	(pt 360 208) 
) 
(connector 
	(pt 312 312) 
	(pt 312 240) 
) 
(connector 
	(pt 328 192) 
	(pt 376 192) 
) 
(connector 
	(pt 360 208) 
	(pt 376 208) 
) 
(connector 
	(pt 288 224) 
	(pt 376 224) 
) 
(connector 
	(pt 312 240) 
	(pt 376 240) 
) 
(connector 
	(pt 592 240) 
	(pt 624 240) 
) 
(connector 
	(pt 592 192) 
	(pt 624 192) 
	(bus) 
) 
(connector 
	(pt 592 208) 
	(pt 624 208) 
	(bus) 
) 
(connector 
	(pt 592 224) 
	(pt 624 224) 
	(bus) 
) 
(junction (pt 120 224)) 
(junction (pt 104 240))