📄 ram.bdf
字号:
/*
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-2007 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.3"))
(pin
(input)
(rect 80 88 248 104)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "data[15..0]" (rect 9 0 62 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 24 -152 72 72))
)
(pin
(input)
(rect -280 208 -112 224)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ce" (rect 9 0 20 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -328 208 -280 224))
)
(pin
(input)
(rect -72 264 96 280)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "out_clk" (rect 9 0 44 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -120 280 -72 296))
)
(pin
(input)
(rect -280 120 -112 136)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "wr" (rect 9 0 19 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -328 120 -280 136))
)
(pin
(input)
(rect 80 104 248 120)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "addr[7..0]" (rect 9 0 56 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -24 -32 24 72))
)
(pin
(output)
(rect 712 144 888 160)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "q[15..0]" (rect 90 0 127 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
(annotation_block (location)(rect 888 160 936 384))
)
(symbol
(rect 392 64 648 224)
(text "memory" (rect 105 1 160 17)(font "Arial" (font_size 10)))
(text "inst" (rect 8 144 25 156)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data[15..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
(text "data[15..0]" (rect 4 19 64 33)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 112 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "wraddress[7..0]" (rect 0 0 92 14)(font "Arial" (font_size 8)))
(text "wraddress[7..0]" (rect 4 35 96 49)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 112 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "wren" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "wren" (rect 4 51 34 65)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 112 64)(line_width 1))
)
(port
(pt 0 88)
(input)
(text "rdaddress[7..0]" (rect 0 0 87 14)(font "Arial" (font_size 8)))
(text "rdaddress[7..0]" (rect 4 75 91 89)(font "Arial" (font_size 8)))
(line (pt 0 88)(pt 112 88)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "wrclock" (rect 0 0 46 14)(font "Arial" (font_size 8)))
(text "wrclock" (rect 4 99 50 113)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 98 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "rdclock" (rect 0 0 41 14)(font "Arial" (font_size 8)))
(text "rdclock" (rect 4 115 45 129)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 176 128)(line_width 1))
)
(port
(pt 256 88)
(output)
(text "q[15..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[15..0]" (rect 217 75 259 89)(font "Arial" (font_size 8)))
(line (pt 256 88)(pt 192 88)(line_width 3))
)
(drawing
(text "256 Word(s)" (rect 136 34 148 94)(font "Arial" )(vertical))
(text "RAM" (rect 149 50 161 73)(font "Arial" )(vertical))
(text "Block Type: AUTO" (rect 41 140 133 152)(font "Arial" ))
(line (pt 128 24)(pt 168 24)(line_width 1))
(line (pt 168 24)(pt 168 96)(line_width 1))
(line (pt 168 96)(pt 128 96)(line_width 1))
(line (pt 128 96)(pt 128 24)(line_width 1))
(line (pt 112 27)(pt 120 27)(line_width 1))
(line (pt 120 27)(pt 120 39)(line_width 1))
(line (pt 120 39)(pt 112 39)(line_width 1))
(line (pt 112 39)(pt 112 27)(line_width 1))
(line (pt 112 34)(pt 114 36)(line_width 1))
(line (pt 114 36)(pt 112 38)(line_width 1))
(line (pt 98 36)(pt 112 36)(line_width 1))
(line (pt 120 32)(pt 128 32)(line_width 3))
(line (pt 112 43)(pt 120 43)(line_width 1))
(line (pt 120 43)(pt 120 55)(line_width 1))
(line (pt 120 55)(pt 112 55)(line_width 1))
(line (pt 112 55)(pt 112 43)(line_width 1))
(line (pt 112 50)(pt 114 52)(line_width 1))
(line (pt 114 52)(pt 112 54)(line_width 1))
(line (pt 98 52)(pt 112 52)(line_width 1))
(line (pt 120 48)(pt 128 48)(line_width 3))
(line (pt 112 59)(pt 120 59)(line_width 1))
(line (pt 120 59)(pt 120 71)(line_width 1))
(line (pt 120 71)(pt 112 71)(line_width 1))
(line (pt 112 71)(pt 112 59)(line_width 1))
(line (pt 112 66)(pt 114 68)(line_width 1))
(line (pt 114 68)(pt 112 70)(line_width 1))
(line (pt 98 68)(pt 112 68)(line_width 1))
(line (pt 120 64)(pt 128 64)(line_width 1))
(line (pt 112 83)(pt 120 83)(line_width 1))
(line (pt 120 83)(pt 120 95)(line_width 1))
(line (pt 120 95)(pt 112 95)(line_width 1))
(line (pt 112 95)(pt 112 83)(line_width 1))
(line (pt 112 90)(pt 114 92)(line_width 1))
(line (pt 114 92)(pt 112 94)(line_width 1))
(line (pt 104 92)(pt 112 92)(line_width 1))
(line (pt 120 88)(pt 128 88)(line_width 3))
(line (pt 98 36)(pt 98 113)(line_width 1))
(line (pt 104 92)(pt 104 129)(line_width 1))
(line (pt 176 92)(pt 176 129)(line_width 1))
(line (pt 184 83)(pt 192 83)(line_width 1))
(line (pt 192 83)(pt 192 95)(line_width 1))
(line (pt 192 95)(pt 184 95)(line_width 1))
(line (pt 184 95)(pt 184 83)(line_width 1))
(line (pt 184 90)(pt 186 92)(line_width 1))
(line (pt 186 92)(pt 184 94)(line_width 1))
(line (pt 176 92)(pt 184 92)(line_width 1))
(line (pt 168 88)(pt 184 88)(line_width 3))
)
)
(symbol
(rect 160 240 296 336)
(text "add" (rect 5 0 22 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "out_clk" (rect 0 0 35 12)(font "Arial" ))
(text "out_clk" (rect 21 27 56 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "addr[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "addr[7..0]" (rect 68 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect -112 200 -64 232)
(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)(line_width 1))
)
(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)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect -16 152 48 200)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst3" (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)(line_width 1))
)
(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)(line_width 1))
)
(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)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(connector
(pt 248 112)
(pt 392 112)
(bus)
)
(connector
(pt 248 96)
(pt 392 96)
(bus)
)
(connector
(pt 648 152)
(pt 712 152)
(bus)
)
(connector
(pt 352 272)
(pt 352 152)
(bus)
)
(connector
(pt 352 152)
(pt 392 152)
(bus)
)
(connector
(pt 296 272)
(pt 352 272)
(bus)
)
(connector
(pt 128 192)
(pt 392 192)
)
(connector
(pt 128 192)
(pt 128 272)
)
(connector
(pt 96 272)
(pt 128 272)
)
(connector
(pt 128 272)
(pt 160 272)
)
(connector
(pt -40 168)
(pt -16 168)
)
(connector
(pt -16 184)
(pt -40 184)
)
(connector
(pt -40 184)
(pt -40 216)
)
(connector
(pt -40 216)
(pt -64 216)
)
(connector
(pt 48 176)
(pt 392 176)
)
(connector
(pt -40 168)
(pt -40 128)
)
(connector
(pt -112 128)
(pt -40 128)
)
(connector
(pt -40 128)
(pt 392 128)
)
(junction (pt 128 272))
(junction (pt -40 128))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -