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

📄 pwm_gen.bdf

📁 pwm模块pwm模块pwm模块pwm模块pwm模块
💻 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-2005 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 0 152 168 168)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clock_24M" (rect 5 0 56 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 0 120 88 152))
)
(pin
	(input)
	(rect 0 168 168 184)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "reset" (rect 5 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 156 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 0 184 88 216))
)
(pin
	(output)
	(rect 784 304 960 320)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "tx" (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 872 272 960 304))
)
(pin
	(output)
	(rect 784 184 960 200)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "s_pwm" (rect 90 0 124 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 872 152 960 184))
)
(pin
	(output)
	(rect 784 216 960 232)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "Vref" (rect 90 0 111 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 872 232 960 264))
)
(symbol
	(rect 728 200 760 216)
	(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
	(text "inst6" (rect 3 5 26 17)(font "Arial" )(invisible))
	(port
		(pt 16 16)
		(output)
		(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
		(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
		(line (pt 16 16)(pt 16 8)(line_width 1))
	)
	(drawing
		(line (pt 8 8)(pt 24 8)(line_width 1))
	)
)
(symbol
	(rect 408 280 552 376)
	(text "pwm" (rect 5 0 27 12)(font "Arial" ))
	(text "inst4" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock_m" (rect 0 0 41 12)(font "Arial" ))
		(text "clock_m" (rect 21 27 62 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 43 46 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 59 45 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 144 32)
		(output)
		(text "clock_out" (rect 0 0 47 12)(font "Arial" ))
		(text "clock_out" (rect 76 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 1))
	)
	(parameter
		"pulse_width"
		"2"
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 552 248 656 280))
)
(symbol
	(rect 664 280 784 408)
	(text "serialport_tx" (rect 5 0 65 12)(font "Arial" ))
	(text "inst5" (rect 8 112 31 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data_ready" (rect 0 0 55 12)(font "Arial" ))
		(text "data_ready" (rect 21 27 76 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "data[7..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "data[7..0]" (rect 21 43 68 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 59 46 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 75 45 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 120 32)
		(output)
		(text "tx" (rect 0 0 9 12)(font "Arial" ))
		(text "tx" (rect 90 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 104 112)(line_width 1))
	)
)
(symbol
	(rect 200 448 344 544)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst3" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 144 32)
		(bidir)
		(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
		(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(bidir)
		(text "carrier" (rect 0 0 30 12)(font "Arial" ))
		(text "carrier" (rect 93 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(parameter
		"divisor"
		"2500"
		""
	)
	(parameter
		"inner_counter_width"
		"16"
		""
	)
	(parameter
		"unit"
		"\"1111\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 344 392 488 448))
)
(symbol
	(rect 200 128 336 224)
	(text "pwm_counter" (rect 5 0 69 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 136 32)
		(output)
		(text "data[7..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "data[7..0]" (rect 68 27 115 39)(font "Arial" ))
		(line (pt 136 32)(pt 120 32)(line_width 3))
	)
	(port
		(pt 136 48)
		(output)
		(text "send_timer" (rect 0 0 54 12)(font "Arial" ))
		(text "send_timer" (rect 61 43 115 55)(font "Arial" ))
		(line (pt 136 48)(pt 120 48)(line_width 1))
	)
	(port
		(pt 136 64)
		(output)
		(text "pwm_out" (rect 0 0 43 12)(font "Arial" ))
		(text "pwm_out" (rect 72 59 115 71)(font "Arial" ))
		(line (pt 136 64)(pt 120 64)(line_width 1))
	)
	(parameter
		"T"
		"24000"
		""
	)
	(parameter
		"Th"
		"2400"
		""
	)
	(parameter
		"inner_counter_width"
		"32"
		""
	)
	(parameter
		"send_witdh"
		"2400000"
		""
	)
	(parameter
		"send_counter_bits"
		"32"
		""
	)
	(drawing
		(rectangle (rect 16 16 120 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 40 488 128))
)
(connector
	(pt 192 176)
	(pt 200 176)
)
(connector
	(pt 192 496)
	(pt 200 496)
)
(connector
	(pt 640 328)
	(pt 664 328)
	(bus)
)
(connector
	(pt 640 344)
	(pt 664 344)
)
(connector
	(pt 640 496)
	(pt 640 344)
)
(connector
	(pt 656 360)
	(pt 664 360)
)
(connector
	(pt 392 312)
	(pt 408 312)
)
(connector
	(pt 552 312)
	(pt 664 312)
)
(connector
	(pt 408 344)
	(pt 400 344)
)
(connector
	(pt 392 328)
	(pt 408 328)
)
(connector
	(pt 392 328)
	(pt 392 496)
)
(connector
	(pt 344 496)
	(pt 392 496)
)
(connector
	(pt 392 496)
	(pt 640 496)
)
(connector
	(pt 744 224)
	(pt 784 224)
)
(connector
	(pt 744 224)
	(pt 744 216)
)
(connector
	(pt 392 176)
	(pt 392 312)
)
(connector
	(pt 640 160)
	(pt 640 328)
	(bus)
)
(connector
	(pt 400 344)
	(pt 400 384)
)
(connector
	(pt 656 384)
	(pt 656 360)
)
(connector
	(pt 192 176)
	(pt 192 384)
)
(connector
	(pt 192 384)
	(pt 192 496)
)
(connector
	(pt 192 384)
	(pt 400 384)
)
(connector
	(pt 400 384)
	(pt 656 384)
)
(connector
	(pt 200 480)
	(pt 176 480)
)
(connector
	(pt 168 176)
	(pt 192 176)
)
(connector
	(pt 176 480)
	(pt 176 160)
)
(connector
	(pt 168 160)
	(pt 176 160)
)
(connector
	(pt 176 160)
	(pt 200 160)
)
(connector
	(pt 336 192)
	(pt 784 192)
)
(connector
	(pt 336 176)
	(pt 392 176)
)
(connector
	(pt 336 160)
	(pt 640 160)
	(bus)
)
(junction (pt 192 176))
(junction (pt 392 496))
(junction (pt 400 384))
(junction (pt 192 384))
(junction (pt 176 160))

⌨️ 快捷键说明

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