/* 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-2015 Altera Corporation. All rights reserved. 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, the Altera Quartus II License Agreement, the 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 144 184 160) (text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) (text "KEY0" (rect 5 0 34 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 528 368 696 384) (text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6))) (text "CLK0" (rect 5 0 33 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 592 208 768 224) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "LEDA[6..0]" (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)) ) ) (pin (output) (rect 592 256 768 272) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "LEDB[6..0]" (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)) ) ) (pin (output) (rect 1032 368 1208 384) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "L" (rect 90 0 95 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 1176 120 1352 136) (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6))) (text "Q[7..0]" (rect 90 0 124 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 920 96 1136 224) (text "ROM" (rect 89 0 124 16)(font "Arial" (font_size 10))) (text "inst" (rect 8 112 25 124)(font "Arial" )) (port (pt 0 32) (input) (text "address[7..0]" (rect 0 0 75 14)(font "Arial" (font_size 8))) (text "address[7..0]" (rect 4 16 79 30)(font "Arial" (font_size 8))) (line (pt 0 32)(pt 88 32)(line_width 3)) ) (port (pt 0 112) (input) (text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8))) (text "clock" (rect 4 96 33 110)(font "Arial" (font_size 8))) (line (pt 0 112)(pt 144 112)) ) (port (pt 216 32) (output) (text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8))) (text "q[7..0]" (rect 176 16 211 30)(font "Arial" (font_size 8))) (line (pt 216 32)(pt 160 32)(line_width 3)) ) (drawing (text "8 bits" (rect 106 30 118 57)(font "Arial" )(vertical)) (text "256 words" (rect 120 16 132 65)(font "Arial" )(vertical)) (text "Block type: AUTO" (rect 48 111 137 123)(font "Arial" )) (line (pt 104 24)(pt 136 24)) (line (pt 136 24)(pt 136 96)) (line (pt 136 96)(pt 104 96)) (line (pt 104 96)(pt 104 24)) (line (pt 118 58)(pt 123 63)) (line (pt 118 62)(pt 123 57)) (line (pt 152 27)(pt 160 27)) (line (pt 160 27)(pt 160 39)) (line (pt 160 39)(pt 152 39)) (line (pt 152 39)(pt 152 27)) (line (pt 152 34)(pt 154 36)) (line (pt 154 36)(pt 152 38)) (line (pt 144 36)(pt 152 36)) (line (pt 136 32)(pt 152 32)(line_width 3)) (line (pt 88 27)(pt 96 27)) (line (pt 96 27)(pt 96 39)) (line (pt 96 39)(pt 88 39)) (line (pt 88 39)(pt 88 27)) (line (pt 88 34)(pt 90 36)) (line (pt 90 36)(pt 88 38)) (line (pt 80 36)(pt 88 36)) (line (pt 96 32)(pt 104 32)(line_width 3)) (line (pt 80 112)(pt 80 36)) (line (pt 144 112)(pt 144 36)) (line (pt 0 0)(pt 217 0)) (line (pt 217 0)(pt 217 130)) (line (pt 0 130)(pt 217 130)) (line (pt 0 0)(pt 0 130)) (line (pt 0 0)(pt 0 0)) (line (pt 0 0)(pt 0 0)) (line (pt 0 0)(pt 0 0)) (line (pt 0 0)(pt 0 0)) ) ) (symbol (rect 376 120 552 232) (text "control" (rect 5 0 38 12)(font "Arial" )) (text "inst2" (rect 8 96 31 108)(font "Arial" )) (port (pt 0 32) (input) (text "keycnt" (rect 0 0 34 12)(font "Arial" )) (text "keycnt" (rect 21 27 55 39)(font "Arial" )) (line (pt 0 32)(pt 16 32)) ) (port (pt 0 48) (input) (text "CLK" (rect 0 0 21 12)(font "Arial" )) (text "CLK" (rect 21 43 42 55)(font "Arial" )) (line (pt 0 48)(pt 16 48)) ) (port (pt 176 32) (output) (text "control[31..0]" (rect 0 0 64 12)(font "Arial" )) (text "control[31..0]" (rect 101 27 165 39)(font "Arial" )) (line (pt 176 32)(pt 160 32)(line_width 3)) ) (port (pt 176 48) (output) (text "LEDA[6..0]" (rect 0 0 54 12)(font "Arial" )) (text "LEDA[6..0]" (rect 110 43 164 55)(font "Arial" )) (line (pt 176 48)(pt 160 48)(line_width 3)) ) (port (pt 176 64) (output) (text "LEDB[6..0]" (rect 0 0 54 12)(font "Arial" )) (text "LEDB[6..0]" (rect 110 59 164 71)(font "Arial" )) (line (pt 176 64)(pt 160 64)(line_width 3)) ) (drawing (rectangle (rect 16 16 160 96)) ) ) (symbol (rect 672 104 872 184) (text "phase_acc" (rect 5 0 58 12)(font "Arial" )) (text "inst3" (rect 8 64 31 76)(font "Arial" )) (port (pt 0 32) (input) (text "clk" (rect 0 0 14 12)(font "Arial" )) (text "clk" (rect 21 27 35 39)(font "Arial" )) (line (pt 0 32)(pt 16 32)) ) (port (pt 0 48) (input) (text "freqin[31..0]" (rect 0 0 60 12)(font "Arial" )) (text "freqin[31..0]" (rect 21 43 81 55)(font "Arial" )) (line (pt 0 48)(pt 16 48)(line_width 3)) ) (port (pt 200 32) (output) (text "romaddr[7..0]" (rect 0 0 66 12)(font "Arial" )) (text "romaddr[7..0]" (rect 124 27 190 39)(font "Arial" )) (line (pt 200 32)(pt 184 32)(line_width 3)) ) (drawing (rectangle (rect 16 16 184 64)) ) ) (symbol (rect 224 128 288 208) (text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6))) (text "inst4" (rect 3 68 26 80)(font "Arial" )) (port (pt 32 80) (input) (text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold))) (text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold))) (line (pt 32 80)(pt 32 76)) ) (port (pt 0 40) (input) (text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible)) (text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible)) (line (pt 0 40)(pt 12 40)) ) (port (pt 0 24) (input) (text "D" (rect 14 20 19 32)(font "Courier New" (bold))) (text "D" (rect 14 20 19 32)(font "Courier New" (bold))) (line (pt 0 24)(pt 12 24)) ) (port (pt 32 0) (input) (text "PRN" (rect 24 13 41 25)(font "Courier New" (bold))) (text "PRN" (rect 24 11 41 23)(font "Courier New" (bold))) (line (pt 32 4)(pt 32 0)) ) (port (pt 64 24) (output) (text "Q" (rect 45 20 50 32)(font "Courier New" (bold))) (text "Q" (rect 43 20 48 32)(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 816 360 864 392) (text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst5" (rect 3 21 26 33)(font "Arial" )) (port (pt 0 16) (input) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible)) (line (pt 0 16)(pt 13 16)) ) (port (pt 48 16) (output) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible)) (line (pt 39 16)(pt 48 16)) ) (drawing (line (pt 13 25)(pt 13 7)) (line (pt 13 7)(pt 31 16)) (line (pt 13 25)(pt 31 16)) (circle (rect 31 12 39 20)) ) ) (connector (pt 184 152) (pt 224 152) ) (connector (pt 288 152) (pt 376 152) ) (connector (pt 552 168) (pt 592 168) (bus) ) (connector (pt 592 168) (pt 592 216) (bus) ) (connector (pt 552 184) (pt 576 184) (bus) ) (connector (pt 576 184) (pt 576 264) (bus) ) (connector (pt 576 264) (pt 592 264) (bus) ) (connector (pt 864 376) (pt 1032 376) ) (connector (pt 552 152) (pt 672 152) (bus) ) (connector (pt 880 136) (pt 880 128) (bus) ) (connector (pt 872 136) (pt 880 136) (bus) ) (connector (pt 880 128) (pt 920 128) (bus) ) (connector (pt 1136 128) (pt 1176 128) (bus) ) (connector (pt 224 168) (pt 184 168) ) (connector (pt 184 288) (pt 184 168) ) (connector (pt 344 168) (pt 344 288) ) (connector (pt 344 168) (pt 376 168) ) (connector (pt 672 136) (pt 560 136) ) (connector (pt 560 288) (pt 560 136) ) (connector (pt 184 288) (pt 344 288) ) (connector (pt 920 208) (pt 784 208) ) (connector (pt 696 376) (pt 784 376) ) (connector (pt 784 376) (pt 816 376) ) (connector (pt 784 376) (pt 784 288) ) (connector (pt 784 288) (pt 784 208) ) (connector (pt 344 288) (pt 560 288) ) (connector (pt 560 288) (pt 784 288) ) (junction (pt 344 288)) (junction (pt 784 376)) (junction (pt 784 288)) (junction (pt 560 288))