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

📄 240t.bdf

📁 很好的一个东西,希望能对大家有所帮助.关于PWM的编程.
💻 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.
*/
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect -200 504 -32 520)
	(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 -248 520 -208 536))
)
(pin
	(input)
	(rect -152 168 16 184)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "key_clk" (rect 5 0 43 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 -144 128 -88 144))
)
(pin
	(output)
	(rect 832 232 1008 248)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "pwm" (rect 90 0 112 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 1008 248 1064 264))
)
(pin
	(output)
	(rect 832 160 1008 176)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "led7" (rect 90 0 110 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 1008 176 1056 192))
)
(pin
	(output)
	(rect 832 104 1008 120)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "led6" (rect 90 0 110 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 1008 120 1056 136))
)
(pin
	(output)
	(rect 832 336 1008 352)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "led2" (rect 90 0 110 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 1008 352 1064 368))
)
(symbol
	(rect 88 384 184 480)
	(text "civ" (rect 5 0 20 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 "outclk" (rect 0 0 29 12)(font "Arial" ))
		(text "outclk" (rect 46 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 80 144 224 224)
	(text "lpm_dff0" (rect 48 1 104 17)(font "Arial" (font_size 10)))
	(text "inst7" (rect 8 64 31 76)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
		(text "data" (rect 20 26 44 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 42 55 56)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 144 48)
		(output)
		(text "q" (rect 0 0 7 14)(font "Arial" (font_size 8)))
		(text "q" (rect 119 42 126 56)(font "Arial" (font_size 8)))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(drawing
		(text "DFF" (rect 109 17 131 29)(font "Arial" ))
		(line (pt 16 16)(pt 128 16)(line_width 1))
		(line (pt 128 16)(pt 128 64)(line_width 1))
		(line (pt 128 64)(pt 16 64)(line_width 1))
		(line (pt 16 64)(pt 16 16)(line_width 1))
		(line (pt 16 42)(pt 22 48)(line_width 1))
		(line (pt 22 48)(pt 16 54)(line_width 1))
	)
)
(symbol
	(rect 272 16 400 112)
	(text "lpm_compare1" (rect 6 1 106 17)(font "Arial" (font_size 10)))
	(text "inst5" (rect 97 80 120 92)(font "Arial" ))
	(port
		(pt 128 48)
		(input)
		(text "dataa[4..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
		(text "dataa[4..0]" (rect 48 42 108 56)(font "Arial" (font_size 8)))
		(line (pt 128 48)(pt 112 48)(line_width 3))
	)
	(port
		(pt 0 56)
		(output)
		(text "ageb" (rect 0 0 28 14)(font "Arial" (font_size 8)))
		(text "ageb" (rect 15 50 43 64)(font "Arial" (font_size 8)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(drawing
		(text "unsigned compare" (rect 3 17 92 29)(font "Arial" ))
		(text "datab[]=20" (rect 48 58 108 72)(font "Arial" (font_size 8)))
		(line (pt 112 16)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 16 80)(line_width 1))
		(line (pt 16 80)(pt 112 80)(line_width 1))
		(line (pt 112 80)(pt 112 16)(line_width 1))
	)
	(flipy)
)
(symbol
	(rect 272 128 416 224)
	(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "sclr" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "sclr" (rect 20 26 41 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 58 55 72)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 144 56)
		(output)
		(text "q[4..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
		(text "q[4..0]" (rect 95 50 130 64)(font "Arial" (font_size 8)))
		(line (pt 144 56)(pt 128 56)(line_width 3))
	)
	(drawing
		(text "up counter" (rect 84 17 135 29)(font "Arial" ))
		(line (pt 16 16)(pt 128 16)(line_width 1))
		(line (pt 128 16)(pt 128 80)(line_width 1))
		(line (pt 128 80)(pt 16 80)(line_width 1))
		(line (pt 16 80)(pt 16 16)(line_width 1))
		(line (pt 16 58)(pt 22 64)(line_width 1))
		(line (pt 22 64)(pt 16 70)(line_width 1))
	)
)
(symbol
	(rect 272 264 416 392)
	(text "lpm_counter1" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst2" (rect 8 112 31 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "sclr" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "sclr" (rect 20 26 41 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "sload" (rect 0 0 30 14)(font "Arial" (font_size 8)))
		(text "sload" (rect 20 42 50 56)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "data[4..0]" (rect 0 0 53 14)(font "Arial" (font_size 8)))
		(text "data[4..0]" (rect 20 58 73 72)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 90 55 104)(font "Arial" (font_size 8)))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 144 72)
		(output)
		(text "q[4..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
		(text "q[4..0]" (rect 95 66 130 80)(font "Arial" (font_size 8)))
		(line (pt 144 72)(pt 128 72)(line_width 3))
	)
	(drawing
		(text "up counter" (rect 84 17 135 29)(font "Arial" ))
		(line (pt 16 16)(pt 128 16)(line_width 1))
		(line (pt 128 16)(pt 128 112)(line_width 1))
		(line (pt 128 112)(pt 16 112)(line_width 1))
		(line (pt 16 112)(pt 16 16)(line_width 1))
		(line (pt 16 90)(pt 22 96)(line_width 1))
		(line (pt 22 96)(pt 16 102)(line_width 1))
	)
)
(symbol
	(rect 296 440 424 536)
	(text "lpm_compare1" (rect 6 1 106 17)(font "Arial" (font_size 10)))
	(text "inst4" (rect 97 80 120 92)(font "Arial" ))
	(port
		(pt 128 48)
		(input)
		(text "dataa[4..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
		(text "dataa[4..0]" (rect 48 42 108 56)(font "Arial" (font_size 8)))
		(line (pt 128 48)(pt 112 48)(line_width 3))
	)
	(port
		(pt 0 56)
		(output)
		(text "ageb" (rect 0 0 28 14)(font "Arial" (font_size 8)))
		(text "ageb" (rect 15 50 43 64)(font "Arial" (font_size 8)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(drawing
		(text "unsigned compare" (rect 3 17 92 29)(font "Arial" ))
		(text "datab[]=20" (rect 48 58 108 72)(font "Arial" (font_size 8)))
		(line (pt 112 16)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 16 80)(line_width 1))
		(line (pt 16 80)(pt 112 80)(line_width 1))
		(line (pt 112 80)(pt 112 16)(line_width 1))
	)
	(flipy)
)
(symbol
	(rect 536 176 664 288)
	(text "lpm_compare0" (rect 22 1 122 17)(font "Arial" (font_size 10)))
	(text "inst3" (rect 8 96 31 108)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "dataa[4..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
		(text "dataa[4..0]" (rect 20 42 80 56)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "datab[4..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
		(text "datab[4..0]" (rect 20 58 80 72)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 74 55 88)(font "Arial" (font_size 8)))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 128 64)
		(output)
		(text "aleb" (rect 0 0 23 14)(font "Arial" (font_size 8)))
		(text "aleb" (rect 89 58 112 72)(font "Arial" (font_size 8)))
		(line (pt 128 64)(pt 112 64)(line_width 1))
	)
	(drawing
		(text "unsigned compare" (rect 36 17 125 29)(font "Arial" ))
		(line (pt 16 16)(pt 112 16)(line_width 1))
		(line (pt 112 16)(pt 112 96)(line_width 1))
		(line (pt 112 96)(pt 16 96)(line_width 1))
		(line (pt 16 96)(pt 16 16)(line_width 1))
		(line (pt 16 74)(pt 22 80)(line_width 1))
		(line (pt 22 80)(pt 16 86)(line_width 1))
	)

⌨️ 快捷键说明

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