📄 block2.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 -312 -120 -144 -104)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 9 0 23 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 -360 -104 -312 -88))
)
(pin
(input)
(rect -232 -40 -64 -24)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "xinhao" (rect 9 0 40 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 -288 -24 -232 -8))
)
(pin
(output)
(rect 1120 -152 1296 -136)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "setg[7..0]" (rect 90 0 137 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 1296 -136 1344 -24))
)
(pin
(output)
(rect 840 128 1016 144)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Hz" (rect 90 0 102 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 1016 144 1072 160))
)
(pin
(output)
(rect 840 160 1016 176)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "OV" (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 1016 176 1072 192))
)
(pin
(output)
(rect 1128 -40 1304 -24)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "scan[2..0]" (rect 90 0 139 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 1304 -24 1360 24))
)
(symbol
(rect 496 -160 680 0)
(text "fenwei" (rect 5 0 36 12)(font "Arial" ))
(text "inst3" (rect 8 144 31 156)(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 "dis[WIDTH-1..0]" (rect 0 0 80 12)(font "Arial" ))
(text "dis[WIDTH-1..0]" (rect 21 43 101 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 184 32)
(output)
(text "ledg[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "ledg[3..0]" (rect 117 27 163 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(port
(pt 184 48)
(output)
(text "leds[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "leds[3..0]" (rect 117 43 163 55)(font "Arial" ))
(line (pt 184 48)(pt 168 48)(line_width 3))
)
(port
(pt 184 64)
(output)
(text "ledb[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "ledb[3..0]" (rect 117 59 163 71)(font "Arial" ))
(line (pt 184 64)(pt 168 64)(line_width 3))
)
(port
(pt 184 80)
(output)
(text "op[2..0]" (rect 0 0 37 12)(font "Arial" ))
(text "op[2..0]" (rect 126 75 163 87)(font "Arial" ))
(line (pt 184 80)(pt 168 80)(line_width 3))
)
(port
(pt 184 96)
(output)
(text "Hz" (rect 0 0 12 12)(font "Arial" ))
(text "Hz" (rect 151 91 163 103)(font "Arial" ))
(line (pt 184 96)(pt 168 96)(line_width 1))
)
(port
(pt 184 112)
(output)
(text "ov" (rect 0 0 12 12)(font "Arial" ))
(text "ov" (rect 151 107 163 119)(font "Arial" ))
(line (pt 184 112)(pt 168 112)(line_width 1))
)
(parameter
"WIDTH"
"32"
""
)
(drawing
(rectangle (rect 16 16 168 144)(line_width 1))
)
(annotation_block (parameter)(rect 504 -192 608 -160))
)
(symbol
(rect 1000 -176 1136 -80)
(text "dec" (rect 5 0 22 12)(font "Arial" ))
(text "inst7" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "cin[3..0]" (rect 0 0 40 12)(font "Arial" ))
(text "cin[3..0]" (rect 21 27 61 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "op" (rect 0 0 11 12)(font "Arial" ))
(text "op" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "seg[7..0]" (rect 0 0 43 12)(font "Arial" ))
(text "seg[7..0]" (rect 72 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 320 -144 480 -48)
(text "count" (rect 5 0 32 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clkout" (rect 0 0 29 12)(font "Arial" ))
(text "clkout" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "bcxh" (rect 0 0 23 12)(font "Arial" ))
(text "bcxh" (rect 21 43 44 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 160 32)
(output)
(text "dis[WIDTH-1..0]" (rect 0 0 80 12)(font "Arial" ))
(text "dis[WIDTH-1..0]" (rect 59 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(parameter
"WIDTH"
"32"
""
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
(annotation_block (parameter)(rect 320 -176 424 -144))
)
(symbol
(rect 192 -144 288 -48)
(text "fenpin" (rect 5 0 35 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 96 32)
(output)
(text "clkout" (rect 0 0 29 12)(font "Arial" ))
(text "clkout" (rect 46 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(parameter
"WIDTH"
"32"
""
)
(parameter
"N"
"2000"
""
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
(annotation_block (parameter)(rect 192 -192 296 -144))
)
(symbol
(rect 776 -176 928 -48)
(text "scan" (rect 5 0 28 12)(font "Arial" ))
(text "inst4" (rect 8 112 31 124)(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 "ledg[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "ledg[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "leds[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "leds[3..0]" (rect 21 59 67 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "ledb[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "ledb[3..0]" (rect 21 75 67 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "op[2..0]" (rect 0 0 37 12)(font "Arial" ))
(text "op[2..0]" (rect 21 91 58 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 152 32)
(output)
(text "BCDo[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "BCDo[3..0]" (rect 76 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "BIT[2..0]" (rect 0 0 42 12)(font "Arial" ))
(text "BIT[2..0]" (rect 89 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 3))
)
(port
(pt 152 64)
(output)
(text "dp" (rect 0 0 11 12)(font "Arial" ))
(text "dp" (rect 120 59 131 71)(font "Arial" ))
(line (pt 152 64)(pt 136 64)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 112)(line_width 1))
)
)
(symbol
(rect 16 -144 112 -48)
(text "fenpin" (rect 5 0 35 12)(font "Arial" ))
(text "inst5" (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 "clkout" (rect 0 0 29 12)(font "Arial" ))
(text "clkout" (rect 46 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(parameter
"WIDTH"
"32"
""
)
(parameter
"N"
"50000"
""
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
(annotation_block (parameter)(rect 16 -192 120 -144))
)
(symbol
(rect 736 120 784 152)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst6" (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 736 152 784 184)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst8" (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 184 24 280 120)
(text "fenpin" (rect 5 0 35 12)(font "Arial" ))
(text "inst1" (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 "clkout" (rect 0 0 29 12)(font "Arial" ))
(text "clkout" (rect 46 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(parameter
"WIDTH"
"32"
""
)
(parameter
"N"
"7000"
""
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
(annotation_block (parameter)(rect 184 -24 288 24))
)
(connector
(pt 288 -112)
(pt 320 -112)
)
(connector
(pt 480 -112)
(pt 496 -112)
(bus)
)
(connector
(pt 488 -128)
(pt 496 -128)
)
(connector
(pt 488 -232)
(pt 488 -128)
)
(connector
(pt 320 -96)
(pt 296 -96)
)
(connector
(pt 680 -128)
(pt 776 -128)
(bus)
)
(connector
(pt 680 -112)
(pt 776 -112)
(bus)
)
(connector
(pt 680 -96)
(pt 776 -96)
(bus)
)
(connector
(text "op[2..0]" (rect 706 -96 743 -84)(font "Arial" ))
(pt 680 -80)
(pt 776 -80)
(bus)
)
(connector
(pt 712 -64)
(pt 712 136)
)
(connector
(pt 680 -64)
(pt 712 -64)
)
(connector
(pt 776 -144)
(pt 704 -144)
)
(connector
(pt 704 -232)
(pt 704 -144)
)
(connector
(pt 168 -232)
(pt 488 -232)
)
(connector
(pt 488 -232)
(pt 704 -232)
)
(connector
(pt 1120 -144)
(pt 1136 -144)
(bus)
)
(connector
(pt 928 -144)
(pt 1000 -144)
(bus)
)
(connector
(pt 928 -112)
(pt 984 -112)
)
(connector
(pt 984 -112)
(pt 984 -128)
)
(connector
(pt 1000 -128)
(pt 984 -128)
)
(connector
(pt 928 -128)
(pt 960 -128)
(bus)
)
(connector
(pt 960 -32)
(pt 960 -128)
(bus)
)
(connector
(pt 960 -32)
(pt 1128 -32)
(bus)
)
(connector
(pt 296 -96)
(pt 296 56)
)
(connector
(pt 296 56)
(pt 280 56)
)
(connector
(pt 168 -232)
(pt 168 -112)
)
(connector
(pt 112 -112)
(pt 168 -112)
)
(connector
(pt 168 -112)
(pt 192 -112)
)
(connector
(pt -24 56)
(pt 184 56)
)
(connector
(pt -24 56)
(pt -24 -112)
)
(connector
(pt -144 -112)
(pt -24 -112)
)
(connector
(pt -24 -112)
(pt 16 -112)
)
(connector
(pt 784 136)
(pt 840 136)
)
(connector
(pt 736 136)
(pt 712 136)
)
(connector
(pt 680 -48)
(pt 688 -48)
)
(connector
(pt 688 -48)
(pt 688 168)
)
(connector
(pt 688 168)
(pt 736 168)
)
(connector
(pt 784 168)
(pt 840 168)
)
(junction (pt 168 -112))
(junction (pt 488 -232))
(junction (pt -24 -112))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -