|
| 1 | +/* |
| 2 | +WARNING: Do NOT edit the input and output ports in this file in a text |
| 3 | +editor if you plan to continue editing the block that represents it in |
| 4 | +the Block Editor! File corruption is VERY likely to occur. |
| 5 | +*/ |
| 6 | +/* |
| 7 | +Copyright (C) 1991-2015 Altera Corporation. All rights reserved. |
| 8 | +Your use of Altera Corporation's design tools, logic functions |
| 9 | +and other software and tools, and its AMPP partner logic |
| 10 | +functions, and any output files from any of the foregoing |
| 11 | +(including device programming or simulation files), and any |
| 12 | +associated documentation or information are expressly subject |
| 13 | +to the terms and conditions of the Altera Program License |
| 14 | +Subscription Agreement, the Altera Quartus II License Agreement, |
| 15 | +the Altera MegaCore Function License Agreement, or other |
| 16 | +applicable license agreement, including, without limitation, |
| 17 | +that your use is for the sole purpose of programming logic |
| 18 | +devices manufactured by Altera and sold by Altera or its |
| 19 | +authorized distributors. Please refer to the applicable |
| 20 | +agreement for further details. |
| 21 | +*/ |
| 22 | +(header "graphic" (version "1.4")) |
| 23 | +(pin |
| 24 | + (input) |
| 25 | + (rect 120 232 288 248) |
| 26 | + (text "INPUT" (rect 125 0 154 9)(font "Arial" (font_size 6))) |
| 27 | + (text "A" (rect 5 0 14 10)(font "Arial" )) |
| 28 | + (pt 168 8) |
| 29 | + (drawing |
| 30 | + (line (pt 84 12)(pt 109 12)) |
| 31 | + (line (pt 84 4)(pt 109 4)) |
| 32 | + (line (pt 113 8)(pt 168 8)) |
| 33 | + (line (pt 84 12)(pt 84 4)) |
| 34 | + (line (pt 109 4)(pt 113 8)) |
| 35 | + (line (pt 109 12)(pt 113 8)) |
| 36 | + ) |
| 37 | + (text "VCC" (rect 128 7 149 16)(font "Arial" (font_size 6))) |
| 38 | +) |
| 39 | +(pin |
| 40 | + (input) |
| 41 | + (rect 120 248 288 264) |
| 42 | + (text "INPUT" (rect 125 0 154 9)(font "Arial" (font_size 6))) |
| 43 | + (text "B" (rect 5 0 14 10)(font "Arial" )) |
| 44 | + (pt 168 8) |
| 45 | + (drawing |
| 46 | + (line (pt 84 12)(pt 109 12)) |
| 47 | + (line (pt 84 4)(pt 109 4)) |
| 48 | + (line (pt 113 8)(pt 168 8)) |
| 49 | + (line (pt 84 12)(pt 84 4)) |
| 50 | + (line (pt 109 4)(pt 113 8)) |
| 51 | + (line (pt 109 12)(pt 113 8)) |
| 52 | + ) |
| 53 | + (text "VCC" (rect 128 7 149 16)(font "Arial" (font_size 6))) |
| 54 | +) |
| 55 | +(pin |
| 56 | + (input) |
| 57 | + (rect 120 304 288 320) |
| 58 | + (text "INPUT" (rect 125 0 154 9)(font "Arial" (font_size 6))) |
| 59 | + (text "Bi" (rect 5 0 16 10)(font "Arial" )) |
| 60 | + (pt 168 8) |
| 61 | + (drawing |
| 62 | + (line (pt 84 12)(pt 109 12)) |
| 63 | + (line (pt 84 4)(pt 109 4)) |
| 64 | + (line (pt 113 8)(pt 168 8)) |
| 65 | + (line (pt 84 12)(pt 84 4)) |
| 66 | + (line (pt 109 4)(pt 113 8)) |
| 67 | + (line (pt 109 12)(pt 113 8)) |
| 68 | + ) |
| 69 | + (text "VCC" (rect 128 7 149 16)(font "Arial" (font_size 6))) |
| 70 | +) |
| 71 | +(pin |
| 72 | + (output) |
| 73 | + (rect 664 232 840 248) |
| 74 | + (text "OUTPUT" (rect 1 0 41 9)(font "Arial" (font_size 6))) |
| 75 | + (text "Do" (rect 90 0 105 10)(font "Arial" )) |
| 76 | + (pt 0 8) |
| 77 | + (drawing |
| 78 | + (line (pt 0 8)(pt 52 8)) |
| 79 | + (line (pt 52 4)(pt 78 4)) |
| 80 | + (line (pt 52 12)(pt 78 12)) |
| 81 | + (line (pt 52 12)(pt 52 4)) |
| 82 | + (line (pt 78 4)(pt 82 8)) |
| 83 | + (line (pt 82 8)(pt 78 12)) |
| 84 | + (line (pt 78 12)(pt 82 8)) |
| 85 | + ) |
| 86 | +) |
| 87 | +(pin |
| 88 | + (output) |
| 89 | + (rect 664 272 840 288) |
| 90 | + (text "OUTPUT" (rect 1 0 41 9)(font "Arial" (font_size 6))) |
| 91 | + (text "Bo" (rect 90 0 104 10)(font "Arial" )) |
| 92 | + (pt 0 8) |
| 93 | + (drawing |
| 94 | + (line (pt 0 8)(pt 52 8)) |
| 95 | + (line (pt 52 4)(pt 78 4)) |
| 96 | + (line (pt 52 12)(pt 78 12)) |
| 97 | + (line (pt 52 12)(pt 52 4)) |
| 98 | + (line (pt 78 4)(pt 82 8)) |
| 99 | + (line (pt 82 8)(pt 78 12)) |
| 100 | + (line (pt 78 12)(pt 82 8)) |
| 101 | + ) |
| 102 | +) |
| 103 | +(symbol |
| 104 | + (rect 304 208 400 304) |
| 105 | + (text "Half_subtractor" (rect 5 0 94 12)(font "Arial" (font_size 8))) |
| 106 | + (text "inst" (rect 8 82 25 92)(font "Arial" )) |
| 107 | + (port |
| 108 | + (pt 0 32) |
| 109 | + (input) |
| 110 | + (text "A" (rect 0 0 11 12)(font "Arial" (font_size 8))) |
| 111 | + (text "A" (rect 21 27 32 39)(font "Arial" (font_size 8))) |
| 112 | + (line (pt 0 32)(pt 16 32)) |
| 113 | + ) |
| 114 | + (port |
| 115 | + (pt 0 48) |
| 116 | + (input) |
| 117 | + (text "B" (rect 0 0 10 12)(font "Arial" (font_size 8))) |
| 118 | + (text "B" (rect 21 43 31 55)(font "Arial" (font_size 8))) |
| 119 | + (line (pt 0 48)(pt 16 48)) |
| 120 | + ) |
| 121 | + (port |
| 122 | + (pt 96 32) |
| 123 | + (output) |
| 124 | + (text "Do" (rect 0 0 18 12)(font "Arial" (font_size 8))) |
| 125 | + (text "Do" (rect 57 27 75 39)(font "Arial" (font_size 8))) |
| 126 | + (line (pt 96 32)(pt 80 32)) |
| 127 | + ) |
| 128 | + (port |
| 129 | + (pt 96 48) |
| 130 | + (output) |
| 131 | + (text "Bo" (rect 0 0 17 12)(font "Arial" (font_size 8))) |
| 132 | + (text "Bo" (rect 58 43 75 55)(font "Arial" (font_size 8))) |
| 133 | + (line (pt 96 48)(pt 80 48)) |
| 134 | + ) |
| 135 | + (drawing |
| 136 | + (rectangle (rect 16 16 80 80)) |
| 137 | + ) |
| 138 | +) |
| 139 | +(symbol |
| 140 | + (rect 448 208 544 304) |
| 141 | + (text "Half_subtractor" (rect 5 0 94 12)(font "Arial" (font_size 8))) |
| 142 | + (text "inst1" (rect 8 82 31 92)(font "Arial" )) |
| 143 | + (port |
| 144 | + (pt 0 32) |
| 145 | + (input) |
| 146 | + (text "A" (rect 0 0 11 12)(font "Arial" (font_size 8))) |
| 147 | + (text "A" (rect 21 27 32 39)(font "Arial" (font_size 8))) |
| 148 | + (line (pt 0 32)(pt 16 32)) |
| 149 | + ) |
| 150 | + (port |
| 151 | + (pt 0 48) |
| 152 | + (input) |
| 153 | + (text "B" (rect 0 0 10 12)(font "Arial" (font_size 8))) |
| 154 | + (text "B" (rect 21 43 31 55)(font "Arial" (font_size 8))) |
| 155 | + (line (pt 0 48)(pt 16 48)) |
| 156 | + ) |
| 157 | + (port |
| 158 | + (pt 96 32) |
| 159 | + (output) |
| 160 | + (text "Do" (rect 0 0 18 12)(font "Arial" (font_size 8))) |
| 161 | + (text "Do" (rect 57 27 75 39)(font "Arial" (font_size 8))) |
| 162 | + (line (pt 96 32)(pt 80 32)) |
| 163 | + ) |
| 164 | + (port |
| 165 | + (pt 96 48) |
| 166 | + (output) |
| 167 | + (text "Bo" (rect 0 0 17 12)(font "Arial" (font_size 8))) |
| 168 | + (text "Bo" (rect 58 43 75 55)(font "Arial" (font_size 8))) |
| 169 | + (line (pt 96 48)(pt 80 48)) |
| 170 | + ) |
| 171 | + (drawing |
| 172 | + (rectangle (rect 16 16 80 80)) |
| 173 | + ) |
| 174 | +) |
| 175 | +(symbol |
| 176 | + (rect 576 256 640 304) |
| 177 | + (text "OR2" (rect 1 0 23 9)(font "Arial" (font_size 6))) |
| 178 | + (text "inst2" (rect 3 37 26 47)(font "Arial" )) |
| 179 | + (port |
| 180 | + (pt 0 32) |
| 181 | + (input) |
| 182 | + (text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible)) |
| 183 | + (text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible)) |
| 184 | + (line (pt 0 32)(pt 15 32)) |
| 185 | + ) |
| 186 | + (port |
| 187 | + (pt 0 16) |
| 188 | + (input) |
| 189 | + (text "IN1" (rect 2 7 24 18)(font "Courier New" (bold))(invisible)) |
| 190 | + (text "IN1" (rect 2 7 24 18)(font "Courier New" (bold))(invisible)) |
| 191 | + (line (pt 0 16)(pt 15 16)) |
| 192 | + ) |
| 193 | + (port |
| 194 | + (pt 64 24) |
| 195 | + (output) |
| 196 | + (text "OUT" (rect 48 15 70 26)(font "Courier New" (bold))(invisible)) |
| 197 | + (text "OUT" (rect 48 15 70 26)(font "Courier New" (bold))(invisible)) |
| 198 | + (line (pt 48 24)(pt 64 24)) |
| 199 | + ) |
| 200 | + (drawing |
| 201 | + (line (pt 14 36)(pt 25 36)) |
| 202 | + (line (pt 14 13)(pt 25 13)) |
| 203 | + (arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)) |
| 204 | + (arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)) |
| 205 | + (arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)) |
| 206 | + ) |
| 207 | +) |
| 208 | +(connector |
| 209 | + (pt 400 240) |
| 210 | + (pt 448 240) |
| 211 | +) |
| 212 | +(connector |
| 213 | + (pt 432 256) |
| 214 | + (pt 448 256) |
| 215 | +) |
| 216 | +(connector |
| 217 | + (pt 400 256) |
| 218 | + (pt 416 256) |
| 219 | +) |
| 220 | +(connector |
| 221 | + (pt 416 256) |
| 222 | + (pt 416 320) |
| 223 | +) |
| 224 | +(connector |
| 225 | + (pt 544 256) |
| 226 | + (pt 560 256) |
| 227 | +) |
| 228 | +(connector |
| 229 | + (pt 560 256) |
| 230 | + (pt 560 272) |
| 231 | +) |
| 232 | +(connector |
| 233 | + (pt 560 272) |
| 234 | + (pt 576 272) |
| 235 | +) |
| 236 | +(connector |
| 237 | + (pt 416 320) |
| 238 | + (pt 560 320) |
| 239 | +) |
| 240 | +(connector |
| 241 | + (pt 560 320) |
| 242 | + (pt 560 288) |
| 243 | +) |
| 244 | +(connector |
| 245 | + (pt 560 288) |
| 246 | + (pt 576 288) |
| 247 | +) |
| 248 | +(connector |
| 249 | + (pt 544 240) |
| 250 | + (pt 664 240) |
| 251 | +) |
| 252 | +(connector |
| 253 | + (pt 640 280) |
| 254 | + (pt 664 280) |
| 255 | +) |
| 256 | +(connector |
| 257 | + (pt 432 256) |
| 258 | + (pt 432 312) |
| 259 | +) |
| 260 | +(connector |
| 261 | + (pt 288 240) |
| 262 | + (pt 304 240) |
| 263 | +) |
| 264 | +(connector |
| 265 | + (pt 288 256) |
| 266 | + (pt 304 256) |
| 267 | +) |
| 268 | +(connector |
| 269 | + (pt 288 312) |
| 270 | + (pt 432 312) |
| 271 | +) |
0 commit comments