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

📄 ad0820.bdf

📁 2008年北京市大学生电子设计竞赛程序源代码[测频率
💻 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-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 -248 -144 -80 -128)
	(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 -224 -112 -176 -96))
)
(pin
	(input)
	(rect -264 40 -96 56)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "INT" (rect 5 0 22 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 -312 16 -272 32))
)
(pin
	(input)
	(rect -264 104 -96 120)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "data_in[7..0]" (rect 5 0 66 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 -320 56 -272 168))
)
(pin
	(input)
	(rect -272 208 -104 224)
	(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 -320 184 -280 200))
)
(pin
	(input)
	(rect -248 -184 -80 -168)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "key[11..0]" (rect 5 0 55 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 -312 -160 -264 8))
)
(pin
	(output)
	(rect 896 24 1072 40)
	(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 1080 64 1128 176))
)
(pin
	(output)
	(rect 408 272 584 288)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "rd" (rect 90 0 99 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 600 280 640 296))
)
(pin
	(output)
	(rect 896 8 1072 24)
	(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 1080 -120 1128 -8))
)
(symbol
	(rect 592 -168 688 -72)
	(text "clk_dis" (rect 5 0 39 12)(font "Arial" ))
	(text "inst2" (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 "clk_out" (rect 0 0 35 12)(font "Arial" ))
		(text "clk_out" (rect 40 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 704 -16 880 176)
	(text "display" (rect 5 0 40 12)(font "Arial" ))
	(text "inst3" (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 144 32 328 160)
	(text "adc" (rect 5 0 22 12)(font "Arial" ))
	(text "inst" (rect 8 112 25 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 "INT" (rect 0 0 17 12)(font "Arial" ))
		(text "INT" (rect 21 43 38 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "data_in[7..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "data_in[7..0]" (rect 21 59 82 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 184 32)
		(output)
		(text "mode" (rect 0 0 27 12)(font "Arial" ))
		(text "mode" (rect 136 27 163 39)(font "Arial" ))
		(line (pt 184 32)(pt 168 32)(line_width 1))
	)
	(port
		(pt 184 48)
		(output)
		(text "cs" (rect 0 0 11 12)(font "Arial" ))
		(text "cs" (rect 152 43 163 55)(font "Arial" ))
		(line (pt 184 48)(pt 168 48)(line_width 1))
	)
	(port
		(pt 184 64)
		(output)
		(text "rd" (rect 0 0 9 12)(font "Arial" ))
		(text "rd" (rect 154 59 163 71)(font "Arial" ))
		(line (pt 184 64)(pt 168 64)(line_width 1))
	)
	(port
		(pt 184 80)
		(output)
		(text "wr_rdy" (rect 0 0 33 12)(font "Arial" ))
		(text "wr_rdy" (rect 130 75 163 87)(font "Arial" ))
		(line (pt 184 80)(pt 168 80)(line_width 1))
	)
	(port
		(pt 184 96)
		(output)
		(text "data_out[7..0]" (rect 0 0 68 12)(font "Arial" ))
		(text "data_out[7..0]" (rect 95 91 163 103)(font "Arial" ))
		(line (pt 184 96)(pt 168 96)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 168 112)(line_width 1))
	)
)
(symbol
	(rect 0 -80 96 16)
	(text "clk_half" (rect 5 0 43 12)(font "Arial" ))
	(text "inst4" (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 "clk_out" (rect 0 0 35 12)(font "Arial" ))
		(text "clk_out" (rect 40 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect -24 64 96 160)
	(text "df" (rect 5 0 15 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 0 48)
		(input)
		(text "D[7..0]" (rect 0 0 34 12)(font "Arial" ))
		(text "D[7..0]" (rect 21 43 55 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 120 32)
		(output)
		(text "Q[7..0]" (rect 0 0 34 12)(font "Arial" ))
		(text "Q[7..0]" (rect 65 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 408 136 552 264)
	(text "frequence" (rect 5 0 54 12)(font "Arial" ))
	(text "inst9" (rect 8 112 31 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 184 192 280 288)
	(text "onehz_clk" (rect 5 0 53 12)(font "Arial" ))
	(text "inst6" (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 "clk_out" (rect 0 0 35 12)(font "Arial" ))
		(text "clk_out" (rect 40 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(symbol
	(rect 0 168 96 264)
	(text "d_fre" (rect 5 0 30 12)(font "Arial" ))
	(text "inst8" (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 "D" (rect 0 0 8 12)(font "Arial" ))
		(text "D" (rect 21 43 29 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "Q" (rect 0 0 8 12)(font "Arial" ))
		(text "Q" (rect 67 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing

⌨️ 快捷键说明

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