📄 seg7led.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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect -16 200 152 216)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 5 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 -64 216 -16 232))
)
(pin
(input)
(rect -16 224 152 240)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset" (rect 5 0 29 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 -64 240 -16 256))
)
(pin
(output)
(rect 688 288 864 304)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "78ledcom[3..0]" (rect 90 0 163 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 864 304 912 360))
)
(pin
(output)
(rect 688 272 864 288)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "78leddata[6..0]" (rect 90 0 163 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 864 288 912 392))
)
(symbol
(rect 472 248 656 344)
(text "segmain" (rect 5 0 46 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 43 33 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "datain[15..0]" (rect 0 0 61 12)(font "Arial" ))
(text "datain[15..0]" (rect 21 59 82 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 184 32)
(output)
(text "data_out[6..0]" (rect 0 0 68 12)(font "Arial" ))
(text "data_out[6..0]" (rect 95 27 163 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(port
(pt 184 48)
(output)
(text "ledcom[3..0]" (rect 0 0 61 12)(font "Arial" ))
(text "ledcom[3..0]" (rect 102 43 163 55)(font "Arial" ))
(line (pt 184 48)(pt 168 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 168 80)(line_width 1))
)
)
(symbol
(rect 296 256 440 352)
(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
(text "inst1" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sclr" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "sclr" (rect 20 26 41 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 58 55 72)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 144 56)
(output)
(text "q[15..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[15..0]" (rect 89 50 131 64)(font "Arial" (font_size 8)))
(line (pt 144 56)(pt 128 56)(line_width 3))
)
(drawing
(text "up counter" (rect 84 17 135 29)(font "Arial" ))
(line (pt 16 16)(pt 128 16)(line_width 1))
(line (pt 128 16)(pt 128 80)(line_width 1))
(line (pt 128 80)(pt 16 80)(line_width 1))
(line (pt 16 80)(pt 16 16)(line_width 1))
(line (pt 16 58)(pt 22 64)(line_width 1))
(line (pt 22 64)(pt 16 70)(line_width 1))
)
)
(symbol
(rect 184 288 280 384)
(text "int_div" (rect 5 0 38 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "clk_out" (rect 0 0 35 12)(font "Arial" ))
(text "clk_out" (rect 40 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
)
(symbol
(rect 272 240 304 288)
(text "NOT" (rect 22 1 32 21)(font "Arial" (font_size 6))(vertical))
(text "inst3" (rect -1 3 11 26)(font "Arial" )(vertical))
(port
(pt 16 0)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 13 2 25 13)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 0)(pt 16 13)(line_width 1))
)
(port
(pt 16 48)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 13 32 25 49)(font "Courier New" (bold))(vertical)(invisible))
(line (pt 16 39)(pt 16 48)(line_width 1))
)
(drawing
(line (pt 7 13)(pt 25 13)(line_width 1))
(line (pt 25 13)(pt 16 31)(line_width 1))
(line (pt 7 13)(pt 16 31)(line_width 1))
(circle (rect 12 31 20 39)(line_width 1))
)
(rotate270)
)
(connector
(pt 656 280)
(pt 688 280)
(bus)
)
(connector
(pt 656 296)
(pt 688 296)
(bus)
)
(connector
(pt 472 280)
(pt 456 280)
)
(connector
(pt 472 296)
(pt 448 296)
)
(connector
(pt 472 312)
(pt 440 312)
(bus)
)
(connector
(pt 456 280)
(pt 456 208)
)
(connector
(pt 448 296)
(pt 448 232)
)
(connector
(pt 296 288)
(pt 288 288)
)
(connector
(pt 296 320)
(pt 280 320)
)
(connector
(pt 184 320)
(pt 168 320)
)
(connector
(pt 168 320)
(pt 168 208)
)
(connector
(pt 152 208)
(pt 168 208)
)
(connector
(pt 168 208)
(pt 456 208)
)
(connector
(pt 288 240)
(pt 288 232)
)
(connector
(pt 152 232)
(pt 288 232)
)
(connector
(pt 288 232)
(pt 448 232)
)
(junction (pt 168 208))
(junction (pt 288 232))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -