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

📄 main.bdf

📁 一些很好的FPGA设计实例
💻 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-2006 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 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 -224 352 -56 368)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "Clock" (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 "GND" (rect 136 7 157 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -224 264 -56 280)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SW2" (rect 5 0 28 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 -224 248 -56 264)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SW1" (rect 5 0 28 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 "GND" (rect 136 7 157 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -224 232 -56 248)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SW0" (rect 5 0 28 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 "GND" (rect 136 7 157 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -224 56 -56 72)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "F_in" (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 "GND" (rect 136 7 157 17)(font "Arial" (font_size 6)))
)
(pin
	(output)
	(rect 720 200 896 216)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "over_alarm" (rect 90 0 145 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 720 248 896 264)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "disp_data[6..0]" (rect 90 0 163 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 720 264 896 280)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "dp" (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))
	)
)
(pin
	(output)
	(rect 720 480 896 496)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "disp_select[5..0]" (rect 90 0 171 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 -48 328 48 456)
	(text "fdiv" (rect 5 0 25 12)(font "Arial" ))
	(text "inst1" (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 96 32)
		(output)
		(text "f1hz" (rect 0 0 21 12)(font "Arial" ))
		(text "f1hz" (rect 54 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "f10hz" (rect 0 0 27 12)(font "Arial" ))
		(text "f10hz" (rect 48 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 1))
	)
	(port
		(pt 96 64)
		(output)
		(text "f100hz" (rect 0 0 33 12)(font "Arial" ))
		(text "f100hz" (rect 42 59 75 71)(font "Arial" ))
		(line (pt 96 64)(pt 80 64)(line_width 1))
	)
	(port
		(pt 96 80)
		(output)
		(text "f1khz" (rect 0 0 27 12)(font "Arial" ))
		(text "f1khz" (rect 48 75 75 87)(font "Arial" ))
		(line (pt 96 80)(pt 80 80)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 112)(line_width 1))
	)
)
(symbol
	(rect 80 208 224 368)
	(text "gate_control" (rect 5 0 65 12)(font "Arial" ))
	(text "inst3" (rect 8 144 31 156)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "SW0" (rect 0 0 23 12)(font "Arial" ))
		(text "SW0" (rect 21 27 44 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "SW1" (rect 0 0 23 12)(font "Arial" ))
		(text "SW1" (rect 21 43 44 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "SW2" (rect 0 0 23 12)(font "Arial" ))
		(text "SW2" (rect 21 59 44 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "f1hz" (rect 0 0 21 12)(font "Arial" ))
		(text "f1hz" (rect 21 75 42 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "f10hz" (rect 0 0 27 12)(font "Arial" ))
		(text "f10hz" (rect 21 91 48 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 0 112)
		(input)
		(text "f100hz" (rect 0 0 33 12)(font "Arial" ))
		(text "f100hz" (rect 21 107 54 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 1))
	)
	(port
		(pt 144 32)
		(output)
		(text "Latch_EN" (rect 0 0 48 12)(font "Arial" ))
		(text "Latch_EN" (rect 75 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 1))
	)
	(port
		(pt 144 48)
		(output)
		(text "Counter_Clr" (rect 0 0 59 12)(font "Arial" ))
		(text "Counter_Clr" (rect 64 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(port
		(pt 144 64)
		(output)
		(text "Counter_EN" (rect 0 0 60 12)(font "Arial" ))
		(text "Counter_EN" (rect 63 59 123 71)(font "Arial" ))
		(line (pt 144 64)(pt 128 64)(line_width 1))
	)
	(port
		(pt 144 80)
		(output)
		(text "dp_s1hz" (rect 0 0 40 12)(font "Arial" ))
		(text "dp_s1hz" (rect 83 75 123 87)(font "Arial" ))
		(line (pt 144 80)(pt 128 80)(line_width 1))
	)
	(port
		(pt 144 96)
		(output)
		(text "dp_s10hz" (rect 0 0 46 12)(font "Arial" ))
		(text "dp_s10hz" (rect 77 91 123 103)(font "Arial" ))
		(line (pt 144 96)(pt 128 96)(line_width 1))
	)
	(port
		(pt 144 112)
		(output)
		(text "dp_s100hz" (rect 0 0 51 12)(font "Arial" ))
		(text "dp_s100hz" (rect 72 107 123 119)(font "Arial" ))
		(line (pt 144 112)(pt 128 112)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 128 144)(line_width 1))
	)
)
(symbol
	(rect 496 224 696 480)
	(text "dispdecoder" (rect 5 0 64 12)(font "Arial" ))
	(text "inst5" (rect 8 240 31 252)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data_in[3..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "data_in[3..0]" (rect 21 27 82 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "disp_select[2..0]" (rect 0 0 81 12)(font "Arial" ))
		(text "disp_select[2..0]" (rect 21 43 102 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "dp_s1hz" (rect 0 0 40 12)(font "Arial" ))
		(text "dp_s1hz" (rect 21 59 61 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "dp_s10hz" (rect 0 0 46 12)(font "Arial" ))
		(text "dp_s10hz" (rect 21 75 67 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "dp_s100hz" (rect 0 0 51 12)(font "Arial" ))
		(text "dp_s100hz" (rect 21 91 72 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 0 112)
		(input)
		(text "Q5[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q5[3..0]" (rect 21 107 61 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 3))
	)
	(port
		(pt 0 128)
		(input)
		(text "Q4[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q4[3..0]" (rect 21 123 61 135)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 3))
	)
	(port
		(pt 0 144)
		(input)
		(text "Q3[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q3[3..0]" (rect 21 139 61 151)(font "Arial" ))
		(line (pt 0 144)(pt 16 144)(line_width 3))
	)
	(port
		(pt 0 160)
		(input)
		(text "Q2[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q2[3..0]" (rect 21 155 61 167)(font "Arial" ))
		(line (pt 0 160)(pt 16 160)(line_width 3))
	)
	(port
		(pt 0 176)
		(input)
		(text "Q1[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q1[3..0]" (rect 21 171 61 183)(font "Arial" ))
		(line (pt 0 176)(pt 16 176)(line_width 3))
	)
	(port
		(pt 0 192)
		(input)
		(text "Q0[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q0[3..0]" (rect 21 187 61 199)(font "Arial" ))
		(line (pt 0 192)(pt 16 192)(line_width 3))
	)
	(port
		(pt 0 208)
		(input)
		(text "counter_out" (rect 0 0 57 12)(font "Arial" ))
		(text "counter_out" (rect 21 203 78 215)(font "Arial" ))
		(line (pt 0 208)(pt 16 208)(line_width 1))
	)
	(port
		(pt 200 32)
		(output)
		(text "data_out[6..0]" (rect 0 0 68 12)(font "Arial" ))
		(text "data_out[6..0]" (rect 111 27 179 39)(font "Arial" ))
		(line (pt 200 32)(pt 184 32)(line_width 3))
	)
	(port
		(pt 200 48)
		(output)
		(text "dp" (rect 0 0 11 12)(font "Arial" ))
		(text "dp" (rect 168 43 179 55)(font "Arial" ))
		(line (pt 200 48)(pt 184 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 184 240)(line_width 1))
	)
)
(symbol
	(rect 136 0 256 160)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst" (rect 8 144 25 156)(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 "CLR" (rect 0 0 22 12)(font "Arial" ))
		(text "CLR" (rect 21 43 43 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "F_IN" (rect 0 0 24 12)(font "Arial" ))
		(text "F_IN" (rect 21 59 45 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 120 32)
		(output)
		(text "Q5[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q5[3..0]" (rect 59 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(port
		(pt 120 48)
		(output)
		(text "Q4[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q4[3..0]" (rect 59 43 99 55)(font "Arial" ))
		(line (pt 120 48)(pt 104 48)(line_width 3))
	)
	(port
		(pt 120 64)
		(output)
		(text "Q3[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q3[3..0]" (rect 59 59 99 71)(font "Arial" ))
		(line (pt 120 64)(pt 104 64)(line_width 3))
	)
	(port
		(pt 120 80)
		(output)
		(text "Q2[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q2[3..0]" (rect 59 75 99 87)(font "Arial" ))
		(line (pt 120 80)(pt 104 80)(line_width 3))
	)
	(port
		(pt 120 96)
		(output)
		(text "Q1[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q1[3..0]" (rect 59 91 99 103)(font "Arial" ))
		(line (pt 120 96)(pt 104 96)(line_width 3))
	)
	(port
		(pt 120 112)
		(output)
		(text "Q0[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "Q0[3..0]" (rect 59 107 99 119)(font "Arial" ))
		(line (pt 120 112)(pt 104 112)(line_width 3))
	)
	(port
		(pt 120 128)
		(output)
		(text "F_OUT" (rect 0 0 35 12)(font "Arial" ))
		(text "F_OUT" (rect 64 123 99 135)(font "Arial" ))
		(line (pt 120 128)(pt 104 128)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 104 144)(line_width 1))
	)
)
(symbol
	(rect 336 0 472 160)
	(text "flip_latch" (rect 5 148 49 160)(font "Arial" ))
	(text "inst2" (rect 8 4 31 16)(font "Arial" ))
	(port
		(pt 0 128)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 121 35 133)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 1))
	)
	(port
		(pt 0 112)
		(input)
		(text "A0[3..0]" (rect 0 0 38 12)(font "Arial" ))
		(text "A0[3..0]" (rect 21 105 59 117)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "A1[3..0]" (rect 0 0 38 12)(font "Arial" ))
		(text "A1[3..0]" (rect 21 89 59 101)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "A2[3..0]" (rect 0 0 38 12)(font "Arial" ))
		(text "A2[3..0]" (rect 21 73 59 85)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "A3[3..0]" (rect 0 0 38 12)(font "Arial" ))
		(text "A3[3..0]" (rect 21 57 59 69)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "A4[3..0]" (rect 0 0 38 12)(font "Arial" ))
		(text "A4[3..0]" (rect 21 41 59 53)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)

⌨️ 快捷键说明

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