456 lines
9.7 KiB
Plaintext
456 lines
9.7 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 56 256 224 272)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "Get Data Clk e" (rect 5 0 80 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 48 208 224 224)
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
|
(text "Set_Data Clk e" (rect 5 0 81 12)(font "Arial" ))
|
|
(pt 176 8)
|
|
(drawing
|
|
(line (pt 92 12)(pt 117 12))
|
|
(line (pt 92 4)(pt 117 4))
|
|
(line (pt 121 8)(pt 176 8))
|
|
(line (pt 92 12)(pt 92 4))
|
|
(line (pt 117 4)(pt 121 8))
|
|
(line (pt 117 12)(pt 121 8))
|
|
)
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 32 288 224 304)
|
|
(text "INPUT" (rect 149 0 177 10)(font "Arial" (font_size 6)))
|
|
(text "Get-Set Data Clk s" (rect 5 0 100 12)(font "Arial" ))
|
|
(pt 192 8)
|
|
(drawing
|
|
(line (pt 108 12)(pt 133 12))
|
|
(line (pt 108 4)(pt 133 4))
|
|
(line (pt 137 8)(pt 192 8))
|
|
(line (pt 108 12)(pt 108 4))
|
|
(line (pt 133 4)(pt 137 8))
|
|
(line (pt 133 12)(pt 137 8))
|
|
)
|
|
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 40 160 224 176)
|
|
(text "INPUT" (rect 141 0 169 10)(font "Arial" (font_size 6)))
|
|
(text "Set Address Clk s" (rect 5 0 95 12)(font "Arial" ))
|
|
(pt 184 8)
|
|
(drawing
|
|
(line (pt 100 12)(pt 125 12))
|
|
(line (pt 100 4)(pt 125 4))
|
|
(line (pt 129 8)(pt 184 8))
|
|
(line (pt 100 12)(pt 100 4))
|
|
(line (pt 125 4)(pt 129 8))
|
|
(line (pt 125 12)(pt 129 8))
|
|
)
|
|
(text "VCC" (rect 144 7 164 17)(font "Arial" (font_size 6)))
|
|
)
|
|
(pin
|
|
(bidir)
|
|
(rect 48 320 224 336)
|
|
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
|
|
(text "Data[7..0]" (rect 37 0 86 12)(font "Arial" ))
|
|
(pt 176 8)
|
|
(drawing
|
|
(line (pt 120 4)(pt 98 4))
|
|
(line (pt 176 8)(pt 124 8))
|
|
(line (pt 120 12)(pt 98 12))
|
|
(line (pt 98 4)(pt 94 8))
|
|
(line (pt 98 12)(pt 94 8))
|
|
(line (pt 120 4)(pt 124 8))
|
|
(line (pt 124 8)(pt 120 12))
|
|
)
|
|
(flipy)
|
|
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect 224 336 280 352))
|
|
)
|
|
(symbol
|
|
(rect 528 248 744 376)
|
|
(text "ram1" (rect 94 0 128 16)(font "Arial" (font_size 10)))
|
|
(text "inst5" (rect 8 112 31 124)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "data[7..0]" (rect 0 0 53 14)(font "Arial" (font_size 8)))
|
|
(text "data[7..0]" (rect 4 18 57 32)(font "Arial" (font_size 8)))
|
|
(line (pt 0 32)(pt 88 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "wren" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
|
(text "wren" (rect 4 34 34 48)(font "Arial" (font_size 8)))
|
|
(line (pt 0 48)(pt 88 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "address[7..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
|
|
(text "address[7..0]" (rect 4 50 79 64)(font "Arial" (font_size 8)))
|
|
(line (pt 0 64)(pt 88 64)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 112)
|
|
(input)
|
|
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
|
(text "clock" (rect 4 98 33 112)(font "Arial" (font_size 8)))
|
|
(line (pt 0 112)(pt 80 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 183 18 218 32)(font "Arial" (font_size 8)))
|
|
(line (pt 216 32)(pt 136 32)(line_width 3))
|
|
)
|
|
(drawing
|
|
(text "8 bits" (rect 109 23 121 50)(font "Arial" )(vertical))
|
|
(text "256 words" (rect 120 13 132 62)(font "Arial" )(vertical))
|
|
(text "Block type: AUTO" (rect 48 114 137 126)(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 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 88 43)(pt 96 43))
|
|
(line (pt 96 43)(pt 96 55))
|
|
(line (pt 96 55)(pt 88 55))
|
|
(line (pt 88 55)(pt 88 43))
|
|
(line (pt 88 50)(pt 90 52))
|
|
(line (pt 90 52)(pt 88 54))
|
|
(line (pt 80 52)(pt 88 52))
|
|
(line (pt 96 48)(pt 104 48))
|
|
(line (pt 88 59)(pt 96 59))
|
|
(line (pt 96 59)(pt 96 71))
|
|
(line (pt 96 71)(pt 88 71))
|
|
(line (pt 88 71)(pt 88 59))
|
|
(line (pt 88 66)(pt 90 68))
|
|
(line (pt 90 68)(pt 88 70))
|
|
(line (pt 80 68)(pt 88 68))
|
|
(line (pt 96 64)(pt 104 64)(line_width 3))
|
|
(line (pt 80 112)(pt 80 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 296 264 496 360)
|
|
(text "8bit_memory" (rect 5 0 76 14)(font "Arial" (font_size 8)))
|
|
(text "mar_reg" (rect 8 80 48 92)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
|
(text "Enable" (rect 21 27 58 41)(font "Arial" (font_size 8)))
|
|
(line (pt 0 32)(pt 16 32))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(input)
|
|
(text "Set" (rect 0 0 18 14)(font "Arial" (font_size 8)))
|
|
(text "Set" (rect 21 43 39 57)(font "Arial" (font_size 8)))
|
|
(line (pt 0 48)(pt 16 48))
|
|
)
|
|
(port
|
|
(pt 0 64)
|
|
(input)
|
|
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
|
(text "Data[7..0]" (rect 21 59 75 73)(font "Arial" (font_size 8)))
|
|
(line (pt 0 64)(pt 16 64)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 200 32)
|
|
(output)
|
|
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
|
(text "Out[7..0]" (rect 131 27 179 41)(font "Arial" (font_size 8)))
|
|
(line (pt 200 32)(pt 184 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 200 48)
|
|
(output)
|
|
(text "savedData[7..0]" (rect 0 0 89 14)(font "Arial" (font_size 8)))
|
|
(text "savedData[7..0]" (rect 90 43 179 57)(font "Arial" (font_size 8)))
|
|
(line (pt 200 48)(pt 184 48)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 184 80))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 520 128 664 224)
|
|
(text "Enabler" (rect 97 0 139 14)(font "Arial" (font_size 8)))
|
|
(text "inst14" (rect 107 80 136 92)(font "Arial" ))
|
|
(port
|
|
(pt 144 32)
|
|
(input)
|
|
(text "Enable" (rect 0 0 37 14)(font "Arial" (font_size 8)))
|
|
(text "Enable" (rect 86 27 123 41)(font "Arial" (font_size 8)))
|
|
(line (pt 144 32)(pt 128 32))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(bidir)
|
|
(text "Out[7..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
|
|
(text "Out[7..0]" (rect 21 27 69 41)(font "Arial" (font_size 8)))
|
|
(line (pt 0 32)(pt 16 32)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 48)
|
|
(bidir)
|
|
(text "Data[7..0]" (rect 0 0 54 14)(font "Arial" (font_size 8)))
|
|
(text "Data[7..0]" (rect 21 43 75 57)(font "Arial" (font_size 8)))
|
|
(line (pt 0 48)(pt 16 48)(line_width 3))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 128 80))
|
|
)
|
|
(flipy)
|
|
)
|
|
(connector
|
|
(pt 528 360)
|
|
(pt 520 360)
|
|
)
|
|
(connector
|
|
(pt 504 280)
|
|
(pt 528 280)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 504 296)
|
|
(pt 528 296)
|
|
)
|
|
(connector
|
|
(pt 496 312)
|
|
(pt 528 312)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 744 280)
|
|
(pt 752 280)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 504 248)
|
|
(pt 264 248)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 752 280)
|
|
(pt 752 232)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 512 232)
|
|
(pt 752 232)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 512 232)
|
|
(pt 512 176)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 520 176)
|
|
(pt 512 176)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 520 160)
|
|
(pt 504 160)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 504 160)
|
|
(pt 504 248)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 504 248)
|
|
(pt 504 280)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 264 248)
|
|
(pt 264 328)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 72 496)
|
|
(pt 120 496)
|
|
)
|
|
(connector
|
|
(pt 120 496)
|
|
(pt 120 464)
|
|
)
|
|
(connector
|
|
(pt 120 464)
|
|
(pt 168 464)
|
|
)
|
|
(connector
|
|
(pt 168 464)
|
|
(pt 168 496)
|
|
)
|
|
(connector
|
|
(pt 168 496)
|
|
(pt 224 496)
|
|
)
|
|
(connector
|
|
(pt 72 544)
|
|
(pt 136 544)
|
|
)
|
|
(connector
|
|
(pt 136 544)
|
|
(pt 136 512)
|
|
)
|
|
(connector
|
|
(pt 136 512)
|
|
(pt 152 512)
|
|
)
|
|
(connector
|
|
(pt 152 512)
|
|
(pt 152 544)
|
|
)
|
|
(connector
|
|
(pt 152 544)
|
|
(pt 216 544)
|
|
)
|
|
(connector
|
|
(pt 512 240)
|
|
(pt 512 376)
|
|
)
|
|
(connector
|
|
(pt 512 376)
|
|
(pt 240 376)
|
|
)
|
|
(connector
|
|
(pt 224 296)
|
|
(pt 232 296)
|
|
)
|
|
(connector
|
|
(pt 248 216)
|
|
(pt 224 216)
|
|
)
|
|
(connector
|
|
(pt 240 264)
|
|
(pt 224 264)
|
|
)
|
|
(connector
|
|
(pt 240 376)
|
|
(pt 240 264)
|
|
)
|
|
(connector
|
|
(pt 504 296)
|
|
(pt 504 368)
|
|
)
|
|
(connector
|
|
(pt 504 368)
|
|
(pt 248 368)
|
|
)
|
|
(connector
|
|
(pt 248 216)
|
|
(pt 248 368)
|
|
)
|
|
(connector
|
|
(pt 520 360)
|
|
(pt 520 384)
|
|
)
|
|
(connector
|
|
(pt 520 384)
|
|
(pt 232 384)
|
|
)
|
|
(connector
|
|
(pt 232 296)
|
|
(pt 232 384)
|
|
)
|
|
(connector
|
|
(pt 296 312)
|
|
(pt 256 312)
|
|
)
|
|
(connector
|
|
(pt 224 168)
|
|
(pt 256 168)
|
|
)
|
|
(connector
|
|
(pt 256 312)
|
|
(pt 256 168)
|
|
)
|
|
(connector
|
|
(pt 224 328)
|
|
(pt 264 328)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 264 328)
|
|
(pt 296 328)
|
|
(bus)
|
|
)
|
|
(connector
|
|
(pt 512 240)
|
|
(pt 672 240)
|
|
)
|
|
(connector
|
|
(pt 672 240)
|
|
(pt 672 160)
|
|
)
|
|
(connector
|
|
(pt 664 160)
|
|
(pt 672 160)
|
|
)
|
|
(junction (pt 504 248))
|
|
(junction (pt 264 328))
|
|
(text "Clk e" (rect 56 472 83 486)(font "Arial" (font_size 8)))
|
|
(text "Clk s" (rect 56 528 83 542)(font "Arial" (font_size 8)))
|