freqm.bdf
来自「以CPLD器件EPM7128SLC84-15为核心实现的简易数字频率计」· BDF 代码 · 共 815 行 · 第 1/2 页
BDF
815 行
/*
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-2004 Altera Corporation
Any megafunction design, and related netlist (encrypted or decrypted),
support information, device programming or simulation file, and any other
associated documentation or information provided by Altera or a partner
under Altera's Megafunction Partnership Program may be used only
to program PLD devices (but not masked PLD devices) from Altera. Any
other use of such megafunction design, netlist, support information,
device programming or simulation file, or any other related documentation
or information is prohibited for any other purpose, including, but not
limited to modification, reverse engineering, de-compiling, or use with
any other silicon devices, unless such use is explicitly licensed under
a separate agreement with Altera or a megafunction partner. Title to the
intellectual property, including patents, copyrights, trademarks, trade
secrets, or maskworks, embodied in any such megafunction design, netlist,
support information, device programming or simulation file, or any other
related documentation or information provided by Altera or a megafunction
partner, remains with Altera, the megafunction partner, or their respective
licensors. No other licenses, including any licenses needed under any third
party's intellectual property, are provided herein.
*/
(header "graphic" (version "1.3"))
(pin
(input)
(rect -72 -24 96 -8)
(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
(text "SIGNAL" (rect 5 0 45 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 -56 -72 32 -40))
)
(pin
(input)
(rect -72 -8 96 8)
(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
(text "SWITCH[1..0]" (rect 5 0 74 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 16 8 64))
)
(pin
(input)
(rect -400 -152 -232 -136)
(text "INPUT" (rect 133 0 161 9)(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 153 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -400 -136 -312 -104))
)
(pin
(output)
(rect 1016 232 1192 248)
(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
(text "CATSEL[0..5]" (rect 90 0 157 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 1104 248 1192 352))
)
(pin
(output)
(rect 1016 216 1192 232)
(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
(text "DIGSGN[0..7]" (rect 90 0 159 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 88 1104 216))
)
(symbol
(rect 440 -80 592 16)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst10" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 440 32 592 128)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst11" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 440 144 592 240)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst12" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 440 256 592 352)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst13" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 440 368 592 464)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst14" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 440 480 592 576)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst15" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "EN" (rect 0 0 15 12)(font "Arial" ))
(text "EN" (rect 21 27 36 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "PULSE" (rect 0 0 35 12)(font "Arial" ))
(text "PULSE" (rect 21 43 56 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "COUNT[3..0]" (rect 0 0 64 12)(font "Arial" ))
(text "COUNT[3..0]" (rect 67 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "C" (rect 0 0 8 12)(font "Arial" ))
(text "C" (rect 123 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 120 -80 248 48)
(text "selector" (rect 5 0 43 12)(font "Arial" ))
(text "inst16" (rect 8 112 37 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "MCLK" (rect 0 0 29 12)(font "Arial" ))
(text "MCLK" (rect 21 27 50 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "HCLK" (rect 0 0 29 12)(font "Arial" ))
(text "HCLK" (rect 21 43 50 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "SIG" (rect 0 0 18 12)(font "Arial" ))
(text "SIG" (rect 21 59 39 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "SW[1..0]" (rect 0 0 43 12)(font "Arial" ))
(text "SW[1..0]" (rect 21 75 64 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 128 32)
(output)
(text "En" (rect 0 0 12 12)(font "Arial" ))
(text "En" (rect 95 27 107 39)(font "Arial" ))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(port
(pt 128 48)
(output)
(text "Pulse" (rect 0 0 27 12)(font "Arial" ))
(text "Pulse" (rect 80 43 107 55)(font "Arial" ))
(line (pt 128 48)(pt 112 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 112)(line_width 1))
)
)
(symbol
(rect 792 192 968 352)
(text "dispselector" (rect 5 0 64 12)(font "Arial" ))
(text "inst" (rect 8 144 25 156)(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 "NUM1[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "NUM1[3..0]" (rect 21 43 77 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "NUM2[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "NUM2[3..0]" (rect 21 59 77 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "NUM3[3..0]" (rect 0 0 56 12)(font "Arial" ))
(text "NUM3[3..0]" (rect 21 75 77 87)(font "Arial" ))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?