Created
March 10, 2017 16:13
-
-
Save Mati365/fb870bef25e2d605af620071b5e68610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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-2011 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 120 160 288 176) | |
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) | |
(text "SW[0]" (rect 5 0 36 12)(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 56 176 120 192)) | |
) | |
(pin | |
(input) | |
(rect 120 200 288 216) | |
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) | |
(text "SW[1]" (rect 5 0 36 12)(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 56 216 120 232)) | |
) | |
(pin | |
(input) | |
(rect 120 336 288 352) | |
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) | |
(text "SW[2]" (rect 5 0 36 12)(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 56 352 120 368)) | |
) | |
(pin | |
(input) | |
(rect 176 496 352 512) | |
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) | |
(text "pin_name1" (rect 9 0 62 12)(font "Arial" )) | |
(pt 176 8) | |
(drawing | |
(line (pt 92 12)(pt 117 12)) | |
(line (pt 92 4)(pt 117 4)) | |
(line (pt 121 8)(pt 176 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 176 552 344 568) | |
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) | |
(text "pin_name2" (rect 5 0 59 12)(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))) | |
) | |
(pin | |
(input) | |
(rect 168 616 336 632) | |
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) | |
(text "pin_name3" (rect 5 0 59 12)(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))) | |
) | |
(pin | |
(output) | |
(rect 1008 264 1184 280) | |
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) | |
(text "LEDR[0]" (rect 90 0 132 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)) | |
) | |
(annotation_block (location)(rect 1184 280 1240 296)) | |
) | |
(pin | |
(output) | |
(rect 928 536 1104 552) | |
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) | |
(text "LEDR12[1]" (rect 90 0 144 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)) | |
) | |
(annotation_block (location)(rect 1176 608 1232 624)) | |
) | |
(symbol | |
(rect 424 368 488 416) | |
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6))) | |
(text "inst2" (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 48 24)(pt 64 24)) | |
) | |
(drawing | |
(line (pt 14 36)(pt 25 36)) | |
(line (pt 14 13)(pt 25 13)) | |
(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 632 240 696 288) | |
(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 664 368 728 416) | |
(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 640 136 704 184) | |
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6))) | |
(text "inst8" (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 792 176 856 224) | |
(text "OR2" (rect 1 0 19 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 48 24)(pt 64 24)) | |
) | |
(drawing | |
(line (pt 14 36)(pt 25 36)) | |
(line (pt 14 13)(pt 25 13)) | |
(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 864 328 928 376) | |
(text "OR2" (rect 1 0 19 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 48 24)(pt 64 24)) | |
) | |
(drawing | |
(line (pt 14 36)(pt 25 36)) | |
(line (pt 14 13)(pt 25 13)) | |
(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 328 256 360 304) | |
(text "NOT" (rect 22 1 32 21)(font "Arial" (font_size 6))(vertical)) | |
(text "inst11" (rect -1 3 11 32)(font "Arial" )(vertical)) | |
(port | |
(pt 16 0) | |
(input) | |
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) | |
(text "IN" (rect 13 2 25 13)(font "Courier New" (bold))(vertical)(invisible)) | |
(line (pt 16 0)(pt 16 13)) | |
) | |
(port | |
(pt 16 48) | |
(output) | |
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) | |
(text "OUT" (rect 13 32 25 49)(font "Courier New" (bold))(vertical)(invisible)) | |
(line (pt 16 39)(pt 16 48)) | |
) | |
(drawing | |
(line (pt 7 13)(pt 25 13)) | |
(line (pt 25 13)(pt 16 31)) | |
(line (pt 7 13)(pt 16 31)) | |
(circle (rect 12 31 20 39)) | |
) | |
(rotate270) | |
) | |
(symbol | |
(rect 424 152 488 200) | |
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6))) | |
(text "OR_1" (rect 3 37 31 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 48 24)(pt 64 24)) | |
) | |
(drawing | |
(line (pt 14 36)(pt 25 36)) | |
(line (pt 14 13)(pt 25 13)) | |
(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 464 240 528 288) | |
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6))) | |
(text "OR_2" (rect 3 37 31 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 48 24)(pt 64 24)) | |
) | |
(drawing | |
(line (pt 14 36)(pt 25 36)) | |
(line (pt 14 13)(pt 25 13)) | |
(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)) | |
) | |
) | |
(connector | |
(pt 288 168) | |
(pt 264 168) | |
) | |
(connector | |
(pt 288 208) | |
(pt 288 184) | |
) | |
(connector | |
(pt 552 176) | |
(pt 488 176) | |
) | |
(connector | |
(pt 424 168) | |
(pt 344 168) | |
) | |
(connector | |
(pt 344 168) | |
(pt 288 168) | |
) | |
(connector | |
(pt 592 168) | |
(pt 592 232) | |
) | |
(connector | |
(pt 376 184) | |
(pt 376 384) | |
) | |
(connector | |
(pt 288 184) | |
(pt 376 184) | |
) | |
(connector | |
(pt 376 184) | |
(pt 424 184) | |
) | |
(connector | |
(pt 376 384) | |
(pt 424 384) | |
) | |
(connector | |
(pt 288 344) | |
(pt 448 344) | |
) | |
(connector | |
(pt 448 272) | |
(pt 464 272) | |
) | |
(connector | |
(pt 344 232) | |
(pt 592 232) | |
) | |
(connector | |
(pt 344 168) | |
(pt 344 232) | |
) | |
(connector | |
(pt 344 232) | |
(pt 344 256) | |
) | |
(connector | |
(pt 424 400) | |
(pt 344 400) | |
) | |
(connector | |
(pt 416 256) | |
(pt 464 256) | |
) | |
(connector | |
(pt 416 256) | |
(pt 416 320) | |
) | |
(connector | |
(pt 416 320) | |
(pt 344 320) | |
) | |
(connector | |
(pt 344 400) | |
(pt 344 320) | |
) | |
(connector | |
(pt 344 320) | |
(pt 344 304) | |
) | |
(connector | |
(pt 528 256) | |
(pt 528 264) | |
) | |
(connector | |
(pt 448 320) | |
(pt 584 320) | |
) | |
(connector | |
(pt 448 344) | |
(pt 448 320) | |
) | |
(connector | |
(pt 448 320) | |
(pt 448 272) | |
) | |
(connector | |
(pt 632 272) | |
(pt 584 272) | |
) | |
(connector | |
(pt 584 272) | |
(pt 584 320) | |
) | |
(connector | |
(pt 584 320) | |
(pt 584 384) | |
) | |
(connector | |
(pt 584 384) | |
(pt 664 384) | |
) | |
(connector | |
(pt 488 400) | |
(pt 488 392) | |
) | |
(connector | |
(pt 664 400) | |
(pt 488 400) | |
) | |
(connector | |
(pt 704 160) | |
(pt 792 160) | |
) | |
(connector | |
(pt 792 160) | |
(pt 792 192) | |
) | |
(connector | |
(pt 696 264) | |
(pt 792 264) | |
) | |
(connector | |
(pt 792 264) | |
(pt 792 208) | |
) | |
(connector | |
(pt 856 200) | |
(pt 856 344) | |
) | |
(connector | |
(pt 856 344) | |
(pt 864 344) | |
) | |
(connector | |
(pt 728 392) | |
(pt 864 392) | |
) | |
(connector | |
(pt 864 392) | |
(pt 864 360) | |
) | |
(connector | |
(pt 1008 272) | |
(pt 1008 352) | |
) | |
(connector | |
(pt 1008 352) | |
(pt 928 352) | |
) | |
(connector | |
(pt 592 168) | |
(pt 640 168) | |
) | |
(connector | |
(pt 632 152) | |
(pt 632 144) | |
) | |
(connector | |
(pt 632 144) | |
(pt 552 144) | |
) | |
(connector | |
(pt 552 176) | |
(pt 552 144) | |
) | |
(connector | |
(pt 632 152) | |
(pt 640 152) | |
) | |
(connector | |
(pt 632 256) | |
(pt 528 256) | |
) | |
(junction (pt 288 168)) | |
(junction (pt 344 168)) | |
(junction (pt 376 184)) | |
(junction (pt 344 232)) | |
(junction (pt 344 320)) | |
(junction (pt 448 320)) | |
(junction (pt 584 320)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment