/* 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 -64 48 104 64) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "D[7..0]" (rect 5 0 39 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 -64 72 104 88) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "T4" (rect 5 0 16 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 -64 112 104 128) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "LDR0" (rect 5 0 33 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 -64 192 104 208) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "LDR1" (rect 5 0 33 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 -64 312 104 328) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "LDR2" (rect 5 0 33 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 456 48 632 64) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "R0[7..0]" (rect 90 0 130 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 456 168 632 184) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "R1[7..0]" (rect 90 0 130 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 448 288 624 304) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "R2[7..0]" (rect 90 0 130 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 184 288 248 336) (text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst" (rect 3 37 20 49)(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 14 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 14 32)) ) (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 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 184 168 248 216) (text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst6" (rect 3 37 26 49)(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 14 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 14 32)) ) (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 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 184 88 248 136) (text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst7" (rect 3 37 26 49)(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 14 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 14 32)) ) (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 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 112 104 160 136) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst2" (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 112 184 160 216) (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 112 304 160 336) (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 296 24 424 120) (text "Reg8" (rect 5 0 34 14)(font "Arial" (font_size 8))) (text "inst1" (rect 8 80 31 92)(font "Arial" )) (port (pt 0 32) (input) (text "D[7..0]" (rect 0 0 36 14)(font "Arial" (font_size 8))) (text "D[7..0]" (rect 21 27 57 41)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 16 32)(line_width 3)) ) (port (pt 0 48) (input) (text "CLK" (rect 0 0 23 14)(font "Arial" (font_size 8))) (text "CLK" (rect 21 43 44 57)(font "Arial" (font_size 8))) (line (pt 0 48)(pt 16 48)) ) (port (pt 128 32) (output) (text "Q[7..0]" (rect 0 0 37 14)(font "Arial" (font_size 8))) (text "Q[7..0]" (rect 70 27 107 41)(font "Arial" (font_size 8))) (line (pt 128 32)(pt 112 32)(line_width 3)) ) (drawing (rectangle (rect 16 16 112 80)) ) ) (symbol (rect 296 144 424 240) (text "Reg8" (rect 5 0 34 14)(font "Arial" (font_size 8))) (text "inst5" (rect 8 80 31 92)(font "Arial" )) (port (pt 0 32) (input) (text "D[7..0]" (rect 0 0 36 14)(font "Arial" (font_size 8))) (text "D[7..0]" (rect 21 27 57 41)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 16 32)(line_width 3)) ) (port (pt 0 48) (input) (text "CLK" (rect 0 0 23 14)(font "Arial" (font_size 8))) (text "CLK" (rect 21 43 44 57)(font "Arial" (font_size 8))) (line (pt 0 48)(pt 16 48)) ) (port (pt 128 32) (output) (text "Q[7..0]" (rect 0 0 37 14)(font "Arial" (font_size 8))) (text "Q[7..0]" (rect 70 27 107 41)(font "Arial" (font_size 8))) (line (pt 128 32)(pt 112 32)(line_width 3)) ) (drawing (rectangle (rect 16 16 112 80)) ) ) (symbol (rect 296 264 424 360) (text "Reg8" (rect 5 0 34 14)(font "Arial" (font_size 8))) (text "inst8" (rect 8 80 31 92)(font "Arial" )) (port (pt 0 32) (input) (text "D[7..0]" (rect 0 0 36 14)(font "Arial" (font_size 8))) (text "D[7..0]" (rect 21 27 57 41)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 16 32)(line_width 3)) ) (port (pt 0 48) (input) (text "CLK" (rect 0 0 23 14)(font "Arial" (font_size 8))) (text "CLK" (rect 21 43 44 57)(font "Arial" (font_size 8))) (line (pt 0 48)(pt 16 48)) ) (port (pt 128 32) (output) (text "Q[7..0]" (rect 0 0 37 14)(font "Arial" (font_size 8))) (text "Q[7..0]" (rect 70 27 107 41)(font "Arial" (font_size 8))) (line (pt 128 32)(pt 112 32)(line_width 3)) ) (drawing (rectangle (rect 16 16 112 80)) ) ) (connector (pt 424 296) (pt 448 296) (bus) ) (connector (pt 424 56) (pt 456 56) (bus) ) (connector (pt 296 72) (pt 272 72) ) (connector (pt 256 176) (pt 296 176) (bus) ) (connector (pt 256 296) (pt 296 296) (bus) ) (connector (pt 256 56) (pt 256 176) (bus) ) (connector (pt 256 176) (pt 256 296) (bus) ) (connector (pt 272 112) (pt 248 112) ) (connector (pt 272 72) (pt 272 112) ) (connector (pt 168 104) (pt 184 104) ) (connector (pt 296 192) (pt 248 192) ) (connector (pt 168 184) (pt 184 184) ) (connector (pt 296 312) (pt 248 312) ) (connector (pt 168 184) (pt 168 304) ) (connector (pt 168 304) (pt 184 304) ) (connector (pt 160 120) (pt 184 120) ) (connector (pt 104 120) (pt 112 120) ) (connector (pt 160 200) (pt 184 200) ) (connector (pt 104 200) (pt 112 200) ) (connector (pt 104 320) (pt 112 320) ) (connector (pt 160 320) (pt 184 320) ) (connector (pt 168 80) (pt 168 104) ) (connector (pt 168 104) (pt 168 184) ) (connector (pt 104 80) (pt 168 80) ) (connector (pt 256 56) (pt 296 56) (bus) ) (connector (pt 104 56) (pt 256 56) (bus) ) (connector (pt 424 176) (pt 456 176) (bus) ) (junction (pt 256 56)) (junction (pt 256 176)) (junction (pt 168 104)) (junction (pt 168 184))