/* 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-2010 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 16 72 184 88) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "X" (rect 5 0 11 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 16 104 184 120) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "Y" (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 16 136 184 152) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "Ci" (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 (output) (rect 480 128 656 144) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "SUM" (rect 90 0 113 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 480 264 656 280) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "Co" (rect 90 0 104 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 272 64 336 112) (text "XOR" (rect 1 0 21 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 11 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 11 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 49 24)(pt 64 24)) ) (drawing (line (pt 14 13)(pt 25 13)) (line (pt 14 36)(pt 25 36)) (arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)) (arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)) (arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)) (arc (pt 8 36)(pt 8 12)(rect -21 7 14 42)) ) ) (symbol (rect 376 112 440 160) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst2" (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 11 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 11 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 49 24)(pt 64 24)) ) (drawing (line (pt 14 13)(pt 25 13)) (line (pt 14 36)(pt 25 36)) (arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)) (arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)) (arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)) (arc (pt 8 36)(pt 8 12)(rect -21 7 14 42)) ) ) (symbol (rect 384 248 448 296) (text "OR3" (rect 1 0 19 10)(font "Arial" (font_size 6))) (text "inst3" (rect 3 37 26 49)(font "Arial" )) (port (pt 0 24) (input) (text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible)) (line (pt 0 24)(pt 18 24)) ) (port (pt 0 32) (input) (text "IN3" (rect 2 24 19 36)(font "Courier New" (bold))(invisible)) (text "IN3" (rect 2 24 19 36)(font "Courier New" (bold))(invisible)) (line (pt 0 32)(pt 16 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 16 16)) ) (port (pt 64 24) (output) (text "OUT" (rect 47 15 64 27)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 47 15 64 27)(font "Courier New" (bold))(invisible)) (line (pt 49 24)(pt 64 24)) ) (drawing (line (pt 14 13)(pt 25 13)) (line (pt 14 36)(pt 25 36)) (arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)) (arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)) (arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)) ) ) (symbol (rect 272 160 336 208) (text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst4" (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 272 208 336 256) (text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6))) (text "inst5" (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 272 256 336 304) (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)) ) ) (connector (pt 184 112) (pt 216 112) ) (connector (pt 216 96) (pt 272 96) ) (connector (pt 336 88) (pt 352 88) ) (connector (pt 352 88) (pt 352 128) ) (connector (pt 352 128) (pt 376 128) ) (connector (pt 184 144) (pt 200 144) ) (connector (pt 200 144) (pt 376 144) ) (connector (pt 232 176) (pt 272 176) ) (connector (pt 200 192) (pt 272 192) ) (connector (pt 232 224) (pt 272 224) ) (connector (pt 232 176) (pt 232 224) ) (connector (pt 216 96) (pt 216 112) ) (connector (pt 216 240) (pt 272 240) ) (connector (pt 200 288) (pt 272 288) ) (connector (pt 216 272) (pt 272 272) ) (connector (pt 200 144) (pt 200 192) ) (connector (pt 200 192) (pt 200 288) ) (connector (pt 216 112) (pt 216 240) ) (connector (pt 216 240) (pt 216 272) ) (connector (pt 336 232) (pt 352 232) ) (connector (pt 336 184) (pt 368 184) ) (connector (pt 336 280) (pt 384 280) ) (connector (pt 352 232) (pt 352 272) ) (connector (pt 352 272) (pt 384 272) ) (connector (pt 368 264) (pt 384 264) ) (connector (pt 368 184) (pt 368 264) ) (connector (pt 448 272) (pt 480 272) ) (connector (pt 440 136) (pt 480 136) ) (connector (pt 232 80) (pt 232 176) ) (connector (pt 184 80) (pt 232 80) ) (connector (pt 232 80) (pt 272 80) ) (junction (pt 216 112)) (junction (pt 200 144)) (junction (pt 232 80)) (junction (pt 232 176)) (junction (pt 200 192)) (junction (pt 216 240))