📄 fpga64_top.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 -56 200 112 216)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sysclk" (rect 5 0 38 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 -160 184 -112 200))
)
(pin
(input)
(rect 40 344 208 360)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ioshift" (rect 5 0 35 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 -112 328 -64 344))
)
(pin
(input)
(rect 304 64 472 80)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "dma" (rect 5 0 26 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 232 64 280 80))
)
(pin
(input)
(rect 40 264 208 280)
(text "INPUT" (rect 134 0 162 10)(font "Arial" (font_size 6)))
(text "gbi[7]" (rect 5 0 32 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 93 12)(pt 118 12)(line_width 1))
(line (pt 93 4)(pt 118 4)(line_width 1))
(line (pt 122 8)(pt 169 8)(line_width 1))
(line (pt 93 12)(pt 93 4)(line_width 1))
(line (pt 118 4)(pt 122 8)(line_width 1))
(line (pt 118 12)(pt 122 8)(line_width 1))
)
(text "VCC" (rect 137 7 157 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -120 264 -72 280))
)
(pin
(input)
(rect 80 512 248 528)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset_n" (rect 5 0 41 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 -32 512 16 528))
)
(pin
(input)
(rect 80 544 248 560)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "kb_clk" (rect 5 0 36 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 -32 544 16 560))
)
(pin
(input)
(rect 80 568 248 584)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "kb_data" (rect 5 0 43 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 -32 568 16 584))
)
(pin
(input)
(rect 304 -32 472 -16)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "game" (rect 5 0 32 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 232 -32 280 -16))
)
(pin
(input)
(rect 304 -8 472 8)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "exrom" (rect 5 0 35 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 232 -8 280 8))
)
(pin
(output)
(rect 688 472 864 488)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "2MHz" (rect 90 0 117 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 472 936 488))
)
(pin
(output)
(rect -88 144 88 160)
(text "OUTPUT" (rect 139 0 177 10)(font "Arial" (font_size 6)))
(text "gb[6..0]" (rect 5 0 42 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 176 8)(pt 124 8)(line_width 1))
(line (pt 124 4)(pt 98 4)(line_width 1))
(line (pt 124 12)(pt 98 12)(line_width 1))
(line (pt 124 12)(pt 124 4)(line_width 1))
(line (pt 98 4)(pt 94 8)(line_width 1))
(line (pt 94 8)(pt 98 12)(line_width 1))
(line (pt 98 12)(pt 94 8)(line_width 1))
)
(flipy)
(annotation_block (location)(rect -160 40 -112 144))
)
(pin
(output)
(rect 1320 272 1496 288)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "be" (rect 90 0 101 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 1408 288 1456 304))
)
(pin
(output)
(rect 1320 88 1496 104)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ramcs" (rect 90 0 120 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 1512 88 1560 104))
)
(pin
(output)
(rect 1320 176 1496 192)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "wr" (rect 90 0 100 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 1408 192 1456 208))
)
(pin
(output)
(rect 1320 128 1496 144)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "a[16..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 1632 128 1680 368))
)
(pin
(output)
(rect 1320 240 1496 256)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "csel[3..0]" (rect 90 0 136 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 1512 240 1560 296))
)
(pin
(output)
(rect 936 320 1112 336)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dot_clk" (rect 90 0 125 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 1160 320 1208 336))
)
(pin
(output)
(rect 936 304 1112 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "cpu_clk" (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 1160 288 1208 304))
)
(pin
(output)
(rect 936 336 1112 352)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ba" (rect 90 0 101 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 1160 352 1208 368))
)
(pin
(bidir)
(rect 1320 144 1496 160)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "mdb[7..0]" (rect 90 0 137 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 56 4)(pt 78 4)(line_width 1))
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 56 12)(pt 78 12)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
(line (pt 56 4)(pt 52 8)(line_width 1))
(line (pt 52 8)(pt 56 12)(line_width 1))
)
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 1568 144 1616 256))
)
(pin
(bidir)
(rect 296 16 472 32)
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
(text "irq_n" (rect 5 0 28 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 120 4)(pt 98 4)(line_width 1))
(line (pt 176 8)(pt 124 8)(line_width 1))
(line (pt 120 12)(pt 98 12)(line_width 1))
(line (pt 98 4)(pt 94 8)(line_width 1))
(line (pt 98 12)(pt 94 8)(line_width 1))
(line (pt 120 4)(pt 124 8)(line_width 1))
(line (pt 124 8)(pt 120 12)(line_width 1))
)
(flipy)
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 232 16 280 32))
)
(pin
(bidir)
(rect 296 40 472 56)
(text "BIDIR" (rect 151 0 175 10)(font "Arial" (font_size 6)))
(text "nmi_n" (rect 5 0 34 12)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 120 4)(pt 98 4)(line_width 1))
(line (pt 176 8)(pt 124 8)(line_width 1))
(line (pt 120 12)(pt 98 12)(line_width 1))
(line (pt 98 4)(pt 94 8)(line_width 1))
(line (pt 98 12)(pt 94 8)(line_width 1))
(line (pt 120 4)(pt 124 8)(line_width 1))
(line (pt 124 8)(pt 120 12)(line_width 1))
)
(flipy)
(text "VCC" (rect 152 7 172 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 232 40 280 56))
)
(symbol
(rect 256 160 440 416)
(text "gbridge" (rect 5 0 40 12)(font "Arial" ))
(text "inst4" (rect 8 240 31 252)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "GBmode" (rect 0 0 42 12)(font "Arial" ))
(text "GBmode" (rect 21 27 63 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "sysclk" (rect 0 0 33 12)(font "Arial" ))
(text "sysclk" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "vid[15..0]" (rect 0 0 47 12)(font "Arial" ))
(text "vid[15..0]" (rect 21 59 68 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "vsync" (rect 0 0 31 12)(font "Arial" ))
(text "vsync" (rect 21 75 52 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "hsync" (rect 0 0 30 12)(font "Arial" ))
(text "hsync" (rect 21 91 51 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "gbi[7]" (rect 0 0 27 12)(font "Arial" ))
(text "gbi[7]" (rect 21 107 48 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "right[15..0]" (rect 0 0 53 12)(font "Arial" ))
(text "right[15..0]" (rect 21 123 74 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "left[15..0]" (rect 0 0 48 12)(font "Arial" ))
(text "left[15..0]" (rect 21 139 69 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -