/* 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-2009 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. */ //#pragma file_not_in_maxplusii_format (header "graphic" (version "1.3")) (pin (input) (rect 232 184 400 200) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "GPIO_0[0]" (rect 5 0 56 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)(line_width 1)) (line (pt 92 4)(pt 117 4)(line_width 1)) (line (pt 121 8)(pt 168 8)(line_width 1)) (line (pt 92 12)(pt 92 4)(line_width 1)) (line (pt 117 4)(pt 121 8)(line_width 1)) (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) (annotation_block (location)(rect 176 200 232 216)) ) (pin (input) (rect 232 216 400 232) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "GPIO_0[1]" (rect 5 0 56 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)(line_width 1)) (line (pt 92 4)(pt 117 4)(line_width 1)) (line (pt 121 8)(pt 168 8)(line_width 1)) (line (pt 92 12)(pt 92 4)(line_width 1)) (line (pt 117 4)(pt 121 8)(line_width 1)) (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) (annotation_block (location)(rect 176 232 232 248)) ) (pin (input) (rect 232 248 400 264) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "GPIO_0[2]" (rect 5 0 56 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)(line_width 1)) (line (pt 92 4)(pt 117 4)(line_width 1)) (line (pt 121 8)(pt 168 8)(line_width 1)) (line (pt 92 12)(pt 92 4)(line_width 1)) (line (pt 117 4)(pt 121 8)(line_width 1)) (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) (annotation_block (location)(rect 176 264 232 280)) ) (pin (input) (rect 184 160 352 176) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "CLOCK_24[0]" (rect 5 0 73 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)(line_width 1)) (line (pt 92 4)(pt 117 4)(line_width 1)) (line (pt 121 8)(pt 168 8)(line_width 1)) (line (pt 92 12)(pt 92 4)(line_width 1)) (line (pt 117 4)(pt 121 8)(line_width 1)) (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) (annotation_block (location)(rect 176 400 232 416)) ) (pin (input) (rect 176 488 344 504) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "KEY[2]" (rect 5 0 40 12)(font "Arial" )) (pt 168 8) (drawing (line (pt 92 12)(pt 117 12)(line_width 1)) (line (pt 92 4)(pt 117 4)(line_width 1)) (line (pt 121 8)(pt 168 8)(line_width 1)) (line (pt 92 12)(pt 92 4)(line_width 1)) (line (pt 117 4)(pt 121 8)(line_width 1)) (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) (annotation_block (location)(rect 120 504 176 520)) ) (pin (output) (rect 224 336 400 352) (text "OUTPUT" (rect 137 0 175 10)(font "Arial" (font_size 6))) (text "LEDG[1]" (rect 5 0 47 12)(font "Arial" )) (pt 176 8) (drawing (line (pt 176 8)(pt 124 8)(line_width 1)) (line (pt 124 4)(pt 98 4)(line_width 1)) (line (pt 124 12)(pt 98 12)(line_width 1)) (line (pt 124 12)(pt 124 4)(line_width 1)) (line (pt 98 4)(pt 94 8)(line_width 1)) (line (pt 94 8)(pt 98 12)(line_width 1)) (line (pt 98 12)(pt 94 8)(line_width 1)) ) (flipy) (annotation_block (location)(rect 200 352 256 368)) ) (pin (output) (rect 224 312 400 328) (text "OUTPUT" (rect 137 0 175 10)(font "Arial" (font_size 6))) (text "LEDG[0]" (rect 5 0 47 12)(font "Arial" )) (pt 176 8) (drawing (line (pt 176 8)(pt 124 8)(line_width 1)) (line (pt 124 4)(pt 98 4)(line_width 1)) (line (pt 124 12)(pt 98 12)(line_width 1)) (line (pt 124 12)(pt 124 4)(line_width 1)) (line (pt 98 4)(pt 94 8)(line_width 1)) (line (pt 94 8)(pt 98 12)(line_width 1)) (line (pt 98 12)(pt 94 8)(line_width 1)) ) (flipy) (annotation_block (location)(rect 400 328 456 344)) ) (pin (output) (rect 1488 424 1669 440) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "HEX0[6..0]" (rect 123 0 176 12)(font "Arial" )) (pt 0 8) (drawing (line (pt 0 8)(pt 52 8)(line_width 1)) (line (pt 52 4)(pt 78 4)(line_width 1)) (line (pt 52 12)(pt 78 12)(line_width 1)) (line (pt 52 12)(pt 52 4)(line_width 1)) (line (pt 78 4)(pt 82 8)(line_width 1)) (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) (annotation_block (location)(rect 1848 192 1896 296)) ) (pin (output) (rect 1488 440 1669 456) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "HEX1[6..0]" (rect 123 0 176 12)(font "Arial" )) (pt 0 8) (drawing (line (pt 0 8)(pt 52 8)(line_width 1)) (line (pt 52 4)(pt 78 4)(line_width 1)) (line (pt 52 12)(pt 78 12)(line_width 1)) (line (pt 52 12)(pt 52 4)(line_width 1)) (line (pt 78 4)(pt 82 8)(line_width 1)) (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) (annotation_block (location)(rect 1800 192 1848 296)) ) (pin (output) (rect 1488 456 1669 472) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "HEX2[6..0]" (rect 123 0 176 12)(font "Arial" )) (pt 0 8) (drawing (line (pt 0 8)(pt 52 8)(line_width 1)) (line (pt 52 4)(pt 78 4)(line_width 1)) (line (pt 52 12)(pt 78 12)(line_width 1)) (line (pt 52 12)(pt 52 4)(line_width 1)) (line (pt 78 4)(pt 82 8)(line_width 1)) (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) (annotation_block (location)(rect 1800 304 1848 408)) ) (pin (output) (rect 1488 472 1669 488) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "HEX3[6..0]" (rect 123 0 176 12)(font "Arial" )) (pt 0 8) (drawing (line (pt 0 8)(pt 52 8)(line_width 1)) (line (pt 52 4)(pt 78 4)(line_width 1)) (line (pt 52 12)(pt 78 12)(line_width 1)) (line (pt 52 12)(pt 52 4)(line_width 1)) (line (pt 78 4)(pt 82 8)(line_width 1)) (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) (annotation_block (location)(rect 1848 304 1896 408)) ) (pin (output) (rect 168 544 344 560) (text "OUTPUT" (rect 137 0 175 10)(font "Arial" (font_size 6))) (text "LEDG[4]" (rect 5 0 47 12)(font "Arial" )) (pt 176 8) (drawing (line (pt 176 8)(pt 124 8)(line_width 1)) (line (pt 124 4)(pt 98 4)(line_width 1)) (line (pt 124 12)(pt 98 12)(line_width 1)) (line (pt 124 12)(pt 124 4)(line_width 1)) (line (pt 98 4)(pt 94 8)(line_width 1)) (line (pt 94 8)(pt 98 12)(line_width 1)) (line (pt 98 12)(pt 94 8)(line_width 1)) ) (flipy) (annotation_block (location)(rect 144 560 200 576)) ) (symbol (rect 1272 400 1440 528) (text "SEG7_LUT_4" (rect 5 0 71 12)(font "Arial" )) (text "inst8" (rect 8 112 31 124)(font "Arial" )) (port (pt 0 32) (input) (text "iDIG[15..0]" (rect 0 0 54 12)(font "Arial" )) (text "iDIG[15..0]" (rect 21 27 75 39)(font "Arial" )) (line (pt 0 32)(pt 16 32)(line_width 3)) ) (port (pt 168 32) (output) (text "oSEG0[6..0]" (rect 0 0 60 12)(font "Arial" )) (text "oSEG0[6..0]" (rect 87 27 147 39)(font "Arial" )) (line (pt 168 32)(pt 152 32)(line_width 3)) ) (port (pt 168 48) (output) (text "oSEG1[6..0]" (rect 0 0 60 12)(font "Arial" )) (text "oSEG1[6..0]" (rect 87 43 147 55)(font "Arial" )) (line (pt 168 48)(pt 152 48)(line_width 3)) ) (port (pt 168 64) (output) (text "oSEG2[6..0]" (rect 0 0 60 12)(font "Arial" )) (text "oSEG2[6..0]" (rect 87 59 147 71)(font "Arial" )) (line (pt 168 64)(pt 152 64)(line_width 3)) ) (port (pt 168 80) (output) (text "oSEG3[6..0]" (rect 0 0 60 12)(font "Arial" )) (text "oSEG3[6..0]" (rect 87 75 147 87)(font "Arial" )) (line (pt 168 80)(pt 152 80)(line_width 3)) ) (drawing (rectangle (rect 16 16 152 112)(line_width 1)) ) ) (symbol (rect 368 -80 608 80) (text "plld" (rect 110 0 133 16)(font "Arial" (font_size 10))) (text "inst17" (rect 8 144 37 156)(font "Arial" )) (port (pt 0 64) (input) (text "inclk0" (rect 0 0 31 14)(font "Arial" (font_size 8))) (text "inclk0" (rect 4 51 35 65)(font "Arial" (font_size 8))) (line (pt 0 64)(pt 40 64)(line_width 1)) ) (port (pt 240 64) (output) (text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8))) (text "c0" (rect 225 51 239 65)(font "Arial" (font_size 8))) (line (pt 240 64)(pt 208 64)(line_width 1)) ) (drawing (text "Cyclone II" (rect 183 145 234 157)(font "Arial" )) (text "inclk0 frequency: 24.000 MHz" (rect 50 59 197 71)(font "Arial" )) (text "Operation Mode: Normal" (rect 50 73 169 85)(font "Arial" )) (text "Clk " (rect 51 96 71 108)(font "Arial" )) (text "Ratio" (rect 73 96 98 108)(font "Arial" )) (text "Ph (dg)" (rect 100 96 135 108)(font "Arial" )) (text "DC (%)" (rect 135 96 171 108)(font "Arial" )) (text "c0" (rect 54 111 65 123)(font "Arial" )) (text "5/12" (rect 75 111 96 123)(font "Arial" )) (text "0.00" (rect 106 111 127 123)(font "Arial" )) (text "50.00" (rect 139 111 166 123)(font "Arial" )) (line (pt 0 0)(pt 241 0)(line_width 1)) (line (pt 241 0)(pt 241 161)(line_width 1)) (line (pt 0 161)(pt 241 161)(line_width 1)) (line (pt 0 0)(pt 0 161)(line_width 1)) (line (pt 48 94)(pt 168 94)(line_width 1)) (line (pt 48 108)(pt 168 108)(line_width 1)) (line (pt 48 123)(pt 168 123)(line_width 1)) (line (pt 48 94)(pt 48 123)(line_width 1)) (line (pt 70 94)(pt 70 123)(line_width 3)) (line (pt 97 94)(pt 97 123)(line_width 3)) (line (pt 132 94)(pt 132 123)(line_width 3)) (line (pt 167 94)(pt 167 123)(line_width 1)) (line (pt 40 48)(pt 208 48)(line_width 1)) (line (pt 208 48)(pt 208 144)(line_width 1)) (line (pt 40 144)(pt 208 144)(line_width 1)) (line (pt 40 48)(pt 40 144)(line_width 1)) ) ) (symbol (rect 640 -48 784 16) (text "lpm_counter1" (rect 33 1 125 17)(font "Arial" (font_size 10))) (text "inst18" (rect 8 48 37 60)(font "Arial" )) (port (pt 0 32) (input) (text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8))) (text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 16 32)(line_width 1)) ) (port (pt 144 40) (output) (text "q[19..0]" (rect 0 0 42 14)(font "Arial" (font_size 8))) (text "q[19..0]" (rect 89 34 131 48)(font "Arial" (font_size 8))) (line (pt 144 40)(pt 128 40)(line_width 3)) ) (drawing (text "up counter" (rect 84 17 135 29)(font "Arial" )) (line (pt 16 16)(pt 128 16)(line_width 1)) (line (pt 128 16)(pt 128 48)(line_width 1)) (line (pt 128 48)(pt 16 48)(line_width 1)) (line (pt 16 48)(pt 16 16)(line_width 1)) (line (pt 16 26)(pt 22 32)(line_width 1)) (line (pt 22 32)(pt 16 38)(line_width 1)) ) ) (symbol (rect 936 480 1080 560) (text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10))) (text "inst" (rect 8 64 25 76)(font "Arial" )) (port (pt 0 32) (input) (text "updown" (rect 0 0 47 14)(font "Arial" (font_size 8))) (text "updown" (rect 20 26 67 40)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 16 32)(line_width 1)) ) (port (pt 0 48) (input) (text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8))) (text "clock" (rect 26 42 55 56)(font "Arial" (font_size 8))) (line (pt 0 48)(pt 16 48)(line_width 1)) ) (port (pt 144 48) (output) (text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8))) (text "q[7..0]" (rect 95 42 130 56)(font "Arial" (font_size 8))) (line (pt 144 48)(pt 128 48)(line_width 3)) ) (drawing (text "up/down" (rect 94 17 134 29)(font "Arial" )) (line (pt 16 16)(pt 128 16)(line_width 1)) (line (pt 128 16)(pt 128 64)(line_width 1)) (line (pt 128 64)(pt 16 64)(line_width 1)) (line (pt 16 64)(pt 16 16)(line_width 1)) (line (pt 16 42)(pt 22 48)(line_width 1)) (line (pt 22 48)(pt 16 54)(line_width 1)) ) ) (symbol (rect 680 480 832 576) (text "QuadratureDecoderPorts" (rect 5 0 126 12)(font "Arial" )) (text "inst27" (rect 8 80 37 92)(font "Arial" )) (port (pt 0 32) (input) (text "clock" (rect 0 0 25 12)(font "Arial" )) (text "clock" (rect 21 27 46 39)(font "Arial" )) (line (pt 0 32)(pt 16 32)(line_width 1)) ) (port (pt 0 48) (input) (text "QuadA" (rect 0 0 33 12)(font "Arial" )) (text "QuadA" (rect 21 43 54 55)(font "Arial" )) (line (pt 0 48)(pt 16 48)(line_width 1)) ) (port (pt 0 64) (input) (text "QuadB" (rect 0 0 33 12)(font "Arial" )) (text "QuadB" (rect 21 59 54 71)(font "Arial" )) (line (pt 0 64)(pt 16 64)(line_width 1)) ) (port (pt 152 32) (output) (text "Direction" (rect 0 0 43 12)(font "Arial" )) (text "Direction" (rect 88 27 131 39)(font "Arial" )) (line (pt 152 32)(pt 136 32)(line_width 1)) ) (port (pt 152 48) (output) (text "CountEnable" (rect 0 0 62 12)(font "Arial" )) (text "CountEnable" (rect 69 43 131 55)(font "Arial" )) (line (pt 152 48)(pt 136 48)(line_width 1)) ) (drawing (rectangle (rect 16 16 136 80)(line_width 1)) ) ) (connector (pt 352 168) (pt 360 168) ) (connector (pt 360 168) (pt 368 168) ) (connector (pt 368 -16) (pt 360 -16) ) (connector (pt 360 -16) (pt 360 168) ) (connector (text "q[19..0]" (rect 530 112 567 124)(font "Arial" )) (pt 520 128) (pt 784 128) (bus) ) (connector (pt 640 -16) (pt 608 -16) ) (connector (pt 344 496) (pt 344 552) ) (connector (pt 344 552) (pt 344 560) ) (connector (pt 520 128) (pt 520 144) ) (connector (pt 784 -8) (pt 784 128) (bus) ) (connector (pt 1248 456) (pt 1248 472) (bus) ) (connector (pt 1256 456) (pt 1248 456) (bus) ) (connector (text "iDIG[15..0]" (rect 1200 480 1254 492)(font "Arial" )) (pt 1200 472) (pt 1248 472) (bus) ) (connector (pt 1200 360) (pt 1200 472) (bus) ) (connector (pt 1256 456) (pt 1256 432) (bus) ) (connector (pt 1256 432) (pt 1272 432) (bus) ) (connector (pt 1440 432) (pt 1488 432) (bus) ) (connector (pt 1440 448) (pt 1488 448) (bus) ) (connector (pt 1440 464) (pt 1488 464) (bus) ) (connector (pt 1440 480) (pt 1488 480) (bus) ) (connector (pt 400 344) (pt 424 344) ) (connector (pt 400 192) (pt 424 192) ) (connector (pt 784 128) (pt 784 208) (bus) ) (connector (pt 784 208) (pt 784 224) (bus) ) (connector (text "a" (rect 410 272 415 284)(font "Arial" )) (pt 440 288) (pt 400 288) ) (connector (pt 400 288) (pt 400 320) ) (connector (pt 400 224) (pt 440 224) ) (connector (text "q[10]" (rect 474 192 498 204)(font "Arial" )) (pt 464 208) (pt 784 208) ) (connector (text "iDIG[7..0]" (rect 1144 528 1192 540)(font "Arial" )) (pt 1200 552) (pt 1120 552) (bus) ) (connector (pt 1200 584) (pt 1080 584) (bus) ) (connector (pt 1120 528) (pt 1080 528) (bus) ) (connector (pt 1120 552) (pt 1120 528) (bus) ) (connector (text "iDIG[15..8]" (rect 1208 523 1220 577)(font "Arial" )(vertical)) (pt 1200 472) (pt 1200 552) (bus) ) (connector (pt 1200 552) (pt 1200 584) (bus) ) (connector (text "d" (rect 930 496 935 508)(font "Arial" )) (pt 832 512) (pt 936 512) ) (connector (text "c" (rect 930 512 935 524)(font "Arial" )) (pt 832 528) (pt 936 528) ) (connector (pt 400 256) (pt 456 256) ) (connector (pt 464 208) (pt 464 232) ) (connector (pt 440 528) (pt 680 528) ) (connector (pt 440 224) (pt 440 288) ) (connector (pt 440 288) (pt 440 528) ) (connector (text "b" (rect 658 528 663 540)(font "Arial" )) (pt 424 544) (pt 680 544) ) (connector (pt 424 192) (pt 424 344) ) (connector (pt 424 344) (pt 424 544) ) (connector (pt 680 512) (pt 656 512) ) (connector (pt 696 224) (pt 696 240) ) (connector (pt 656 224) (pt 696 224) (bus) ) (connector (pt 696 224) (pt 784 224) (bus) ) (connector (text "q[8]" (rect 640 486 652 504)(font "Arial" )(vertical)) (pt 656 224) (pt 656 512) ) (junction (pt 360 168)) (junction (pt 784 128)) (junction (pt 344 552)) (junction (pt 1200 472)) (junction (pt 1200 552)) (junction (pt 784 208)) (junction (pt 424 344)) (junction (pt 440 288)) (junction (pt 696 224))