⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frequ.bdf

📁 程序用VHDL实现: 利用一秒定时测量频率 并且显示
💻 BDF
📖 第 1 页 / 共 2 页
字号:
/*
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 168 160 336 176)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "clk1" (rect 9 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 153 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 72 128 160 160))
)
(pin
	(input)
	(rect 168 176 336 192)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "start" (rect 9 0 31 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 80 192 168 224))
)
(pin
	(input)
	(rect 168 248 336 264)
	(text "INPUT" (rect 133 0 161 9)(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 153 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 120 264 208 296))
)
(pin
	(input)
	(rect 800 360 816 528)
	(text "INPUT" (rect 0 7 9 35)(font "Arial" (font_size 6))(vertical))
	(text "clk1m" (rect 0 130 12 159)(font "Arial" )(vertical))
	(pt 8 0)
	(drawing
		(line (pt 12 76)(pt 12 51)(line_width 1))
		(line (pt 4 76)(pt 4 51)(line_width 1))
		(line (pt 8 47)(pt 8 0)(line_width 1))
		(line (pt 12 76)(pt 4 76)(line_width 1))
		(line (pt 4 51)(pt 8 47)(line_width 1))
		(line (pt 12 51)(pt 8 47)(line_width 1))
	)
	(rotate90)
	(text "VCC" (rect 7 15 17 32)(font "Arial" (font_size 6))(vertical))
	(annotation_block (location)(rect 712 528 800 560))
)
(pin
	(output)
	(rect 1056 160 1232 176)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "sa" (rect 90 0 101 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 1136 104 1224 136))
)
(pin
	(output)
	(rect 1056 176 1232 192)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "sb" (rect 90 0 101 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 1136 136 1224 168))
)
(pin
	(output)
	(rect 1056 192 1232 208)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "sc" (rect 90 0 101 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 1136 168 1224 200))
)
(pin
	(output)
	(rect 1056 224 1232 240)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "led[6..0]" (rect 90 0 130 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 1136 224 1224 336))
)
(pin
	(output)
	(rect 1056 208 1232 224)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "ledpt" (rect 90 0 113 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 328 136 440 232)
	(text "control" (rect 5 0 38 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 0 48)
		(input)
		(text "start" (rect 0 0 22 12)(font "Arial" ))
		(text "start" (rect 21 43 43 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "cnt_en" (rect 0 0 33 12)(font "Arial" ))
		(text "cnt_en" (rect 58 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(port
		(pt 112 48)
		(output)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 80 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 624 136 744 232)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst7" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 624 248 744 344)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst8" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 624 360 744 456)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst9" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 624 472 744 568)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst10" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 624 584 744 680)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst11" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 624 696 744 792)
	(text "f_dis" (rect 5 0 29 12)(font "Arial" ))
	(text "inst12" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "y[3..0]" (rect 0 0 33 12)(font "Arial" ))
		(text "y[3..0]" (rect 66 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 104 80)(line_width 1))
	)
)
(symbol
	(rect 480 696 576 792)
	(text "counter10" (rect 5 0 53 12)(font "Arial" ))
	(text "inst13" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 59 35 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "carry0" (rect 0 0 31 12)(font "Arial" ))
		(text "carry0" (rect 44 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 44 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 480 584 576 680)
	(text "counter10" (rect 5 0 53 12)(font "Arial" ))
	(text "inst14" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 59 35 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "carry0" (rect 0 0 31 12)(font "Arial" ))
		(text "carry0" (rect 44 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 44 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 480 472 576 568)
	(text "counter10" (rect 5 0 53 12)(font "Arial" ))
	(text "inst15" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 59 35 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "carry0" (rect 0 0 31 12)(font "Arial" ))
		(text "carry0" (rect 44 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 44 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 480 360 576 456)
	(text "counter10" (rect 5 0 53 12)(font "Arial" ))
	(text "inst16" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 59 35 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "carry0" (rect 0 0 31 12)(font "Arial" ))
		(text "carry0" (rect 44 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "q[3..0]" (rect 0 0 31 12)(font "Arial" ))
		(text "q[3..0]" (rect 44 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 480 248 576 344)
	(text "counter10" (rect 5 0 53 12)(font "Arial" ))
	(text "inst17" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -