📄 deccounter.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 -88 120 80 136)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLKK" (rect 5 0 33 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)))
)
(pin
(input)
(rect -88 24 80 40)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLK" (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)))
)
(pin
(output)
(rect 736 72 912 88)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "OUT0[3..0]" (rect 90 0 144 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))
)
)
(pin
(output)
(rect 736 200 912 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "OUT1[3..0]" (rect 90 0 144 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))
)
)
(pin
(output)
(rect 736 304 912 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "OUT2[3..0]" (rect 90 0 144 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))
)
)
(pin
(output)
(rect 736 424 912 440)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "OUT3[3..0]" (rect 90 0 144 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))
)
)
(symbol
(rect 536 48 696 144)
(text "REG4B" (rect 5 0 41 12)(font "Arial" ))
(text "inst1" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "LOAD" (rect 0 0 29 12)(font "Arial" ))
(text "LOAD" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "DIN[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "DIN[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 160 32)
(output)
(text "DOUT[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "DOUT[3..0]" (rect 83 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
)
(symbol
(rect 544 176 704 272)
(text "REG4B" (rect 5 0 41 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "LOAD" (rect 0 0 29 12)(font "Arial" ))
(text "LOAD" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "DIN[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "DIN[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 160 32)
(output)
(text "DOUT[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "DOUT[3..0]" (rect 83 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
)
(symbol
(rect 544 280 704 376)
(text "REG4B" (rect 5 0 41 12)(font "Arial" ))
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "LOAD" (rect 0 0 29 12)(font "Arial" ))
(text "LOAD" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "DIN[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "DIN[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 160 32)
(output)
(text "DOUT[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "DOUT[3..0]" (rect 83 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
)
(symbol
(rect 544 400 704 496)
(text "REG4B" (rect 5 0 41 12)(font "Arial" ))
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "LOAD" (rect 0 0 29 12)(font "Arial" ))
(text "LOAD" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "DIN[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "DIN[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 160 32)
(output)
(text "DOUT[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "DOUT[3..0]" (rect 83 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
)
(symbol
(rect 80 64 208 160)
(text "TESTCTL" (rect 5 84 51 96)(font "Arial" ))
(text "inst8" (rect 8 4 31 16)(font "Arial" ))
(port
(pt 0 64)
(input)
(text "CLKK" (rect 0 0 28 12)(font "Arial" ))
(text "CLKK" (rect 21 57 49 69)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 128 64)
(output)
(text "CNT_EN" (rect 0 0 43 12)(font "Arial" ))
(text "CNT_EN" (rect 64 57 107 69)(font "Arial" ))
(line (pt 128 64)(pt 112 64)(line_width 1))
)
(port
(pt 128 48)
(output)
(text "RST_CNT" (rect 0 0 49 12)(font "Arial" ))
(text "RST_CNT" (rect 58 41 107 53)(font "Arial" ))
(line (pt 128 48)(pt 112 48)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "LOAD" (rect 0 0 29 12)(font "Arial" ))
(text "LOAD" (rect 78 25 107 37)(font "Arial" ))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 80)(line_width 1))
)
(flipx)
)
(symbol
(rect 312 64 448 160)
(text "CNT4B" (rect 5 0 40 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 21 27 42 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "RST" (rect 0 0 21 12)(font "Arial" ))
(text "RST" (rect 21 43 42 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ENA" (rect 0 0 22 12)(font "Arial" ))
(text "ENA" (rect 21 59 43 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "OUTY[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "OUTY[3..0]" (rect 59 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(output)
(text "COUT" (rect 0 0 30 12)(font "Arial" ))
(text "COUT" (rect 85 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 304 192 440 288)
(text "CNT4B" (rect 5 0 40 12)(font "Arial" ))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 21 27 42 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "RST" (rect 0 0 21 12)(font "Arial" ))
(text "RST" (rect 21 43 42 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ENA" (rect 0 0 22 12)(font "Arial" ))
(text "ENA" (rect 21 59 43 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "OUTY[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "OUTY[3..0]" (rect 59 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(output)
(text "COUT" (rect 0 0 30 12)(font "Arial" ))
(text "COUT" (rect 85 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 312 296 448 392)
(text "CNT4B" (rect 5 0 40 12)(font "Arial" ))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 21 27 42 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "RST" (rect 0 0 21 12)(font "Arial" ))
(text "RST" (rect 21 43 42 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ENA" (rect 0 0 22 12)(font "Arial" ))
(text "ENA" (rect 21 59 43 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "OUTY[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "OUTY[3..0]" (rect 59 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(output)
(text "COUT" (rect 0 0 30 12)(font "Arial" ))
(text "COUT" (rect 85 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 312 416 448 512)
(text "CNT4B" (rect 5 0 40 12)(font "Arial" ))
(text "inst7" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 21 27 42 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "RST" (rect 0 0 21 12)(font "Arial" ))
(text "RST" (rect 21 43 42 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ENA" (rect 0 0 22 12)(font "Arial" ))
(text "ENA" (rect 21 59 43 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "OUTY[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "OUTY[3..0]" (rect 59 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(output)
(text "COUT" (rect 0 0 30 12)(font "Arial" ))
(text "COUT" (rect 85 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(connector
(pt 448 112)
(pt 472 112)
)
(connector
(pt 472 112)
(pt 472 168)
)
(connector
(pt 312 360)
(pt 216 360)
)
(connector
(pt 312 344)
(pt 264 344)
)
(connector
(pt 312 96)
(pt 272 96)
)
(connector
(pt 448 344)
(pt 456 344)
)
(connector
(pt 456 344)
(pt 456 400)
)
(connector
(pt 472 168)
(pt 304 168)
)
(connector
(pt 304 168)
(pt 304 224)
)
(connector
(pt 304 240)
(pt 264 240)
)
(connector
(pt 264 112)
(pt 264 240)
)
(connector
(pt 304 256)
(pt 216 256)
)
(connector
(pt 440 240)
(pt 456 240)
)
(connector
(pt 456 240)
(pt 456 288)
)
(connector
(pt 456 288)
(pt 296 288)
)
(connector
(pt 296 288)
(pt 296 328)
)
(connector
(pt 296 328)
(pt 312 328)
)
(connector
(pt 504 80)
(pt 536 80)
)
(connector
(pt 504 40)
(pt 504 80)
)
(connector
(pt 448 96)
(pt 536 96)
(bus)
)
(connector
(pt 504 208)
(pt 544 208)
)
(connector
(pt 504 80)
(pt 504 208)
)
(connector
(pt 440 224)
(pt 544 224)
(bus)
)
(connector
(pt 504 312)
(pt 544 312)
)
(connector
(pt 448 328)
(pt 544 328)
(bus)
)
(connector
(pt 504 432)
(pt 544 432)
)
(connector
(pt 504 208)
(pt 504 312)
)
(connector
(pt 504 312)
(pt 504 432)
)
(connector
(pt 704 432)
(pt 736 432)
(bus)
)
(connector
(pt 704 312)
(pt 736 312)
(bus)
)
(connector
(pt 704 208)
(pt 736 208)
(bus)
)
(connector
(pt 696 80)
(pt 736 80)
(bus)
)
(connector
(pt 504 40)
(pt 240 40)
)
(connector
(pt 272 96)
(pt 272 32)
)
(connector
(pt 80 32)
(pt 272 32)
)
(connector
(pt 240 40)
(pt 240 96)
)
(connector
(pt 216 128)
(pt 216 256)
)
(connector
(pt 264 112)
(pt 312 112)
)
(connector
(pt 208 128)
(pt 216 128)
)
(connector
(pt 216 128)
(pt 312 128)
)
(connector
(pt 208 112)
(pt 264 112)
)
(connector
(pt 208 96)
(pt 240 96)
)
(connector
(pt 312 400)
(pt 312 448)
)
(connector
(pt 456 400)
(pt 312 400)
)
(connector
(pt 264 464)
(pt 312 464)
)
(connector
(pt 216 480)
(pt 312 480)
)
(connector
(pt 216 256)
(pt 216 360)
)
(connector
(pt 216 360)
(pt 216 480)
)
(connector
(pt 264 240)
(pt 264 344)
)
(connector
(pt 264 344)
(pt 264 464)
)
(connector
(pt 448 448)
(pt 544 448)
(bus)
)
(junction (pt 216 360))
(junction (pt 216 256))
(junction (pt 264 112))
(junction (pt 264 240))
(junction (pt 264 344))
(junction (pt 504 80))
(junction (pt 504 208))
(junction (pt 504 312))
(junction (pt 216 128))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -