📄 comp.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 -64 -8 104 8)
(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 8 -16 24))
)
(pin
(input)
(rect -24 280 144 296)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "fin" (rect 5 0 17 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 -72 296 -24 312))
)
(pin
(input)
(rect -56 168 112 184)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ad[7..0]" (rect 5 0 42 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 -80 248 -32 264))
)
(pin
(output)
(rect 624 200 800 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "scale[7..0]" (rect 90 0 141 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 752 232 800 344))
)
(pin
(output)
(rect 624 216 800 232)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dout[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 800 232 848 344))
)
(pin
(output)
(rect 456 0 632 16)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "clk_1Hz" (rect 90 0 128 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 632 16 680 32))
)
(pin
(output)
(rect 360 -72 536 -56)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "clk12M" (rect 90 0 124 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 640 -32 688 -16))
)
(symbol
(rect 392 176 568 368)
(text "display" (rect 5 0 40 12)(font "Arial" ))
(text "inst1" (rect 8 176 31 188)(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 "number_a[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_a[4..0]" (rect 21 43 95 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "number_b[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_b[4..0]" (rect 21 59 95 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "number_c[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_c[4..0]" (rect 21 75 95 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "number_d[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_d[4..0]" (rect 21 91 95 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "number_e[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_e[4..0]" (rect 21 107 95 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "number_f[4..0]" (rect 0 0 73 12)(font "Arial" ))
(text "number_f[4..0]" (rect 21 123 94 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "number_g[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_g[4..0]" (rect 21 139 95 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 0 160)
(input)
(text "number_h[4..0]" (rect 0 0 74 12)(font "Arial" ))
(text "number_h[4..0]" (rect 21 155 95 167)(font "Arial" ))
(line (pt 0 160)(pt 16 160)(line_width 3))
)
(port
(pt 176 32)
(output)
(text "scale[7..0]" (rect 0 0 51 12)(font "Arial" ))
(text "scale[7..0]" (rect 104 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(port
(pt 176 48)
(output)
(text "dout[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "dout[7..0]" (rect 108 43 155 55)(font "Arial" ))
(line (pt 176 48)(pt 160 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 160 176)(line_width 1))
)
)
(symbol
(rect 312 -32 456 32)
(text "clk_division" (rect 39 1 116 17)(font "Arial" (font_size 10)))
(text "inst7" (rect 8 48 31 60)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 144 40)
(output)
(text "q[0]" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "q[0]" (rect 107 34 128 48)(font "Arial" (font_size 8)))
(line (pt 144 40)(pt 128 40)(line_width 1))
)
(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 48)(line_width 1))
(line (pt 128 48)(pt 16 48)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 16 26)(pt 22 32)(line_width 1))
(line (pt 22 32)(pt 16 38)(line_width 1))
)
)
(symbol
(rect 144 256 288 384)
(text "frequence" (rect 5 0 54 12)(font "Arial" ))
(text "inst" (rect 8 112 25 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "fin" (rect 0 0 12 12)(font "Arial" ))
(text "fin" (rect 21 27 33 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk_1Hz" (rect 0 0 38 12)(font "Arial" ))
(text "clk_1Hz" (rect 21 43 59 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(output)
(text "douta[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "douta[4..0]" (rect 70 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(output)
(text "doutb[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutb[4..0]" (rect 70 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 3))
)
(port
(pt 144 64)
(output)
(text "doutc[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutc[4..0]" (rect 70 59 123 71)(font "Arial" ))
(line (pt 144 64)(pt 128 64)(line_width 3))
)
(port
(pt 144 80)
(output)
(text "doutd[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutd[4..0]" (rect 70 75 123 87)(font "Arial" ))
(line (pt 144 80)(pt 128 80)(line_width 3))
)
(drawing
(rectangle (rect 16 16 128 112)(line_width 1))
)
)
(symbol
(rect 144 -32 288 64)
(text "counter24" (rect 44 1 111 17)(font "Arial" (font_size 10)))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 144 56)
(output)
(text "q[23..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[23..0]" (rect 89 50 131 64)(font "Arial" (font_size 8)))
(line (pt 144 56)(pt 128 56)(line_width 3))
)
(port
(pt 144 72)
(output)
(text "cout" (rect 0 0 24 14)(font "Arial" (font_size 8)))
(text "cout" (rect 104 66 128 80)(font "Arial" (font_size 8)))
(line (pt 144 72)(pt 128 72)(line_width 1))
)
(drawing
(text "up counter" (rect 84 17 135 29)(font "Arial" ))
(text "modulus 12000000" (rect 50 27 142 39)(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 26)(pt 22 32)(line_width 1))
(line (pt 22 32)(pt 16 38)(line_width 1))
)
)
(symbol
(rect 112 128 280 256)
(text "ad" (rect 5 0 16 12)(font "Arial" ))
(text "inst2" (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 "data_ad[7..0]" (rect 0 0 64 12)(font "Arial" ))
(text "data_ad[7..0]" (rect 21 43 85 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "douta[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "douta[4..0]" (rect 94 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(port
(pt 168 48)
(output)
(text "doutb[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutb[4..0]" (rect 94 43 147 55)(font "Arial" ))
(line (pt 168 48)(pt 152 48)(line_width 3))
)
(port
(pt 168 64)
(output)
(text "doutc[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutc[4..0]" (rect 94 59 147 71)(font "Arial" ))
(line (pt 168 64)(pt 152 64)(line_width 3))
)
(port
(pt 168 80)
(output)
(text "doutd[4..0]" (rect 0 0 53 12)(font "Arial" ))
(text "doutd[4..0]" (rect 94 75 147 87)(font "Arial" ))
(line (pt 168 80)(pt 152 80)(line_width 3))
)
(drawing
(rectangle (rect 16 16 152 112)(line_width 1))
)
)
(symbol
(rect 152 -104 296 -40)
(text "clk_division" (rect 39 1 116 17)(font "Arial" (font_size 10)))
(text "inst8" (rect 8 48 31 60)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 144 40)
(output)
(text "q[0]" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "q[0]" (rect 107 34 128 48)(font "Arial" (font_size 8)))
(line (pt 144 40)(pt 128 40)(line_width 1))
)
(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 48)(line_width 1))
(line (pt 128 48)(pt 16 48)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 16 26)(pt 22 32)(line_width 1))
(line (pt 22 32)(pt 16 38)(line_width 1))
)
)
(connector
(pt 296 40)
(pt 288 40)
)
(connector
(pt 296 0)
(pt 312 0)
)
(connector
(pt 296 0)
(pt 296 40)
)
(connector
(pt 152 -72)
(pt 128 -72)
)
(connector
(pt 128 -72)
(pt 128 0)
)
(connector
(pt 104 0)
(pt 128 0)
)
(connector
(pt 128 0)
(pt 144 0)
)
(connector
(text "clk12M" (rect 304 -80 338 -68)(font "Arial" ))
(pt 296 -64)
(pt 360 -64)
)
(connector
(pt 624 208)
(pt 568 208)
(bus)
)
(connector
(pt 624 224)
(pt 568 224)
(bus)
)
(connector
(text "clk" (rect 368 192 382 204)(font "Arial" ))
(pt 360 208)
(pt 392 208)
)
(connector
(pt 288 288)
(pt 392 288)
(bus)
)
(connector
(pt 288 304)
(pt 392 304)
(bus)
)
(connector
(pt 288 320)
(pt 392 320)
(bus)
)
(connector
(pt 288 336)
(pt 392 336)
(bus)
)
(connector
(text "clk_1Hz" (rect 56 304 94 316)(font "Arial" ))
(pt 144 304)
(pt 96 304)
)
(connector
(text "clk12M" (rect 72 144 106 156)(font "Arial" ))
(pt 112 160)
(pt 64 160)
)
(connector
(pt 280 208)
(pt 296 208)
(bus)
)
(connector
(pt 296 208)
(pt 296 272)
(bus)
)
(connector
(pt 296 272)
(pt 392 272)
(bus)
)
(connector
(pt 280 192)
(pt 304 192)
(bus)
)
(connector
(pt 304 192)
(pt 304 256)
(bus)
)
(connector
(pt 304 256)
(pt 392 256)
(bus)
)
(connector
(pt 280 176)
(pt 312 176)
(bus)
)
(connector
(pt 312 176)
(pt 312 240)
(bus)
)
(connector
(pt 312 240)
(pt 392 240)
(bus)
)
(connector
(pt 280 160)
(pt 320 160)
(bus)
)
(connector
(pt 320 224)
(pt 320 160)
(bus)
)
(connector
(pt 320 224)
(pt 392 224)
(bus)
)
(junction (pt 128 0))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -