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

📄 main.bdf

📁 是一些很好的FPGA设计实例
💻 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-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 -200 112 -32 128)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "Reset" (rect 5 0 34 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 -200 312 -16 328)
	(text "INPUT" (rect 149 0 177 9)(font "Arial" (font_size 6)))
	(text "Initial_Speed[15..0]" (rect 5 0 99 12)(font "Arial" ))
	(pt 184 8)
	(drawing
		(line (pt 108 12)(pt 133 12)(line_width 1))
		(line (pt 108 4)(pt 133 4)(line_width 1))
		(line (pt 137 8)(pt 184 8)(line_width 1))
		(line (pt 108 12)(pt 108 4)(line_width 1))
		(line (pt 133 4)(pt 137 8)(line_width 1))
		(line (pt 133 12)(pt 137 8)(line_width 1))
	)
	(text "GND" (rect 152 7 173 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -200 392 -32 408)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "Step_Sum[23..0]" (rect 5 0 87 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 -200 328 -16 344)
	(text "INPUT" (rect 149 0 177 9)(font "Arial" (font_size 6)))
	(text "Acceleration[16..0]" (rect 5 0 97 12)(font "Arial" ))
	(pt 184 8)
	(drawing
		(line (pt 108 12)(pt 133 12)(line_width 1))
		(line (pt 108 4)(pt 133 4)(line_width 1))
		(line (pt 137 8)(pt 184 8)(line_width 1))
		(line (pt 108 12)(pt 108 4)(line_width 1))
		(line (pt 133 4)(pt 137 8)(line_width 1))
		(line (pt 133 12)(pt 137 8)(line_width 1))
	)
	(text "GND" (rect 152 7 173 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -200 248 -32 264)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "Clock_8MHz" (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 "GND" (rect 136 7 157 17)(font "Arial" (font_size 6)))
)
(pin
	(output)
	(rect 936 312 1112 328)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "Pulse_Wave" (rect 90 0 152 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 -16 208 152 304)
	(text "fdiv" (rect 5 0 25 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 27 50 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "Clock_8MHz" (rect 0 0 61 12)(font "Arial" ))
		(text "Clock_8MHz" (rect 21 43 82 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 168 32)
		(output)
		(text "F_65536Hz" (rect 0 0 55 12)(font "Arial" ))
		(text "F_65536Hz" (rect 92 27 147 39)(font "Arial" ))
		(line (pt 168 32)(pt 152 32)(line_width 1))
	)
	(port
		(pt 168 48)
		(output)
		(text "F_1Hz" (rect 0 0 31 12)(font "Arial" ))
		(text "F_1Hz" (rect 116 43 147 55)(font "Arial" ))
		(line (pt 168 48)(pt 152 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 152 80)(line_width 1))
	)
)
(symbol
	(rect 200 128 408 224)
	(text "counter_16_bits" (rect 5 0 82 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Clk_65536Hz" (rect 0 0 64 12)(font "Arial" ))
		(text "Clk_65536Hz" (rect 21 27 85 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 43 50 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 208 32)
		(output)
		(text "counter_out[15..0]" (rect 0 0 89 12)(font "Arial" ))
		(text "counter_out[15..0]" (rect 98 27 187 39)(font "Arial" ))
		(line (pt 208 32)(pt 192 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 192 80)(line_width 1))
	)
)
(symbol
	(rect 432 128 680 224)
	(text "pulse_16" (rect 5 0 48 12)(font "Arial" ))
	(text "inst2" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 27 50 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "counter_data[15..0]" (rect 0 0 95 12)(font "Arial" ))
		(text "counter_data[15..0]" (rect 21 43 116 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 248 32)
		(output)
		(text "pulse_16_out[15..0]" (rect 0 0 96 12)(font "Arial" ))
		(text "pulse_16_out[15..0]" (rect 131 27 227 39)(font "Arial" ))
		(line (pt 248 32)(pt 232 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 232 80)(line_width 1))
	)
)
(symbol
	(rect 200 256 464 384)
	(text "second_pulse_latch" (rect 5 0 101 12)(font "Arial" ))
	(text "inst3" (rect 8 112 31 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 27 50 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "Clk_1Hz" (rect 0 0 41 12)(font "Arial" ))
		(text "Clk_1Hz" (rect 21 43 62 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "speed[15..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "speed[15..0]" (rect 21 59 82 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "acceleration[16..0]" (rect 0 0 90 12)(font "Arial" ))
		(text "acceleration[16..0]" (rect 21 75 111 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 264 32)
		(output)
		(text "second_pulse_out[15..0]" (rect 0 0 120 12)(font "Arial" ))
		(text "second_pulse_out[15..0]" (rect 123 27 243 39)(font "Arial" ))
		(line (pt 264 32)(pt 248 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 248 112)(line_width 1))
	)
)
(symbol
	(rect 712 96 936 224)
	(text "pulse_sum" (rect 5 0 58 12)(font "Arial" ))
	(text "inst4" (rect 8 112 31 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 27 50 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "Clock_65536Hz" (rect 0 0 76 12)(font "Arial" ))
		(text "Clock_65536Hz" (rect 21 43 97 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "pulse_16_data[15..0]" (rect 0 0 102 12)(font "Arial" ))
		(text "pulse_16_data[15..0]" (rect 21 59 123 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "second_pulse_data[15..0]" (rect 0 0 126 12)(font "Arial" ))
		(text "second_pulse_data[15..0]" (rect 21 75 147 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 224 32)
		(output)
		(text "pulse_out" (rect 0 0 47 12)(font "Arial" ))
		(text "pulse_out" (rect 156 27 203 39)(font "Arial" ))
		(line (pt 224 32)(pt 208 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 208 112)(line_width 1))
	)
)
(symbol
	(rect 736 288 920 384)
	(text "sum_control" (rect 5 0 65 12)(font "Arial" ))
	(text "inst5" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Reset" (rect 0 0 29 12)(font "Arial" ))
		(text "Reset" (rect 21 27 50 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "step_sum[23..0]" (rect 0 0 80 12)(font "Arial" ))
		(text "step_sum[23..0]" (rect 21 43 101 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "pulse_sum_in" (rect 0 0 67 12)(font "Arial" ))
		(text "pulse_sum_in" (rect 21 59 88 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 184 32)
		(output)
		(text "wave_out" (rect 0 0 47 12)(font "Arial" ))
		(text "wave_out" (rect 116 27 163 39)(font "Arial" ))
		(line (pt 184 32)(pt 168 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 168 80)(line_width 1))
	)
)
(connector
	(pt 176 240)
	(pt 176 160)
)
(connector
	(pt 176 160)
	(pt 200 160)
)
(connector
	(pt 152 256)
	(pt 176 256)
)
(connector
	(pt 200 176)
	(pt 192 176)
)
(connector
	(pt 408 160)
	(pt 416 160)
	(bus)
)
(connector
	(pt 416 160)
	(pt 416 176)
	(bus)
)
(connector
	(pt 416 176)
	(pt 432 176)
	(bus)
)
(connector
	(pt 432 160)
	(pt 424 160)
)
(connector
	(pt 424 160)
	(pt 424 120)
)
(connector
	(pt -24 120)
	(pt -24 240)
)
(connector
	(pt -24 240)
	(pt -16 240)
)
(connector
	(pt 152 240)
	(pt 176 240)
)
(connector
	(pt 176 240)
	(pt 688 240)
)
(connector
	(pt 176 256)
	(pt 176 304)
)
(connector
	(pt 176 304)
	(pt 200 304)
)
(connector
	(pt 192 288)
	(pt 200 288)
)
(connector
	(pt 192 120)
	(pt 192 176)
)
(connector
	(pt 192 176)
	(pt 192 288)
)
(connector
	(pt 464 288)
	(pt 696 288)
	(bus)
)
(connector
	(pt 720 248)
	(pt 720 352)
)
(connector
	(pt 720 352)
	(pt 736 352)
)
(connector
	(pt 736 336)
	(pt 656 336)
	(bus)
)
(connector
	(pt 656 400)
	(pt 656 336)
	(bus)
)
(connector
	(pt 688 240)
	(pt 688 144)
)
(connector
	(pt 696 288)
	(pt 696 176)
	(bus)
)
(connector
	(pt 688 144)
	(pt 712 144)
)
(connector
	(pt 680 160)
	(pt 712 160)
	(bus)
)
(connector
	(pt 696 176)
	(pt 712 176)
	(bus)
)
(connector
	(pt 720 248)
	(pt 944 248)
)
(connector
	(pt 936 128)
	(pt 944 128)
)
(connector
	(pt 944 128)
	(pt 944 248)
)
(connector
	(pt 736 320)
	(pt 704 320)
)
(connector
	(pt 704 128)
	(pt 712 128)
)
(connector
	(pt 192 120)
	(pt 424 120)
)
(connector
	(pt 424 120)
	(pt 704 120)
)
(connector
	(pt 704 120)
	(pt 704 128)
)
(connector
	(pt 704 128)
	(pt 704 320)
)
(connector
	(pt -32 400)
	(pt 656 400)
	(bus)
)
(connector
	(pt -16 320)
	(pt 200 320)
	(bus)
)
(connector
	(pt -16 336)
	(pt 200 336)
	(bus)
)
(connector
	(pt -32 256)
	(pt -16 256)
)
(connector
	(pt -32 120)
	(pt -24 120)
)
(connector
	(pt -24 120)
	(pt 192 120)
)
(connector
	(pt 920 320)
	(pt 936 320)
)
(junction (pt 192 176))
(junction (pt 192 120))
(junction (pt 424 120))
(junction (pt 176 240))
(junction (pt 704 128))
(junction (pt -24 120))

⌨️ 快捷键说明

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