📄 led_control.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-2006 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 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 0 72 168 88)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk_50m" (rect 5 0 46 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 -48 88 0 104))
)
(pin
(output)
(rect 480 152 656 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "oe" (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 720 320 768 336))
)
(pin
(output)
(rect 480 168 656 184)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dg" (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 712 344 768 360))
)
(pin
(output)
(rect 480 184 656 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dr" (rect 90 0 99 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 696 368 752 384))
)
(pin
(output)
(rect 480 200 656 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "clk" (rect 90 0 104 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 688 392 744 408))
)
(pin
(output)
(rect 480 216 656 232)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "stb" (rect 90 0 105 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 680 424 736 440))
)
(pin
(output)
(rect 480 232 656 248)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "sc[3..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 664 448 720 504))
)
(symbol
(rect 64 112 216 208)
(text "CUS_r_CORRECTION" (rect 5 0 118 12)(font "Arial" ))
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "dateg[7..0]" (rect 0 0 53 12)(font "Arial" ))
(text "dateg[7..0]" (rect 21 27 74 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "dater[7..0]" (rect 0 0 50 12)(font "Arial" ))
(text "dater[7..0]" (rect 21 43 71 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 152 32)
(output)
(text "dgin[7..0]" (rect 0 0 46 12)(font "Arial" ))
(text "dgin[7..0]" (rect 85 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "drin[7..0]" (rect 0 0 43 12)(font "Arial" ))
(text "drin[7..0]" (rect 88 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 728 112 888 192)
(text "rom_green" (rect 50 1 121 17)(font "Arial" (font_size 10)))
(text "inst2" (rect 8 64 31 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[13..0]" (rect 0 0 82 14)(font "Arial" (font_size 8)))
(text "address[13..0]" (rect 20 26 102 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 42 55 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 160 40)
(output)
(text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
(text "q[7..0]" (rect 111 34 146 48)(font "Arial" (font_size 8)))
(line (pt 160 40)(pt 144 40)(line_width 3))
)
(drawing
(line (pt 16 16)(pt 144 16)(line_width 1))
(line (pt 144 16)(pt 144 64)(line_width 1))
(line (pt 144 64)(pt 16 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 16 42)(pt 22 48)(line_width 1))
(line (pt 22 48)(pt 16 54)(line_width 1))
)
)
(symbol
(rect 728 216 888 296)
(text "rom_red" (rect 57 1 112 17)(font "Arial" (font_size 10)))
(text "inst1" (rect 8 64 31 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[13..0]" (rect 0 0 82 14)(font "Arial" (font_size 8)))
(text "address[13..0]" (rect 20 26 102 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 42 55 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 160 40)
(output)
(text "q[7..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
(text "q[7..0]" (rect 111 34 146 48)(font "Arial" (font_size 8)))
(line (pt 160 40)(pt 144 40)(line_width 3))
)
(drawing
(line (pt 16 16)(pt 144 16)(line_width 1))
(line (pt 144 16)(pt 144 64)(line_width 1))
(line (pt 144 64)(pt 16 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 16 42)(pt 22 48)(line_width 1))
(line (pt 22 48)(pt 16 54)(line_width 1))
)
)
(symbol
(rect 248 96 480 288)
(text "LED_SCAN" (rect 5 0 62 12)(font "Arial" ))
(text "inst" (rect 8 176 25 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLK_50M" (rect 0 0 47 12)(font "Arial" ))
(text "CLK_50M" (rect 21 27 68 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "DGIN[7..0]" (rect 0 0 54 12)(font "Arial" ))
(text "DGIN[7..0]" (rect 21 43 75 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "DRIN[7..0]" (rect 0 0 54 12)(font "Arial" ))
(text "DRIN[7..0]" (rect 21 59 75 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 232 32)
(output)
(text "READCLK_RAM" (rect 0 0 81 12)(font "Arial" ))
(text "READCLK_RAM" (rect 130 27 211 39)(font "Arial" ))
(line (pt 232 32)(pt 216 32)(line_width 1))
)
(port
(pt 232 48)
(output)
(text "READADDR_RAM[13..0]" (rect 0 0 123 12)(font "Arial" ))
(text "READADDR_RAM[13..0]" (rect 88 43 211 55)(font "Arial" ))
(line (pt 232 48)(pt 216 48)(line_width 3))
)
(port
(pt 232 64)
(output)
(text "OE" (rect 0 0 15 12)(font "Arial" ))
(text "OE" (rect 196 59 211 71)(font "Arial" ))
(line (pt 232 64)(pt 216 64)(line_width 1))
)
(port
(pt 232 80)
(output)
(text "DG" (rect 0 0 16 12)(font "Arial" ))
(text "DG" (rect 195 75 211 87)(font "Arial" ))
(line (pt 232 80)(pt 216 80)(line_width 1))
)
(port
(pt 232 96)
(output)
(text "DR" (rect 0 0 16 12)(font "Arial" ))
(text "DR" (rect 195 91 211 103)(font "Arial" ))
(line (pt 232 96)(pt 216 96)(line_width 1))
)
(port
(pt 232 112)
(output)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 190 107 211 119)(font "Arial" ))
(line (pt 232 112)(pt 216 112)(line_width 1))
)
(port
(pt 232 128)
(output)
(text "STB" (rect 0 0 20 12)(font "Arial" ))
(text "STB" (rect 191 123 211 135)(font "Arial" ))
(line (pt 232 128)(pt 216 128)(line_width 1))
)
(port
(pt 232 144)
(output)
(text "SC[3..0]" (rect 0 0 41 12)(font "Arial" ))
(text "SC[3..0]" (rect 170 139 211 151)(font "Arial" ))
(line (pt 232 144)(pt 216 144)(line_width 3))
)
(drawing
(rectangle (rect 16 16 216 176)(line_width 1))
)
)
(connector
(pt 216 144)
(pt 248 144)
(bus)
)
(connector
(pt 216 160)
(pt 248 160)
(bus)
)
(connector
(pt 64 144)
(pt 32 144)
(bus)
)
(connector
(pt 64 160)
(pt 32 160)
(bus)
)
(connector
(pt 248 128)
(pt 224 128)
)
(connector
(pt 480 128)
(pt 696 128)
)
(connector
(pt 664 144)
(pt 664 248)
(bus)
)
(connector
(pt 696 160)
(pt 728 160)
)
(connector
(pt 664 248)
(pt 728 248)
(bus)
)
(connector
(pt 696 264)
(pt 728 264)
)
(connector
(pt 480 144)
(pt 664 144)
(bus)
)
(connector
(pt 664 144)
(pt 728 144)
(bus)
)
(connector
(pt 696 128)
(pt 696 160)
)
(connector
(pt 696 160)
(pt 696 264)
)
(connector
(pt 888 152)
(pt 904 152)
(bus)
)
(connector
(pt 888 256)
(pt 904 256)
(bus)
)
(connector
(pt 224 80)
(pt 168 80)
)
(connector
(pt 224 128)
(pt 224 80)
)
(connector
(pt 32 144)
(pt 32 24)
(bus)
)
(connector
(pt 904 152)
(pt 904 24)
(bus)
)
(connector
(pt 32 24)
(pt 904 24)
(bus)
)
(connector
(pt 32 160)
(pt 32 304)
(bus)
)
(connector
(pt 32 304)
(pt 904 304)
(bus)
)
(connector
(pt 904 256)
(pt 904 304)
(bus)
)
(junction (pt 664 144))
(junction (pt 696 160))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -