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


/* 
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 224 256 240) 
	(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))) 
	(annotation_block (location)(rect 40 240 88 256)) 
) 
(pin 
	(input) 
	(rect 88 240 256 256) 
	(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))) 
	(annotation_block (location)(rect 40 256 88 272)) 
) 
(pin 
	(input) 
	(rect 88 256 256 272) 
	(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))) 
	(annotation_block (location)(rect 40 272 88 288)) 
) 
(pin 
	(output) 
	(rect 552 448 728 464) 
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) 
	(text "data_out[3..0]" (rect 90 0 158 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 728 464 776 520)) 
) 
(symbol 
	(rect 184 328 424 456) 
	(text "ps2_module" (rect 5 0 73 14)(font "Arial" (font_size 8))) 
	(text "inst2" (rect 8 112 31 124)(font "Arial" )) 
	(port 
		(pt 0 32) 
		(input) 
		(text "clk" (rect 0 0 15 14)(font "Arial" (font_size 8))) 
		(text "clk" (rect 21 27 36 41)(font "Arial" (font_size 8))) 
		(line (pt 0 32)(pt 16 32)(line_width 1)) 
	) 
	(port 
		(pt 0 48) 
		(input) 
		(text "rstn" (rect 0 0 22 14)(font "Arial" (font_size 8))) 
		(text "rstn" (rect 21 43 43 57)(font "Arial" (font_size 8))) 
		(line (pt 0 48)(pt 16 48)(line_width 1)) 
	) 
	(port 
		(pt 0 64) 
		(input) 
		(text "ps2_clk_in" (rect 0 0 60 14)(font "Arial" (font_size 8))) 
		(text "ps2_clk_in" (rect 21 59 81 73)(font "Arial" (font_size 8))) 
		(line (pt 0 64)(pt 16 64)(line_width 1)) 
	) 
	(port 
		(pt 0 80) 
		(input) 
		(text "ps2_data_pin_in" (rect 0 0 93 14)(font "Arial" (font_size 8))) 
		(text "ps2_data_pin_in" (rect 21 75 114 89)(font "Arial" (font_size 8))) 
		(line (pt 0 80)(pt 16 80)(line_width 1)) 
	) 
	(port 
		(pt 240 32) 
		(output) 
		(text "ps2_data_f[7..0]" (rect 0 0 93 14)(font "Arial" (font_size 8))) 
		(text "ps2_data_f[7..0]" (rect 126 27 219 41)(font "Arial" (font_size 8))) 
		(line (pt 240 32)(pt 224 32)(line_width 3)) 
	) 
	(port 
		(pt 240 48) 
		(output) 
		(text "ps2_data_s[7..0]" (rect 0 0 95 14)(font "Arial" (font_size 8))) 
		(text "ps2_data_s[7..0]" (rect 124 43 219 57)(font "Arial" (font_size 8))) 
		(line (pt 240 48)(pt 224 48)(line_width 3)) 
	) 
	(port 
		(pt 240 64) 
		(output) 
		(text "ps2_data_t[7..0]" (rect 0 0 92 14)(font "Arial" (font_size 8))) 
		(text "ps2_data_t[7..0]" (rect 127 59 219 73)(font "Arial" (font_size 8))) 
		(line (pt 240 64)(pt 224 64)(line_width 3)) 
	) 
	(port 
		(pt 240 80) 
		(output) 
		(text "ps2_done_sig" (rect 0 0 80 14)(font "Arial" (font_size 8))) 
		(text "ps2_done_sig" (rect 139 75 219 89)(font "Arial" (font_size 8))) 
		(line (pt 240 80)(pt 224 80)(line_width 1)) 
	) 
	(drawing 
		(rectangle (rect 16 16 224 112)(line_width 1)) 
	) 
) 
(symbol 
	(rect 504 240 712 400) 
	(text "cmd_control" (rect 5 0 65 12)(font "Arial" )) 
	(text "inst" (rect 8 144 25 156)(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_done_sig" (rect 0 0 67 12)(font "Arial" )) 
		(text "ps2_done_sig" (rect 21 59 88 71)(font "Arial" )) 
		(line (pt 0 64)(pt 16 64)(line_width 1)) 
	) 
	(port 
		(pt 0 80) 
		(input) 
		(text "ps2_data_f[7..0]" (rect 0 0 81 12)(font "Arial" )) 
		(text "ps2_data_f[7..0]" (rect 21 75 102 87)(font "Arial" )) 
		(line (pt 0 80)(pt 16 80)(line_width 3)) 
	) 
	(port 
		(pt 0 96) 
		(input) 
		(text "ps2_data_s[7..0]" (rect 0 0 82 12)(font "Arial" )) 
		(text "ps2_data_s[7..0]" (rect 21 91 103 103)(font "Arial" )) 
		(line (pt 0 96)(pt 16 96)(line_width 3)) 
	) 
	(port 
		(pt 0 112) 
		(input) 
		(text "ps2_data_t[7..0]" (rect 0 0 80 12)(font "Arial" )) 
		(text "ps2_data_t[7..0]" (rect 21 107 101 119)(font "Arial" )) 
		(line (pt 0 112)(pt 16 112)(line_width 3)) 
	) 
	(port 
		(pt 208 32) 
		(output) 
		(text "data_out[3..0]" (rect 0 0 68 12)(font "Arial" )) 
		(text "data_out[3..0]" (rect 119 27 187 39)(font "Arial" )) 
		(line (pt 208 32)(pt 192 32)(line_width 3)) 
	) 
	(drawing 
		(rectangle (rect 16 16 192 144)(line_width 1)) 
	) 
) 
(symbol 
	(rect 192 496 288 592) 
	(text "reset_generate" (rect 5 0 78 12)(font "Arial" )) 
	(text "inst5" (rect 8 80 31 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 96 32) 
		(output) 
		(text "rstn" (rect 0 0 18 12)(font "Arial" )) 
		(text "rstn" (rect 57 27 75 39)(font "Arial" )) 
		(line (pt 96 32)(pt 80 32)(line_width 1)) 
	) 
	(parameter 
		"COUNT_START" 
		"01100100" 
		"" 
		(type "PARAMETER_UNSIGNED_BIN")	) 
	(parameter 
		"COUNT_END" 
		"00001010" 
		"" 
		(type "PARAMETER_UNSIGNED_BIN")	) 
	(drawing 
		(rectangle (rect 16 16 80 80)(line_width 1)) 
	) 
	(annotation_block (parameter)(rect 152 96 368 144)) 
) 
(connector 
	(text "rstn" (rect 298 512 316 524)(font "Arial" )) 
	(pt 288 528) 
	(pt 336 528) 
) 
(connector 
	(pt 440 360) 
	(pt 424 360) 
	(bus) 
) 
(connector 
	(text "data_out[3..0]" (rect 730 256 798 268)(font "Arial" )) 
	(pt 792 272) 
	(pt 712 272) 
	(bus) 
) 
(connector 
	(pt 440 320) 
	(pt 440 360) 
	(bus) 
) 
(connector 
	(pt 456 336) 
	(pt 456 376) 
	(bus) 
) 
(connector 
	(pt 456 376) 
	(pt 424 376) 
	(bus) 
) 
(connector 
	(pt 472 352) 
	(pt 472 392) 
	(bus) 
) 
(connector 
	(pt 472 392) 
	(pt 424 392) 
	(bus) 
) 
(connector 
	(pt 488 304) 
	(pt 488 408) 
) 
(connector 
	(pt 488 408) 
	(pt 424 408) 
) 
(connector 
	(text "clk" (rect 106 344 120 356)(font "Arial" )) 
	(pt 96 360) 
	(pt 184 360) 
) 
(connector 
	(text "rstn" (rect 138 360 156 372)(font "Arial" )) 
	(pt 128 376) 
	(pt 184 376) 
) 
(connector 
	(text "ps2_clk_in" (rect 106 376 157 388)(font "Arial" )) 
	(pt 96 392) 
	(pt 184 392) 
) 
(connector 
	(text "ps2_data_pin_in" (rect 106 392 185 404)(font "Arial" )) 
	(pt 96 408) 
	(pt 184 408) 
) 
(connector 
	(text "clk" (rect 466 256 480 268)(font "Arial" )) 
	(pt 456 272) 
	(pt 504 272) 
) 
(connector 
	(text "rstn" (rect 466 272 484 284)(font "Arial" )) 
	(pt 456 288) 
	(pt 504 288) 
) 
(connector 
	(pt 488 304) 
	(pt 504 304) 
) 
(connector 
	(pt 440 320) 
	(pt 504 320) 
	(bus) 
) 
(connector 
	(pt 456 336) 
	(pt 504 336) 
	(bus) 
) 
(connector 
	(pt 472 352) 
	(pt 504 352) 
	(bus) 
) 
(connector 
	(text "clk" (rect 138 512 152 524)(font "Arial" )) 
	(pt 128 528) 
	(pt 192 528) 
)