step_a.bdf

来自「步进的控制电机控制 c++环境下开发」· BDF 代码 · 共 1,230 行 · 第 1/3 页

BDF
1,230
字号
/*
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 176 320 344 336)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "clk0" (rect 52 1 74 15)(font "Arial" (font_size 8)))
	(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 64 336 152 368))
)
(pin
	(input)
	(rect 112 744 280 760)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "Z_F" (rect 52 1 74 15)(font "Arial" (font_size 8)))
	(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 112 688 200 720))
)
(pin
	(input)
	(rect 256 840 424 856)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "CNTT" (rect 45 1 75 15)(font "Arial" (font_size 8)))
	(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 136 856 224 888))
)
(pin
	(input)
	(rect 256 816 424 832)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "F1HZ" (rect 45 1 75 15)(font "Arial" (font_size 8)))
	(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 136 784 224 816))
)
(pin
	(input)
	(rect 168 552 336 568)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "D_STP" (rect 39 1 76 15)(font "Arial" (font_size 8)))
	(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 40 520 128 552))
)
(pin
	(input)
	(rect 184 392 352 408)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "u_d" (rect 53 1 74 15)(font "Arial" (font_size 8)))
	(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 64 408 152 440))
)
(pin
	(input)
	(rect 184 280 352 296)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "clk5" (rect 52 1 74 15)(font "Arial" (font_size 8)))
	(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 64 248 152 280))
)
(pin
	(input)
	(rect 368 64 536 80)
	(text "INPUT" (rect 7 7 35 17)(font "Arial" (font_size 6)))
	(text "S" (rect 96 1 104 15)(font "Arial" (font_size 8)))
	(pt 0 8)
	(drawing
		(line (pt 76 4)(pt 51 4)(line_width 1))
		(line (pt 76 12)(pt 51 12)(line_width 1))
		(line (pt 47 8)(pt 0 8)(line_width 1))
		(line (pt 76 4)(pt 76 12)(line_width 1))
		(line (pt 51 12)(pt 47 8)(line_width 1))
		(line (pt 51 4)(pt 47 8)(line_width 1))
	)
	(rotate180)
	(text "VCC" (rect 12 -1 32 9)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 368 24 456 56))
)
(pin
	(output)
	(rect 376 112 552 128)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "Y[3..0]" (rect 90 0 127 14)(font "Arial" (font_size 8)))
	(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 464 -56 552 16))
)
(pin
	(output)
	(rect 576 536 752 552)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "DLED[1..0]" (rect 90 0 149 14)(font "Arial" (font_size 8)))
	(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 840 552 928 600))
)
(pin
	(output)
	(rect 576 672 752 688)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "Z" (rect 90 0 98 14)(font "Arial" (font_size 8)))
	(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 808 640 896 672))
)
(pin
	(output)
	(rect 576 696 752 712)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "F" (rect 90 0 97 14)(font "Arial" (font_size 8)))
	(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 808 712 896 744))
)
(pin
	(output)
	(rect 672 768 848 784)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "D[15..0]" (rect 90 0 133 14)(font "Arial" (font_size 8)))
	(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 888 784 976 1024))
)
(pin
	(output)
	(rect 672 752 848 768)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "COUT" (rect 90 0 123 14)(font "Arial" (font_size 8)))
	(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 240 664 272 696)
	(text "GND" (rect 7 7 17 28)(font "Arial" (font_size 6))(vertical))
	(text "64" (rect 1 -2 11 7)(font "Arial" (font_size 6))(vertical))
	(port
		(pt 32 16)
		(output)
		(text "1" (rect 25 23 37 28)(font "Courier New" (bold))(vertical)(invisible))
		(text "1" (rect 25 23 37 28)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 24 16)(pt 32 16)(line_width 1))
	)
	(drawing
		(line (pt 24 8)(pt 24 24)(line_width 1))
		(line (pt 24 8)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 24 24)(line_width 1))
	)
	(rotate270)
)
(symbol
	(rect 336 344 368 376)
	(text "GND" (rect 7 7 17 28)(font "Arial" (font_size 6))(vertical))
	(text "128" (rect 1 -6 11 8)(font "Arial" (font_size 6))(vertical))
	(port
		(pt 32 16)
		(output)
		(text "1" (rect 25 23 37 28)(font "Courier New" (bold))(vertical)(invisible))
		(text "1" (rect 25 23 37 28)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 24 16)(pt 32 16)(line_width 1))
	)
	(drawing
		(line (pt 24 8)(pt 24 24)(line_width 1))
		(line (pt 24 8)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 24 24)(line_width 1))
	)
	(rotate270)
)
(symbol
	(rect 248 80 360 168)
	(text "BUSMUX" (rect 28 71 91 87)(font "Arial" (font_size 10)))
	(text "41" (rect 3 -1 12 9)(font "Arial" (font_size 6)))
	(port
		(pt 0 24)
		(input)
		(text "datab[WIDTH-1..0]" (rect 6 23 108 37)(font "Arial" (font_size 8)))
		(text "datab[]" (rect 6 23 44 37)(font "Arial" (font_size 8)))
		(line (pt 0 24)(pt 44 24)(line_width 3))
	)
	(port
		(pt 56 0)
		(input)
		(text "sel" (rect 59 4 75 18)(font "Arial" (font_size 8)))
		(text "sel" (rect 59 4 75 18)(font "Arial" (font_size 8)))
		(line (pt 56 0)(pt 56 16)(line_width 1))
	)
	(port
		(pt 0 56)
		(input)
		(text "dataa[WIDTH-1..0]" (rect 6 55 108 69)(font "Arial" (font_size 8)))
		(text "dataa[]" (rect 6 55 44 69)(font "Arial" (font_size 8)))
		(line (pt 0 56)(pt 44 56)(line_width 3))
	)
	(port
		(pt 112 40)
		(output)
		(text "result[WIDTH-1..0]" (rect 75 39 177 53)(font "Arial" (font_size 8)))
		(text "result[]" (rect 75 39 113 53)(font "Arial" (font_size 8)))
		(line (pt 68 40)(pt 112 40)(line_width 3))
	)
	(parameter
		"WIDTH"
		" 4"
		"Width of I/O, any integer > 0"
		" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32" "40" "48" "56" "64" 
	)
	(drawing
		(text "0" (rect 52 47 56 57)(font "Arial" (font_size 6)))
		(text "1" (rect 52 23 56 33)(font "Arial" (font_size 6)))
		(line (pt 68 24)(pt 68 56)(line_width 1))
		(line (pt 44 8)(pt 44 72)(line_width 1))
		(line (pt 44 72)(pt 68 56)(line_width 1))
		(line (pt 44 8)(pt 68 24)(line_width 1))
	)
	(flipx)
	(annotation_block (parameter)(rect 248 -8 352 24))
)
(symbol
	(rect 336 728 456 808)
	(text "21mux" (rect 41 64 87 80)(font "Arial" (font_size 10)))
	(text "66" (rect 2 0 11 10)(font "Arial" (font_size 6)))
	(port
		(pt 0 56)
		(input)
		(text "A" (rect 22 50 31 64)(font "Arial" (font_size 8)))
		(text "A" (rect 22 50 31 64)(font "Arial" (font_size 8)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "B" (rect 22 34 30 48)(font "Arial" (font_size 8)))
		(text "B" (rect 22 34 30 48)(font "Arial" (font_size 8)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 0 24)
		(input)
		(text "S" (rect 22 18 30 32)(font "Arial" (font_size 8)))
		(text "S" (rect 22 18 30 32)(font "Arial" (font_size 8)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 120 40)
		(output)
		(text "Y" (rect 93 34 102 48)(font "Arial" (font_size 8)))
		(text "Y" (rect 93 34 102 48)(font "Arial" (font_size 8)))
		(line (pt 104 40)(pt 120 40)(line_width 1))
	)
	(drawing
		(text "MULTIPLEXER" (rect 30 1 109 15)(font "Arial" (font_size 8)))
		(line (pt 16 64)(pt 104 64)(line_width 1))
		(line (pt 16 16)(pt 104 16)(line_width 1))
		(line (pt 16 16)(pt 16 64)(line_width 1))
		(line (pt 104 16)(pt 104 64)(line_width 1))
	)
	(flipx)
)
(symbol
	(rect 336 640 456 720)
	(text "21mux" (rect 41 0 87 16)(font "Arial" (font_size 10)))
	(text "65" (rect 2 70 11 80)(font "Arial" (font_size 6)))
	(port
		(pt 0 24)
		(input)
		(text "A" (rect 22 16 31 30)(font "Arial" (font_size 8)))
		(text "A" (rect 22 16 31 30)(font "Arial" (font_size 8)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "B" (rect 22 32 30 46)(font "Arial" (font_size 8)))
		(text "B" (rect 22 32 30 46)(font "Arial" (font_size 8)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port

⌨️ 快捷键说明

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