266 lines
6.6 KiB
Plaintext
266 lines
6.6 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 64 176 232 192)
|
|
(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)))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 584 160 760 176)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Clk_e" (rect 90 0 118 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 584 232 760 248)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "Clk_s" (rect 90 0 118 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 240 152 384 216)
|
|
(text "clockDevider" (rect 37 0 123 16)(font "Arial" (font_size 10)))
|
|
(text "inst" (rect 8 48 25 60)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
|
(text "clock" (rect 26 25 55 39)(font "Arial" (font_size 8)))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 144 40)
|
|
(output)
|
|
(text "q[25..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
|
|
(text "q[25..0]" (rect 89 33 131 47)(font "Arial" (font_size 8)))
|
|
(line (pt 144 40)(pt 128 40)(line_width 3))
|
|
)
|
|
(drawing
|
|
(text "up counter" (rect 84 22 135 34)(font "Arial" ))
|
|
(line (pt 16 16)(pt 16 48))
|
|
(line (pt 16 16)(pt 128 16))
|
|
(line (pt 16 48)(pt 128 48))
|
|
(line (pt 128 16)(pt 128 48))
|
|
(line (pt 0 0)(pt 146 0))
|
|
(line (pt 146 0)(pt 146 66))
|
|
(line (pt 0 66)(pt 146 66))
|
|
(line (pt 0 0)(pt 0 66))
|
|
(line (pt 16 26)(pt 22 32))
|
|
(line (pt 22 32)(pt 16 38))
|
|
(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 504 160 568 208)
|
|
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
|
|
(text "inst1" (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 504 224 568 272)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst2" (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 440 240 488 272)
|
|
(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))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 384 192)
|
|
(pt 400 192)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 240 184)
|
|
(pt 232 184)
|
|
)
|
|
(connector
|
|
(pt 568 240)
|
|
(pt 568 248)
|
|
)
|
|
(connector
|
|
(pt 584 168)
|
|
(pt 576 168)
|
|
)
|
|
(connector
|
|
(pt 576 168)
|
|
(pt 576 184)
|
|
)
|
|
(connector
|
|
(pt 576 184)
|
|
(pt 568 184)
|
|
)
|
|
(connector
|
|
(pt 400 192)
|
|
(pt 400 176)
|
|
)
|
|
(connector
|
|
(pt 568 240)
|
|
(pt 584 240)
|
|
)
|
|
(connector
|
|
(text "clk[23]" (rect 464 160 497 172)(font "Arial" ))
|
|
(pt 400 176)
|
|
(pt 504 176)
|
|
)
|
|
(connector
|
|
(text "clk[24]" (rect 462 176 495 188)(font "Arial" ))
|
|
(pt 400 192)
|
|
(pt 504 192)
|
|
)
|
|
(connector
|
|
(text "clk[24]" (rect 458 224 491 236)(font "Arial" ))
|
|
(pt 400 240)
|
|
(pt 504 240)
|
|
)
|
|
(connector
|
|
(pt 504 256)
|
|
(pt 488 256)
|
|
)
|
|
(connector
|
|
(text "Clk[25..0]" (rect 376 207 388 255)(font "Arial" )(vertical))
|
|
(pt 400 192)
|
|
(pt 400 240)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 400 240)
|
|
(pt 400 256)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(text "clk[23]" (rect 400 264 433 276)(font "Arial" ))
|
|
(pt 400 256)
|
|
(pt 440 256)
|
|
)
|
|
(junction (pt 400 192))
|
|
(junction (pt 400 240))
|