/*
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-2013 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.
*/
(header "graphic" (version "1.4"))
(pin
	(input)
	(rect 184 120 352 136)
	(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
	(text "KEY[0]" (rect 5 0 39 11)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 84 12)(pt 109 12))
		(line (pt 84 4)(pt 109 4))
		(line (pt 113 8)(pt 168 8))
		(line (pt 84 12)(pt 84 4))
		(line (pt 109 4)(pt 113 8))
		(line (pt 109 12)(pt 113 8))
	)
	(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 120 136 184 152))
)
(pin
	(input)
	(rect 184 184 352 200)
	(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
	(text "KEY[1]" (rect 5 0 39 11)(font "Arial" ))
	(pt 168 8)
	(drawing
		(line (pt 84 12)(pt 109 12))
		(line (pt 84 4)(pt 109 4))
		(line (pt 113 8)(pt 168 8))
		(line (pt 84 12)(pt 84 4))
		(line (pt 109 4)(pt 113 8))
		(line (pt 109 12)(pt 113 8))
	)
	(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 120 200 184 216))
)
(pin
	(output)
	(rect 656 152 832 168)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "LEDG[0]" (rect 90 0 132 11)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8))
		(line (pt 52 4)(pt 78 4))
		(line (pt 52 12)(pt 78 12))
		(line (pt 52 12)(pt 52 4))
		(line (pt 78 4)(pt 82 8))
		(line (pt 82 8)(pt 78 12))
		(line (pt 78 12)(pt 82 8))
	)
	(annotation_block (location)(rect 832 168 896 184))
)
(pin
	(output)
	(rect 656 192 832 208)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "GPIO_0[0]" (rect 90 0 143 11)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8))
		(line (pt 52 4)(pt 78 4))
		(line (pt 52 12)(pt 78 12))
		(line (pt 52 12)(pt 52 4))
		(line (pt 78 4)(pt 82 8))
		(line (pt 82 8)(pt 78 12))
		(line (pt 78 12)(pt 82 8))
	)
	(annotation_block (location)(rect 832 208 896 224))
)
(pin
	(output)
	(rect 656 232 832 248)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "GPIO_0[1]" (rect 90 0 143 11)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 0 8)(pt 52 8))
		(line (pt 52 4)(pt 78 4))
		(line (pt 52 12)(pt 78 12))
		(line (pt 52 12)(pt 52 4))
		(line (pt 78 4)(pt 82 8))
		(line (pt 82 8)(pt 78 12))
		(line (pt 78 12)(pt 82 8))
	)
	(annotation_block (location)(rect 832 248 896 264))
)
(symbol
	(rect 440 112 504 160)
	(text "AND2" (rect 1 0 28 10)(font "Arial" (font_size 6)))
	(text "inst" (rect 3 37 20 48)(font "Arial" ))
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 14 16))
	)
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 14 32))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(line (pt 42 24)(pt 64 24))
	)
	(drawing
		(line (pt 14 12)(pt 30 12))
		(line (pt 14 37)(pt 31 37))
		(line (pt 14 12)(pt 14 37))
		(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
	)
)
(symbol
	(rect 440 160 504 208)
	(text "NOR2" (rect 1 0 29 10)(font "Arial" (font_size 6)))
	(text "inst2" (rect 3 37 26 48)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 14 32))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 14 16))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(line (pt 54 24)(pt 64 24))
	)
	(drawing
		(line (pt 12 36)(pt 23 36))
		(line (pt 12 13)(pt 23 13))
		(arc (pt 46 24)(pt 23 13)(rect -6 13 53 72))
		(arc (pt 5 29)(pt 5 19)(rect -16 8 17 41))
		(arc (pt 23 35)(pt 46 24)(rect -6 -23 53 36))
		(circle (rect 46 20 54 28))
	)
)
(symbol
	(rect 544 136 608 184)
	(text "NOR2" (rect 1 0 29 10)(font "Arial" (font_size 6)))
	(text "inst3" (rect 3 37 26 48)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 14 32))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 14 16))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 68 26)(font "Courier New" (bold))(invisible))
		(line (pt 54 24)(pt 64 24))
	)
	(drawing
		(line (pt 12 36)(pt 23 36))
		(line (pt 12 13)(pt 23 13))
		(arc (pt 46 24)(pt 23 13)(rect -6 13 53 72))
		(arc (pt 5 29)(pt 5 19)(rect -16 8 17 41))
		(arc (pt 23 35)(pt 46 24)(rect -6 -23 53 36))
		(circle (rect 46 20 54 28))
	)
)
(connector
	(pt 352 192)
	(pt 352 144)
)
(connector
	(pt 352 144)
	(pt 440 144)
)
(connector
	(pt 392 128)
	(pt 392 176)
)
(connector
	(pt 392 176)
	(pt 440 176)
)
(connector
	(pt 352 128)
	(pt 392 128)
)
(connector
	(pt 392 128)
	(pt 440 128)
)
(connector
	(pt 352 192)
	(pt 440 192)
)
(connector
	(pt 440 192)
	(pt 448 192)
)
(connector
	(pt 504 136)
	(pt 504 152)
)
(connector
	(pt 504 152)
	(pt 544 152)
)
(connector
	(pt 504 184)
	(pt 504 168)
)
(connector
	(pt 504 168)
	(pt 544 168)
)
(connector
	(pt 616 200)
	(pt 656 200)
)
(connector
	(pt 608 160)
	(pt 616 160)
)
(connector
	(pt 616 160)
	(pt 656 160)
)
(connector
	(pt 616 240)
	(pt 656 240)
)
(connector
	(pt 616 160)
	(pt 616 200)
)
(connector
	(pt 616 200)
	(pt 616 240)
)
(junction (pt 392 128))
(junction (pt 352 192))
(junction (pt 440 192))
(junction (pt 616 160))
(junction (pt 616 200))
