/* 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 -192 56 -24 72) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "I3" (rect 5 0 14 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)) (line (pt 92 4)(pt 117 4)) (line (pt 121 8)(pt 168 8)) (line (pt 92 12)(pt 92 4)) (line (pt 117 4)(pt 121 8)) (line (pt 117 12)(pt 121 8)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) ) (pin (input) (rect -192 96 -24 112) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "I2" (rect 5 0 14 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)) (line (pt 92 4)(pt 117 4)) (line (pt 121 8)(pt 168 8)) (line (pt 92 12)(pt 92 4)) (line (pt 117 4)(pt 121 8)) (line (pt 117 12)(pt 121 8)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) ) (pin (input) (rect -192 136 -24 152) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "I1" (rect 5 0 14 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)) (line (pt 92 4)(pt 117 4)) (line (pt 121 8)(pt 168 8)) (line (pt 92 12)(pt 92 4)) (line (pt 117 4)(pt 121 8)) (line (pt 117 12)(pt 121 8)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) ) (pin (input) (rect -192 168 -24 184) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "I0" (rect 5 0 14 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)) (line (pt 92 4)(pt 117 4)) (line (pt 121 8)(pt 168 8)) (line (pt 92 12)(pt 92 4)) (line (pt 117 4)(pt 121 8)) (line (pt 117 12)(pt 121 8)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) ) (pin (input) (rect -224 384 -56 400) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "LDRI" (rect 5 0 30 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)) (line (pt 92 4)(pt 117 4)) (line (pt 121 8)(pt 168 8)) (line (pt 92 12)(pt 92 4)) (line (pt 117 4)(pt 121 8)) (line (pt 117 12)(pt 121 8)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) ) (pin (output) (rect 384 88 560 104) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "LDR0" (rect 90 0 118 12)(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)) ) ) (pin (output) (rect 392 232 568 248) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "LDR1" (rect 90 0 118 12)(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)) ) ) (pin (output) (rect 392 320 568 336) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "LDR2" (rect 90 0 118 12)(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)) ) ) (symbol (rect 24 48 72 80) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst3" (rect 3 21 26 33)(font "Arial" )) (port (pt 0 16) (input) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 13 16)) ) (port (pt 48 16) (output) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (line (pt 39 16)(pt 48 16)) ) (drawing (line (pt 13 25)(pt 13 7)) (line (pt 13 7)(pt 31 16)) (line (pt 13 25)(pt 31 16)) (circle (rect 31 12 39 20)) ) ) (symbol (rect 24 160 72 192) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst4" (rect 3 21 26 33)(font "Arial" )) (port (pt 0 16) (input) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 13 16)) ) (port (pt 48 16) (output) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (line (pt 39 16)(pt 48 16)) ) (drawing (line (pt 13 25)(pt 13 7)) (line (pt 13 7)(pt 31 16)) (line (pt 13 25)(pt 31 16)) (circle (rect 31 12 39 20)) ) ) (symbol (rect 24 88 72 120) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst5" (rect 3 21 26 33)(font "Arial" )) (port (pt 0 16) (input) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 13 16)) ) (port (pt 48 16) (output) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (line (pt 39 16)(pt 48 16)) ) (drawing (line (pt 13 25)(pt 13 7)) (line (pt 13 7)(pt 31 16)) (line (pt 13 25)(pt 31 16)) (circle (rect 31 12 39 20)) ) ) (symbol (rect 24 128 72 160) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst6" (rect 3 21 26 33)(font "Arial" )) (port (pt 0 16) (input) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 13 16)) ) (port (pt 48 16) (output) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (line (pt 39 16)(pt 48 16)) ) (drawing (line (pt 13 25)(pt 13 7)) (line (pt 13 7)(pt 31 16)) (line (pt 13 25)(pt 31 16)) (circle (rect 31 12 39 20)) ) ) (symbol (rect 152 48 216 128) (text "AND4" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst" (rect 3 69 20 81)(font "Arial" )) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 18 16)) ) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 18 32)) ) (port (pt 0 48) (input) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (line (pt 0 48)(pt 18 48)) ) (port (pt 0 64) (input) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (line (pt 0 64)(pt 18 64)) ) (port (pt 64 40) (output) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (line (pt 46 40)(pt 64 40)) ) (drawing (line (pt 18 28)(pt 34 28)) (line (pt 18 52)(pt 18 28)) (line (pt 18 67)(pt 18 13)) (line (pt 34 53)(pt 18 53)) (arc (pt 34 52)(pt 34 28)(rect 22 28 47 53)) ) ) (symbol (rect 160 192 224 272) (text "AND4" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst12" (rect 3 69 32 81)(font "Arial" )) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 18 16)) ) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 18 32)) ) (port (pt 0 48) (input) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (line (pt 0 48)(pt 18 48)) ) (port (pt 0 64) (input) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (line (pt 0 64)(pt 18 64)) ) (port (pt 64 40) (output) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (line (pt 46 40)(pt 64 40)) ) (drawing (line (pt 18 28)(pt 34 28)) (line (pt 18 52)(pt 18 28)) (line (pt 18 67)(pt 18 13)) (line (pt 34 53)(pt 18 53)) (arc (pt 34 52)(pt 34 28)(rect 22 28 47 53)) ) ) (symbol (rect 160 280 224 360) (text "AND4" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst13" (rect 3 69 32 81)(font "Arial" )) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 18 16)) ) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 18 32)) ) (port (pt 0 48) (input) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible)) (line (pt 0 48)(pt 18 48)) ) (port (pt 0 64) (input) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible)) (line (pt 0 64)(pt 18 64)) ) (port (pt 64 40) (output) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 31 65 43)(font "Courier New" (bold))(invisible)) (line (pt 46 40)(pt 64 40)) ) (drawing (line (pt 18 28)(pt 34 28)) (line (pt 18 52)(pt 18 28)) (line (pt 18 67)(pt 18 13)) (line (pt 34 53)(pt 18 53)) (arc (pt 34 52)(pt 34 28)(rect 22 28 47 53)) ) ) (symbol (rect 304 72 368 120) (text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6))) (text "inst9" (rect 3 37 26 49)(font "Arial" )) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 15 32)) ) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 15 16)) ) (port (pt 64 24) (output) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (line (pt 52 24)(pt 64 24)) ) (drawing (line (pt 15 37)(pt 32 37)) (line (pt 15 12)(pt 32 12)) (line (pt 15 36)(pt 15 12)) (arc (pt 32 36)(pt 32 12)(rect 20 12 45 37)) (circle (rect 44 20 52 28)) ) ) (symbol (rect 296 216 360 264) (text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6))) (text "inst10" (rect 3 37 32 49)(font "Arial" )) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 15 32)) ) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 15 16)) ) (port (pt 64 24) (output) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (line (pt 52 24)(pt 64 24)) ) (drawing (line (pt 15 37)(pt 32 37)) (line (pt 15 12)(pt 32 12)) (line (pt 15 36)(pt 15 12)) (arc (pt 32 36)(pt 32 12)(rect 20 12 45 37)) (circle (rect 44 20 52 28)) ) ) (symbol (rect 296 304 360 352) (text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6))) (text "inst11" (rect 3 37 32 49)(font "Arial" )) (port (pt 0 32) (input) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 15 32)) ) (port (pt 0 16) (input) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 15 16)) ) (port (pt 64 24) (output) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible)) (line (pt 52 24)(pt 64 24)) ) (drawing (line (pt 15 37)(pt 32 37)) (line (pt 15 12)(pt 32 12)) (line (pt 15 36)(pt 15 12)) (arc (pt 32 36)(pt 32 12)(rect 20 12 45 37)) (circle (rect 44 20 52 28)) ) ) (connector (pt -24 104) (pt 24 104) ) (connector (pt -24 64) (pt 24 64) ) (connector (pt 72 176) (pt 136 176) ) (connector (pt 72 144) (pt 112 144) ) (connector (pt 72 104) (pt 96 104) ) (connector (pt 280 336) (pt 296 336) ) (connector (pt 360 328) (pt 392 328) ) (connector (pt 392 240) (pt 360 240) ) (connector (pt 296 248) (pt 280 248) ) (connector (pt 384 96) (pt 368 96) ) (connector (pt 280 104) (pt 280 248) ) (connector (pt 304 104) (pt 280 104) ) (connector (pt 280 392) (pt -56 392) ) (connector (pt 280 248) (pt 280 336) ) (connector (pt 280 336) (pt 280 392) ) (connector (pt 136 112) (pt 152 112) ) (connector (pt 112 96) (pt 152 96) ) (connector (pt 96 80) (pt 152 80) ) (connector (pt 72 64) (pt 80 64) ) (connector (pt 80 64) (pt 152 64) ) (connector (pt 96 80) (pt 96 104) ) (connector (pt 80 208) (pt 160 208) ) (connector (pt 112 240) (pt 160 240) ) (connector (pt 96 224) (pt 160 224) ) (connector (pt 16 256) (pt 160 256) ) (connector (pt 16 176) (pt 16 256) ) (connector (pt -24 176) (pt 16 176) ) (connector (pt 16 176) (pt 24 176) ) (connector (pt 112 96) (pt 112 144) ) (connector (pt 112 144) (pt 112 240) ) (connector (pt 0 144) (pt 0 328) ) (connector (pt -24 144) (pt 0 144) ) (connector (pt 0 144) (pt 24 144) ) (connector (pt 136 112) (pt 136 176) ) (connector (pt 136 176) (pt 136 344) ) (connector (pt 80 64) (pt 80 208) ) (connector (pt 80 208) (pt 80 296) ) (connector (pt 96 104) (pt 96 224) ) (connector (pt 96 224) (pt 96 312) ) (connector (pt 80 296) (pt 160 296) ) (connector (pt 96 312) (pt 160 312) ) (connector (pt 0 328) (pt 160 328) ) (connector (pt 136 344) (pt 160 344) ) (connector (pt 216 88) (pt 304 88) ) (connector (pt 224 232) (pt 296 232) ) (connector (pt 224 320) (pt 296 320) ) (junction (pt 80 64)) (junction (pt 112 144)) (junction (pt 96 104)) (junction (pt 16 176)) (junction (pt 80 208)) (junction (pt 96 224)) (junction (pt 136 176)) (junction (pt 0 144)) (junction (pt 280 336)) (junction (pt 280 248))