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

📄 test.bdf

📁 两路电机CPLD控制,串口通信
💻 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-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 -24 24 144 40)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clk" (rect 9 0 23 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 -72 40 -24 56))
)
(pin
	(input)
	(rect -96 88 72 104)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "rst" (rect 9 0 21 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 104 -96 120))
)
(pin
	(input)
	(rect 80 232 248 248)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "rxd" (rect 9 0 24 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 32 248 80 264))
)
(pin
	(input)
	(rect -288 152 -120 168)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "remote" (rect 5 0 39 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 -336 168 -288 184))
)
(pin
	(output)
	(rect 552 424 728 440)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "to_motor" (rect 90 0 133 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 728 440 776 456))
)
(pin
	(output)
	(rect 552 304 728 320)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "to_servo" (rect 90 0 133 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 728 320 776 336))
)
(symbol
	(rect 392 48 536 176)
	(text "RxUnit" (rect 5 0 39 12)(font "Arial" ))
	(text "inst" (rect 8 112 25 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "Clk" (rect 0 0 16 12)(font "Arial" ))
		(text "Clk" (rect 21 27 37 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 0 64)
		(input)
		(text "Enable" (rect 0 0 33 12)(font "Arial" ))
		(text "Enable" (rect 21 59 54 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "RxD" (rect 0 0 22 12)(font "Arial" ))
		(text "RxD" (rect 21 75 43 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "RD" (rect 0 0 16 12)(font "Arial" ))
		(text "RD" (rect 21 91 37 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 144 32)
		(output)
		(text "FErr" (rect 0 0 21 12)(font "Arial" ))
		(text "FErr" (rect 102 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 1))
	)
	(port
		(pt 144 48)
		(output)
		(text "OErr" (rect 0 0 22 12)(font "Arial" ))
		(text "OErr" (rect 101 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 1))
	)
	(port
		(pt 144 64)
		(output)
		(text "DRdy" (rect 0 0 29 12)(font "Arial" ))
		(text "DRdy" (rect 94 59 123 71)(font "Arial" ))
		(line (pt 144 64)(pt 128 64)(line_width 1))
	)
	(port
		(pt 144 80)
		(output)
		(text "DataIn[7..0]" (rect 0 0 59 12)(font "Arial" ))
		(text "DataIn[7..0]" (rect 64 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 192 48 328 144)
	(text "ClkUnit" (rect 5 0 41 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "SysClk" (rect 0 0 36 12)(font "Arial" ))
		(text "SysClk" (rect 21 27 57 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 136 32)
		(output)
		(text "EnableRx" (rect 0 0 47 12)(font "Arial" ))
		(text "EnableRx" (rect 68 27 115 39)(font "Arial" ))
		(line (pt 136 32)(pt 120 32)(line_width 1))
	)
	(port
		(pt 136 48)
		(output)
		(text "EnableTx" (rect 0 0 44 12)(font "Arial" ))
		(text "EnableTx" (rect 71 43 115 55)(font "Arial" ))
		(line (pt 136 48)(pt 120 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 120 80)(line_width 1))
	)
)
(symbol
	(rect 360 232 392 248)
	(text "VCC" (rect 5 6 25 16)(font "Arial" (font_size 6)))
	(text "inst6" (rect 6 -1 29 11)(font "Arial" )(invisible))
	(port
		(pt 16 0)
		(output)
		(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
		(text "1" (rect 8 -3 13 9)(font "Courier New" (bold))(invisible))
		(line (pt 16 0)(pt 16 8)(line_width 1))
	)
	(drawing
		(line (pt 24 8)(pt 8 8)(line_width 1))
	)
	(rotate180)
)
(symbol
	(rect 336 280 512 376)
	(text "PWM" (rect 5 0 30 12)(font "Arial" ))
	(text "inst3" (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 "width_word[6..0]" (rect 0 0 79 12)(font "Arial" ))
		(text "width_word[6..0]" (rect 21 43 100 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 176 32)
		(output)
		(text "to_servo" (rect 0 0 43 12)(font "Arial" ))
		(text "to_servo" (rect 112 27 155 39)(font "Arial" ))
		(line (pt 176 32)(pt 160 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 160 80)(line_width 1))
	)
)
(symbol
	(rect 336 400 512 496)
	(text "PWM" (rect 5 0 30 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 0 48)
		(input)
		(text "width_word[6..0]" (rect 0 0 79 12)(font "Arial" ))
		(text "width_word[6..0]" (rect 21 43 100 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 176 32)
		(output)
		(text "to_servo" (rect 0 0 43 12)(font "Arial" ))
		(text "to_servo" (rect 112 27 155 39)(font "Arial" ))
		(line (pt 176 32)(pt 160 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 160 80)(line_width 1))
	)
)
(symbol
	(rect 584 96 816 192)
	(text "SEL" (rect 5 0 25 12)(font "Arial" ))
	(text "inst2" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "RBuffer[7..0]" (rect 0 0 66 12)(font "Arial" ))
		(text "RBuffer[7..0]" (rect 21 27 87 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "DReady" (rect 0 0 41 12)(font "Arial" ))
		(text "DReady" (rect 21 43 62 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "Rst" (rect 0 0 17 12)(font "Arial" ))
		(text "Rst" (rect 21 59 38 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 232 32)
		(output)
		(text "Servo_Width_Ctr[6..0]" (rect 0 0 110 12)(font "Arial" ))
		(text "Servo_Width_Ctr[6..0]" (rect 101 27 211 39)(font "Arial" ))
		(line (pt 232 32)(pt 216 32)(line_width 3))
	)
	(port
		(pt 232 48)
		(output)
		(text "Motor_Width_Ctr[6..0]" (rect 0 0 108 12)(font "Arial" ))
		(text "Motor_Width_Ctr[6..0]" (rect 103 43 211 55)(font "Arial" ))
		(line (pt 232 48)(pt 216 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 216 80)(line_width 1))
	)
)
(symbol
	(rect 88 112 152 160)
	(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
	(text "inst7" (rect 3 37 26 49)(font "Arial" ))
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 14 16)(line_width 1))
	)
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 14 32)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(line (pt 42 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 14 12)(pt 30 12)(line_width 1))
		(line (pt 14 37)(pt 31 37)(line_width 1))
		(line (pt 14 12)(pt 14 37)(line_width 1))
		(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
	)
)
(connector
	(pt 392 128)
	(pt 352 128)
)
(connector
	(pt 392 80)
	(pt 360 80)
)
(connector
	(pt 360 32)
	(pt 360 80)
)
(connector
	(pt 392 96)
	(pt 344 96)
)
(connector
	(pt 336 112)
	(pt 392 112)
)
(connector
	(pt 328 80)
	(pt 336 80)
)
(connector
	(pt 336 80)
	(pt 336 112)
)
(connector
	(pt 584 128)
	(pt 536 128)
	(bus)
)
(connector
	(pt 560 112)
	(pt 536 112)
)
(connector
	(pt 560 112)
	(pt 560 144)
)
(connector
	(pt 560 144)
	(pt 584 144)
)
(connector
	(pt 192 80)
	(pt 160 80)
)
(connector
	(pt 144 32)
	(pt 160 32)
)
(connector
	(pt 160 32)
	(pt 360 32)
)
(connector
	(pt 160 312)
	(pt 336 312)
)
(connector
	(pt 160 32)
	(pt 160 80)
)
(connector
	(pt 816 144)
	(pt 832 144)
	(bus)
)
(connector
	(pt 832 264)
	(pt 832 144)
	(bus)
)
(connector
	(pt 832 264)
	(pt 288 264)
	(bus)
)
(connector
	(pt 288 264)
	(pt 288 328)
	(bus)
)
(connector
	(pt 288 328)
	(pt 336 328)
	(bus)
)
(connector
	(pt 816 128)
	(pt 856 128)
	(bus)
)
(connector
	(pt 856 128)
	(pt 856 384)
	(bus)
)
(connector
	(pt 160 432)
	(pt 336 432)
)
(connector
	(pt 160 80)
	(pt 160 312)
)
(connector
	(pt 160 312)
	(pt 160 432)
)
(connector
	(pt 856 384)
	(pt 288 384)
	(bus)
)
(connector
	(pt 288 384)
	(pt 288 448)
	(bus)
)
(connector
	(pt 288 448)
	(pt 336 448)
	(bus)
)
(connector
	(pt 512 432)
	(pt 552 432)
)
(connector
	(pt 512 312)
	(pt 552 312)
)
(connector
	(pt 392 144)
	(pt 376 144)
)
(connector
	(pt 376 144)
	(pt 376 232)
)
(connector
	(pt 352 240)
	(pt 248 240)
)
(connector
	(pt 352 128)
	(pt 352 240)
)
(connector
	(pt 344 96)
	(pt 344 200)
)
(connector
	(pt 560 200)
	(pt 560 160)
)
(connector
	(pt 176 200)
	(pt 344 200)
)
(connector
	(pt 344 200)
	(pt 560 200)
)
(connector
	(pt 560 160)
	(pt 584 160)
)
(connector
	(pt 176 96)
	(pt 192 96)
)
(connector
	(pt 80 160)
	(pt 80 144)
)
(connector
	(pt 80 144)
	(pt 88 144)
)
(connector
	(pt 72 96)
	(pt 80 96)
)
(connector
	(pt 80 96)
	(pt 80 128)
)
(connector
	(pt 80 128)
	(pt 88 128)
)
(connector
	(pt 152 136)
	(pt 176 136)
)
(connector
	(pt 176 96)
	(pt 176 136)
)
(connector
	(pt 176 136)
	(pt 176 200)
)
(connector
	(pt -120 160)
	(pt 80 160)
)
(junction (pt 160 32))
(junction (pt 160 80))
(junction (pt 160 312))
(junction (pt 344 200))
(junction (pt 176 136))

⌨️ 快捷键说明

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