/* 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 104 320 272 336) (text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6))) (text "clk_1ms" (rect 5 0 48 11)(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 149 17)(font "Arial" (font_size 6))) ) (pin (input) (rect 104 504 272 520) (text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6))) (text "sw" (rect 5 0 21 11)(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 149 17)(font "Arial" (font_size 6))) ) (pin (output) (rect 896 504 1072 520) (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6))) (text "sw_debounced" (rect 90 0 165 11)(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 512 264 688 280) (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6))) (text "QD" (rect 90 0 107 11)(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 512 248 688 264) (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6))) (text "QC" (rect 90 0 107 11)(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 512 232 688 248) (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6))) (text "QB" (rect 90 0 107 11)(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 512 216 688 232) (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6))) (text "QA" (rect 90 0 108 11)(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 632 488 696 568) (text "DFF" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst" (rect 3 68 21 79)(font "Arial" )) (port (pt 32 80) (input) (text "CLRN" (rect 21 59 49 70)(font "Courier New" (bold))) (text "CLRN" (rect 21 58 49 69)(font "Courier New" (bold))) (line (pt 32 80)(pt 32 76)) ) (port (pt 0 40) (input) (text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible)) (text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible)) (line (pt 0 40)(pt 12 40)) ) (port (pt 0 24) (input) (text "D" (rect 14 20 22 31)(font "Courier New" (bold))) (text "D" (rect 14 20 22 31)(font "Courier New" (bold))) (line (pt 0 24)(pt 12 24)) ) (port (pt 32 0) (input) (text "PRN" (rect 24 13 45 24)(font "Courier New" (bold))) (text "PRN" (rect 24 11 45 22)(font "Courier New" (bold))) (line (pt 32 4)(pt 32 0)) ) (port (pt 64 24) (output) (text "Q" (rect 45 20 53 31)(font "Courier New" (bold))) (text "Q" (rect 41 20 49 31)(font "Courier New" (bold))) (line (pt 52 24)(pt 64 24)) ) (drawing (line (pt 12 12)(pt 52 12)) (line (pt 12 68)(pt 52 68)) (line (pt 52 68)(pt 52 12)) (line (pt 12 68)(pt 12 12)) (line (pt 19 40)(pt 12 47)) (line (pt 12 32)(pt 20 40)) (circle (rect 28 4 36 12)) (circle (rect 28 68 36 76)) ) ) (symbol (rect 392 168 512 352) (text "74161" (rect 45 0 89 16)(font "Arial" (font_size 10))) (text "inst2" (rect 3 173 27 184)(font "Arial" )) (port (pt 0 136) (input) (text "CLRN" (rect 21 129 56 142)(font "Arial" (font_size 8))) (text "CLRN" (rect 21 129 56 142)(font "Arial" (font_size 8))) (line (pt 0 136)(pt 8 136)) ) (port (pt 0 160) (input) (text "CLK" (rect 21 153 48 166)(font "Arial" (font_size 8))) (text "CLK" (rect 21 153 48 166)(font "Arial" (font_size 8))) (line (pt 0 160)(pt 16 160)) ) (port (pt 0 120) (input) (text "ENP" (rect 21 113 48 126)(font "Arial" (font_size 8))) (text "ENP" (rect 21 113 48 126)(font "Arial" (font_size 8))) (line (pt 0 120)(pt 16 120)) ) (port (pt 0 24) (input) (text "LDN" (rect 21 17 46 30)(font "Arial" (font_size 8))) (text "LDN" (rect 21 17 46 30)(font "Arial" (font_size 8))) (line (pt 0 24)(pt 8 24)) ) (port (pt 0 40) (input) (text "A" (rect 21 33 32 46)(font "Arial" (font_size 8))) (text "A" (rect 21 33 32 46)(font "Arial" (font_size 8))) (line (pt 0 40)(pt 16 40)) ) (port (pt 0 88) (input) (text "D" (rect 21 81 31 94)(font "Arial" (font_size 8))) (text "D" (rect 21 81 31 94)(font "Arial" (font_size 8))) (line (pt 0 88)(pt 16 88)) ) (port (pt 0 104) (input) (text "ENT" (rect 21 97 48 110)(font "Arial" (font_size 8))) (text "ENT" (rect 21 97 48 110)(font "Arial" (font_size 8))) (line (pt 0 104)(pt 16 104)) ) (port (pt 0 56) (input) (text "B" (rect 21 49 31 62)(font "Arial" (font_size 8))) (text "B" (rect 21 49 31 62)(font "Arial" (font_size 8))) (line (pt 0 56)(pt 16 56)) ) (port (pt 0 72) (input) (text "C" (rect 21 65 31 78)(font "Arial" (font_size 8))) (text "C" (rect 21 65 31 78)(font "Arial" (font_size 8))) (line (pt 0 72)(pt 16 72)) ) (port (pt 120 104) (output) (text "QD" (rect 85 97 105 110)(font "Arial" (font_size 8))) (text "QD" (rect 83 97 103 110)(font "Arial" (font_size 8))) (line (pt 104 104)(pt 120 104)) ) (port (pt 120 88) (output) (text "QC" (rect 85 81 105 94)(font "Arial" (font_size 8))) (text "QC" (rect 83 81 103 94)(font "Arial" (font_size 8))) (line (pt 104 88)(pt 120 88)) ) (port (pt 120 72) (output) (text "QB" (rect 85 65 105 78)(font "Arial" (font_size 8))) (text "QB" (rect 83 65 103 78)(font "Arial" (font_size 8))) (line (pt 104 72)(pt 120 72)) ) (port (pt 120 56) (output) (text "QA" (rect 85 49 106 62)(font "Arial" (font_size 8))) (text "QA" (rect 82 49 103 62)(font "Arial" (font_size 8))) (line (pt 104 56)(pt 120 56)) ) (port (pt 120 120) (output) (text "RCO" (rect 77 113 106 126)(font "Arial" (font_size 8))) (text "RCO" (rect 75 113 104 126)(font "Arial" (font_size 8))) (line (pt 104 120)(pt 120 120)) ) (drawing (text "COUNTER" (rect 38 169 101 182)(font "Arial" (font_size 8))) (line (pt 16 16)(pt 104 16)) (line (pt 16 168)(pt 104 168)) (line (pt 16 168)(pt 16 16)) (line (pt 104 168)(pt 104 16)) (circle (rect 8 20 16 28)) (circle (rect 8 132 16 140)) ) ) (symbol (rect 296 112 328 128) (text "VCC" (rect 7 0 28 10)(font "Arial" (font_size 6))) (text "inst4" (rect 3 5 27 16)(font "Arial" )(invisible)) (port (pt 16 16) (output) (text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible)) (text "1" (rect 19 7 26 18)(font "Courier New" (bold))(invisible)) (line (pt 16 16)(pt 16 8)) ) (drawing (line (pt 8 8)(pt 24 8)) ) ) (symbol (rect 328 416 376 480) (text "XOR" (rect 0 41 10 63)(font "Arial" (font_size 6))(vertical)) (text "inst5" (rect 37 37 48 61)(font "Arial" )(vertical)) (port (pt 16 64) (input) (text "IN1" (rect 2 7 22 18)(font "Courier New" (bold))(invisible)) (text "IN1" (rect 7 42 18 62)(font "Courier New" (bold))(vertical)(invisible)) (line (pt 16 64)(pt 16 53)) ) (port (pt 32 64) (input) (text "IN2" (rect 2 23 22 34)(font "Courier New" (bold))(invisible)) (text "IN2" (rect 23 42 34 62)(font "Courier New" (bold))(vertical)(invisible)) (line (pt 32 64)(pt 32 53)) ) (port (pt 24 0) (output) (text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 15 -5 26 16)(font "Courier New" (bold))(vertical)(invisible)) (line (pt 24 15)(pt 24 0)) ) (drawing (line (pt 13 50)(pt 13 39)) (line (pt 36 50)(pt 36 39)) (arc (pt 29 57)(pt 19 57)(rect 8 45 41 78)) (arc (pt 24 15)(pt 13 39)(rect 13 7 76 70)) (arc (pt 35 39)(pt 24 15)(rect -27 7 36 70)) (arc (pt 36 56)(pt 12 56)(rect 7 50 42 85)) ) (rotate90) ) (symbol (rect 352 344 384 376) (text "GND" (rect 8 16 30 26)(font "Arial" (font_size 6))) (text "inst6" (rect 3 21 27 32)(font "Arial" )(invisible)) (port (pt 16 0) (output) (text "1" (rect 18 0 25 11)(font "Courier New" (bold))(invisible)) (text "1" (rect 18 0 25 11)(font "Courier New" (bold))(invisible)) (line (pt 16 8)(pt 16 0)) ) (drawing (line (pt 8 8)(pt 16 16)) (line (pt 16 16)(pt 24 8)) (line (pt 8 8)(pt 24 8)) ) ) (connector (pt 360 480) (pt 824 480) ) (connector (pt 824 480) (pt 824 512) ) (connector (pt 696 512) (pt 824 512) ) (connector (pt 824 512) (pt 896 512) ) (connector (pt 344 480) (pt 344 512) ) (connector (pt 272 512) (pt 344 512) ) (connector (pt 344 512) (pt 632 512) ) (connector (pt 392 272) (pt 312 272) ) (connector (pt 392 328) (pt 272 328) ) (connector (pt 312 288) (pt 392 288) ) (connector (pt 512 288) (pt 568 288) ) (connector (pt 568 528) (pt 568 288) ) (connector (pt 632 528) (pt 568 528) ) (connector (pt 392 304) (pt 312 304) ) (connector (pt 352 416) (pt 352 192) ) (connector (pt 352 192) (pt 392 192) ) (connector (pt 312 288) (pt 312 304) ) (connector (pt 312 272) (pt 312 288) ) (connector (pt 312 208) (pt 392 208) ) (connector (pt 312 128) (pt 312 208) ) (connector (pt 368 224) (pt 392 224) ) (connector (pt 392 256) (pt 368 256) ) (connector (pt 368 224) (pt 368 256) ) (connector (pt 368 256) (pt 368 344) ) (connector (pt 392 240) (pt 312 240) ) (connector (pt 312 208) (pt 312 240) ) (connector (pt 312 240) (pt 312 272) ) (junction (pt 824 512)) (junction (pt 344 512)) (junction (pt 312 272)) (junction (pt 312 288)) (junction (pt 312 208)) (junction (pt 368 256)) (junction (pt 312 240)) (text "PROGRAMAR O TEMPO DE BOUNCING" (rect 360 80 598 93)(font "Arial" (font_size 8))) (text "DA CHAVE SW EM BINARIO" (rect 360 96 527 109)(font "Arial" (font_size 8))) (text "PARA CLK DE 1 ms, e tempo maximo de 10ms DCBA = 15-10 = 5 2#0101" (rect 360 112 777 125)(font "Arial" (font_size 8))) (text "PARA CLK DE 1 ms, e tempo maximo de 5ms DCBA = 15 - 4 = 11 2#1011" (rect 360 128 781 141)(font "Arial" (font_size 8))) (text "SAIDAS QA-QD apenas para conferir a contagem" (rect 744 208 1024 221)(font "Arial" (font_size 8))) (text "IFSC - Campus Sao Jose" (rect 56 112 199 125)(font "Arial" (font_size 8))) (text "Marcos Moecke" (rect 56 128 146 141)(font "Arial" (font_size 8))) (text "2015" (rect 56 144 85 157)(font "Arial" (font_size 8)))