Files
cpu/CPU_Main.bdf
2016-11-14 14:07:01 +01:00

736 lines
17 KiB
Plaintext

/*
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-2012 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 336 256 504 272)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Set" (rect 5 0 21 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 280 272 336 288))
)
(pin
(input)
(rect 336 224 504 240)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Enable" (rect 5 0 38 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 280 240 336 256))
)
(pin
(input)
(rect -152 256 16 272)
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
(text "Clk_input" (rect 5 0 51 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 -208 272 -152 288))
)
(pin
(input)
(rect 1008 192 1176 208)
(text "INPUT" (rect 15 0 43 10)(font "Arial" (font_size 6)))
(text "Data[7..0]" (rect 114 0 163 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 84 12)(pt 59 12))
(line (pt 84 4)(pt 59 4))
(line (pt 55 8)(pt 0 8))
(line (pt 84 12)(pt 84 4))
(line (pt 59 4)(pt 55 8))
(line (pt 59 12)(pt 55 8))
)
(flipy)
(text "VCC" (rect 20 7 40 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 1143 216 1199 232))
)
(pin
(output)
(rect 1008 264 1185 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "SavedData[7..0]" (rect 90 0 171 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 1136 280 1192 296))
)
(pin
(output)
(rect 192 472 368 488)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name1" (rect 90 0 143 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 368 488 424 504))
)
(pin
(output)
(rect 192 488 368 504)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name2" (rect 90 0 143 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 368 504 424 520))
)
(pin
(output)
(rect 192 504 368 520)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name3" (rect 90 0 143 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 368 520 424 536))
)
(pin
(output)
(rect 192 520 368 536)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name4" (rect 90 0 143 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 368 536 424 552))
)
(pin
(output)
(rect 192 536 368 552)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name5" (rect 90 0 143 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 368 552 424 568))
)
(pin
(output)
(rect 192 552 368 568)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name6" (rect 90 0 143 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 368 568 424 584))
)
(pin
(output)
(rect 192 568 368 584)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name7" (rect 90 0 143 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 368 584 424 600))
)
(pin
(output)
(rect 192 584 368 600)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "pin_name8" (rect 90 0 143 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 368 600 424 616))
)
(symbol
(rect 528 248 576 280)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst1" (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))
)
)
(symbol
(rect 528 216 576 248)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst3" (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))
)
)
(symbol
(rect 32 232 168 328)
(text "Clk" (rect 5 0 21 14)(font "Arial" (font_size 8)))
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "Clk_input" (rect 0 0 50 14)(font "Arial" (font_size 8)))
(text "Clk_input" (rect 21 27 71 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32))
)
(port
(pt 136 32)
(output)
(text "Clk_e" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "Clk_e" (rect 85 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32))
)
(port
(pt 136 48)
(output)
(text "Clk_s" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "Clk_s" (rect 85 43 115 57)(font "Arial" (font_size 8)))
(line (pt 136 48)(pt 120 48))
)
(drawing
(rectangle (rect 16 16 120 80))
)
)
(symbol
(rect -160 456 -40 632)
(text "74164" (rect 43 0 84 16)(font "Arial" (font_size 10)))
(text "inst7" (rect 3 165 26 177)(font "Arial" ))
(port
(pt 0 136)
(input)
(text "CLRN" (rect 22 128 53 142)(font "Arial" (font_size 8)))
(text "CLRN" (rect 22 128 53 142)(font "Arial" (font_size 8)))
(line (pt 0 136)(pt 8 136))
)
(port
(pt 0 152)
(input)
(text "CLK" (rect 22 144 45 158)(font "Arial" (font_size 8)))
(text "CLK" (rect 22 144 45 158)(font "Arial" (font_size 8)))
(line (pt 0 152)(pt 16 152))
)
(port
(pt 0 72)
(input)
(text "B" (rect 21 65 29 79)(font "Arial" (font_size 8)))
(text "B" (rect 21 65 29 79)(font "Arial" (font_size 8)))
(line (pt 0 72)(pt 16 72))
)
(port
(pt 0 56)
(input)
(text "A" (rect 21 49 30 63)(font "Arial" (font_size 8)))
(text "A" (rect 21 49 30 63)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 16 56))
)
(port
(pt 120 72)
(output)
(text "QD" (rect 85 64 102 78)(font "Arial" (font_size 8)))
(text "QD" (rect 85 64 102 78)(font "Arial" (font_size 8)))
(line (pt 104 72)(pt 120 72))
)
(port
(pt 120 56)
(output)
(text "QC" (rect 85 48 102 62)(font "Arial" (font_size 8)))
(text "QC" (rect 85 48 102 62)(font "Arial" (font_size 8)))
(line (pt 104 56)(pt 120 56))
)
(port
(pt 120 24)
(output)
(text "QA" (rect 85 17 103 31)(font "Arial" (font_size 8)))
(text "QA" (rect 84 17 102 31)(font "Arial" (font_size 8)))
(line (pt 104 24)(pt 120 24))
)
(port
(pt 120 104)
(output)
(text "QF" (rect 86 97 102 111)(font "Arial" (font_size 8)))
(text "QF" (rect 86 97 102 111)(font "Arial" (font_size 8)))
(line (pt 104 104)(pt 120 104))
)
(port
(pt 120 136)
(output)
(text "QH" (rect 85 129 102 143)(font "Arial" (font_size 8)))
(text "QH" (rect 85 129 102 143)(font "Arial" (font_size 8)))
(line (pt 104 136)(pt 120 136))
)
(port
(pt 120 120)
(output)
(text "QG" (rect 85 113 103 127)(font "Arial" (font_size 8)))
(text "QG" (rect 84 113 102 127)(font "Arial" (font_size 8)))
(line (pt 104 120)(pt 120 120))
)
(port
(pt 120 88)
(output)
(text "QE" (rect 85 80 101 94)(font "Arial" (font_size 8)))
(text "QE" (rect 86 80 102 94)(font "Arial" (font_size 8)))
(line (pt 104 88)(pt 120 88))
)
(port
(pt 120 40)
(output)
(text "QB" (rect 85 32 102 46)(font "Arial" (font_size 8)))
(text "QB" (rect 85 32 102 46)(font "Arial" (font_size 8)))
(line (pt 104 40)(pt 120 40))
)
(drawing
(text "SHIFT REG." (rect 35 161 99 175)(font "Arial" (font_size 8)))
(line (pt 16 16)(pt 104 16))
(line (pt 16 160)(pt 16 16))
(line (pt 16 160)(pt 104 160))
(line (pt 104 160)(pt 104 16))
(circle (rect 8 132 16 140))
)
)
(symbol
(rect -120 384 -72 416)
(text "NOT" (rect 27 0 47 10)(font "Arial" (font_size 6)))
(text "inst8" (rect 22 21 45 33)(font "Arial" ))
(port
(pt 48 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 35 7 46 19)(font "Courier New" (bold))(invisible))
(line (pt 48 16)(pt 35 16))
)
(port
(pt 0 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect -1 7 16 19)(font "Courier New" (bold))(invisible))
(line (pt 9 16)(pt 0 16))
)
(drawing
(line (pt 35 25)(pt 35 7))
(line (pt 35 7)(pt 17 16))
(line (pt 35 25)(pt 17 16))
(circle (rect 9 12 17 20))
)
(flipy)
)
(symbol
(rect -192 568 -160 584)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst9" (rect 3 5 26 17)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8))
)
(drawing
(line (pt 8 8)(pt 24 8))
)
)
(symbol
(rect 56 328 120 472)
(text "OR8" (rect 45 0 63 10)(font "Arial" (font_size 6)))
(text "inst10" (rect 44 133 73 145)(font "Arial" ))
(port
(pt 64 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 45 7 62 19)(font "Courier New" (bold))(invisible))
(line (pt 64 16)(pt 50 16))
)
(port
(pt 64 48)
(input)
(text "IN3" (rect 2 39 19 51)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 45 39 62 51)(font "Courier New" (bold))(invisible))
(line (pt 64 48)(pt 50 48))
)
(port
(pt 64 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 45 23 62 35)(font "Courier New" (bold))(invisible))
(line (pt 64 32)(pt 50 32))
)
(port
(pt 64 64)
(input)
(text "IN4" (rect 2 55 19 67)(font "Courier New" (bold))(invisible))
(text "IN4" (rect 45 55 62 67)(font "Courier New" (bold))(invisible))
(line (pt 64 64)(pt 48 64))
)
(port
(pt 64 96)
(input)
(text "IN6" (rect 2 87 19 99)(font "Courier New" (bold))(invisible))
(text "IN6" (rect 45 87 62 99)(font "Courier New" (bold))(invisible))
(line (pt 64 96)(pt 50 96))
)
(port
(pt 64 80)
(input)
(text "IN5" (rect 2 71 19 83)(font "Courier New" (bold))(invisible))
(text "IN5" (rect 45 71 62 83)(font "Courier New" (bold))(invisible))
(line (pt 64 80)(pt 48 80))
)
(port
(pt 64 112)
(input)
(text "IN7" (rect 2 103 19 115)(font "Courier New" (bold))(invisible))
(text "IN7" (rect 45 103 62 115)(font "Courier New" (bold))(invisible))
(line (pt 64 112)(pt 50 112))
)
(port
(pt 64 128)
(input)
(text "IN8" (rect 2 119 19 131)(font "Courier New" (bold))(invisible))
(text "IN8" (rect 45 119 62 131)(font "Courier New" (bold))(invisible))
(line (pt 64 128)(pt 50 128))
)
(port
(pt 0 72)
(output)
(text "OUT" (rect 48 63 65 75)(font "Courier New" (bold))(invisible))
(text "OUT" (rect -1 63 16 75)(font "Courier New" (bold))(invisible))
(line (pt 16 72)(pt 0 72))
)
(drawing
(line (pt 50 131)(pt 50 83))
(line (pt 50 84)(pt 39 84))
(line (pt 50 61)(pt 39 61))
(line (pt 50 61)(pt 50 13))
(arc (pt 15 72)(pt 39 83)(rect 7 21 70 84))
(arc (pt 39 61)(pt 15 72)(rect 7 61 70 124))
(arc (pt 57 67)(pt 57 77)(rect 45 56 78 89))
)
(flipy)
)
(connector
(pt -160 528)
(pt -192 528)
)
(connector
(pt -160 512)
(pt -192 512)
)
(connector
(pt -160 608)
(pt -192 608)
)
(connector
(pt -192 608)
(pt -192 648)
)
(connector
(pt -176 592)
(pt -176 584)
)
(connector
(pt -160 592)
(pt -176 592)
)
(connector
(pt 184 480)
(pt 184 344)
)
(connector
(pt 176 496)
(pt 176 360)
)
(connector
(pt 168 512)
(pt 168 376)
)
(connector
(pt 160 528)
(pt 160 392)
)
(connector
(pt 152 544)
(pt 152 408)
)
(connector
(pt 144 560)
(pt 144 424)
)
(connector
(pt -192 400)
(pt -120 400)
)
(connector
(pt -192 400)
(pt -192 512)
)
(connector
(pt -192 512)
(pt -192 528)
)
(connector
(pt 160 528)
(pt 192 528)
)
(connector
(pt 168 512)
(pt 192 512)
)
(connector
(pt 184 480)
(pt 192 480)
)
(connector
(pt 144 560)
(pt 192 560)
)
(connector
(pt 136 576)
(pt 192 576)
)
(connector
(pt 152 544)
(pt 192 544)
)
(connector
(pt 176 496)
(pt 192 496)
)
(connector
(pt 136 440)
(pt 136 456)
)
(connector
(pt 136 456)
(pt 136 576)
)
(connector
(pt -40 528)
(pt 160 528)
)
(connector
(pt -40 512)
(pt 168 512)
)
(connector
(pt -40 480)
(pt 184 480)
)
(connector
(pt -40 560)
(pt 144 560)
)
(connector
(pt -40 592)
(pt 192 592)
)
(connector
(pt -40 576)
(pt 136 576)
)
(connector
(pt -40 544)
(pt 152 544)
)
(connector
(pt -40 496)
(pt 176 496)
)
(connector
(pt -72 400)
(pt 56 400)
)
(connector
(pt 120 344)
(pt 184 344)
)
(connector
(pt 120 376)
(pt 168 376)
)
(connector
(pt 120 360)
(pt 176 360)
)
(connector
(pt 120 392)
(pt 160 392)
)
(connector
(pt 120 424)
(pt 144 424)
)
(connector
(pt 120 408)
(pt 152 408)
)
(connector
(pt 120 440)
(pt 136 440)
)
(connector
(pt 120 456)
(pt 136 456)
)
(connector
(pt 16 264)
(pt 32 264)
)
(connector
(pt -192 648)
(pt 232 648)
)
(connector
(pt 168 280)
(pt 232 280)
)
(connector
(pt 232 648)
(pt 232 280)
)
(connector
(pt 504 232)
(pt 528 232)
)
(connector
(pt 504 264)
(pt 528 264)
)
(junction (pt -192 512))
(junction (pt 160 528))
(junction (pt 168 512))
(junction (pt 184 480))
(junction (pt 144 560))
(junction (pt 152 544))
(junction (pt 176 496))
(junction (pt 136 576))
(junction (pt 136 456))