step_a.bdf
来自「步进的控制电机控制 c++环境下开发」· BDF 代码 · 共 1,230 行 · 第 1/3 页
BDF
1,230 行
(pt 0 56)
(input)
(text "S" (rect 22 48 30 62)(font "Arial" (font_size 8)))
(text "S" (rect 22 48 30 62)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 16 56)(line_width 1))
)
(port
(pt 120 40)
(output)
(text "Y" (rect 93 32 102 46)(font "Arial" (font_size 8)))
(text "Y" (rect 93 32 102 46)(font "Arial" (font_size 8)))
(line (pt 104 40)(pt 120 40)(line_width 1))
)
(drawing
(text "MULTIPLEXER" (rect 30 65 109 79)(font "Arial" (font_size 8)))
(line (pt 16 16)(pt 104 16)(line_width 1))
(line (pt 16 64)(pt 104 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 104 64)(pt 104 16)(line_width 1))
)
)
(symbol
(rect 392 264 528 312)
(text "CNT8" (rect 50 -1 87 15)(font "Courier New" (font_size 10)(bold)))
(text "83" (rect 0 39 11 51)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 136 24)
(output)
(text "CQ[3..0]" (rect 78 20 125 32)(font "Courier New" (bold)))
(text "CQ[3..0]" (rect 78 20 125 32)(font "Courier New" (bold)))
(line (pt 120 24)(pt 136 24)(line_width 3))
)
(drawing
(line (pt 16 32)(pt 120 32)(line_width 1))
(line (pt 16 16)(pt 120 16)(line_width 1))
(line (pt 16 32)(pt 16 16)(line_width 1))
(line (pt 120 32)(pt 120 16)(line_width 1))
)
)
(symbol
(rect 640 248 768 312)
(text "cmp3" (rect 46 -1 83 15)(font "Courier New" (font_size 10)(bold)))
(text "96" (rect 0 55 11 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 3))
)
(port
(pt 0 40)
(input)
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 128 24)
(output)
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(line (pt 112 24)(pt 128 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 112 48)(line_width 1))
(line (pt 16 16)(pt 112 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 112 48)(pt 112 16)(line_width 1))
)
)
(symbol
(rect 616 560 744 624)
(text "cmp3" (rect 46 -1 83 15)(font "Courier New" (font_size 10)(bold)))
(text "131" (rect 0 55 17 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 3))
)
(port
(pt 0 40)
(input)
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 128 24)
(output)
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(line (pt 112 24)(pt 128 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 112 48)(line_width 1))
(line (pt 16 16)(pt 112 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 112 48)(pt 112 16)(line_width 1))
)
)
(symbol
(rect 640 184 768 248)
(text "cmp3" (rect 46 -1 83 15)(font "Courier New" (font_size 10)(bold)))
(text "95" (rect 0 55 11 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 3))
)
(port
(pt 0 40)
(input)
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 128 24)
(output)
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(line (pt 112 24)(pt 128 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 112 48)(line_width 1))
(line (pt 16 16)(pt 112 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 112 48)(pt 112 16)(line_width 1))
)
)
(symbol
(rect 640 120 768 184)
(text "cmp3" (rect 46 -1 83 15)(font "Courier New" (font_size 10)(bold)))
(text "94" (rect 0 55 11 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 3))
)
(port
(pt 0 40)
(input)
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 128 24)
(output)
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(line (pt 112 24)(pt 128 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 112 48)(line_width 1))
(line (pt 16 16)(pt 112 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 112 48)(pt 112 16)(line_width 1))
)
)
(symbol
(rect 640 56 768 120)
(text "cmp3" (rect 46 -1 83 15)(font "Courier New" (font_size 10)(bold)))
(text "93" (rect 0 55 11 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(text "a[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 3))
)
(port
(pt 0 40)
(input)
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "b[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 128 24)
(output)
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(text "agb" (rect 95 20 112 32)(font "Courier New" (bold)))
(line (pt 112 24)(pt 128 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 112 48)(line_width 1))
(line (pt 16 16)(pt 112 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 112 48)(pt 112 16)(line_width 1))
)
)
(symbol
(rect 488 736 656 800)
(text "FREQTEST" (rect 46 -1 121 15)(font "Courier New" (font_size 10)(bold)))
(text "121" (rect 0 55 17 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "FSIN" (rect 20 36 43 48)(font "Courier New" (bold)))
(text "FSIN" (rect 20 36 43 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 1))
)
(port
(pt 168 24)
(output)
(text "CCOUT" (rect 125 20 154 32)(font "Courier New" (bold)))
(text "CCOUT" (rect 125 20 154 32)(font "Courier New" (bold)))
(line (pt 152 24)(pt 168 24)(line_width 1))
)
(port
(pt 168 40)
(output)
(text "DOUT[15..0]" (rect 95 36 159 48)(font "Courier New" (bold)))
(text "DOUT[15..0]" (rect 95 36 159 48)(font "Courier New" (bold)))
(line (pt 152 40)(pt 168 40)(line_width 3))
)
(drawing
(line (pt 16 48)(pt 152 48)(line_width 1))
(line (pt 16 16)(pt 152 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 152 48)(pt 152 16)(line_width 1))
)
)
(symbol
(rect 368 184 528 248)
(text "DEC2" (rect 62 -1 99 15)(font "Courier New" (font_size 10)(bold)))
(text "125" (rect 0 55 17 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "A[1..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(text "A[1..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 160 24)
(output)
(text "D[3..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
(text "D[3..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
(line (pt 144 24)(pt 160 24)(line_width 3))
)
(drawing
(line (pt 16 48)(pt 144 48)(line_width 1))
(line (pt 16 16)(pt 144 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 144 48)(pt 144 16)(line_width 1))
)
)
(symbol
(rect 392 328 528 408)
(text "CNT24" (rect 45 -1 92 15)(font "Courier New" (font_size 10)(bold)))
(text "127" (rect 0 71 17 83)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "EN" (rect 20 36 31 48)(font "Courier New" (bold)))
(text "EN" (rect 20 36 31 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 1))
)
(port
(pt 0 56)
(input)
(text "U_D" (rect 20 52 37 64)(font "Courier New" (bold)))
(text "U_D" (rect 20 52 37 64)(font "Courier New" (bold)))
(line (pt 0 56)(pt 16 56)(line_width 1))
)
(port
(pt 136 40)
(output)
(text "CQ[4..0]" (rect 78 36 125 48)(font "Courier New" (bold)))
(text "CQ[4..0]" (rect 78 36 125 48)(font "Courier New" (bold)))
(line (pt 120 40)(pt 136 40)(line_width 3))
)
(drawing
(line (pt 16 64)(pt 120 64)(line_width 1))
(line (pt 16 16)(pt 120 16)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 120 64)(pt 120 16)(line_width 1))
)
)
(symbol
(rect 128 584 264 632)
(text "CNT5" (rect 50 -1 87 15)(font "Courier New" (font_size 10)(bold)))
(text "132" (rect 0 39 17 51)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 136 24)
(output)
(text "AA[4..1]" (rect 78 20 125 32)(font "Courier New" (bold)))
(text "AA[4..1]" (rect 78 20 125 32)(font "Courier New" (bold)))
(line (pt 120 24)(pt 136 24)(line_width 3))
)
(drawing
(line (pt 16 32)(pt 120 32)(line_width 1))
(line (pt 16 16)(pt 120 16)(line_width 1))
(line (pt 16 32)(pt 16 16)(line_width 1))
(line (pt 120 32)(pt 120 16)(line_width 1))
)
)
(symbol
(rect 344 536 496 600)
(text "DECD" (rect 58 -1 95 15)(font "Courier New" (font_size 10)(bold)))
(text "136" (rect 0 55 17 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(text "CLK" (rect 20 20 37 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 152 24)
(output)
(text "DSPY[1..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
(text "DSPY[1..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
(line (pt 136 24)(pt 152 24)(line_width 3))
)
(port
(pt 152 40)
(output)
(text "D[3..0]" (rect 99 36 140 48)(font "Courier New" (bold)))
(text "D[3..0]" (rect 99 36 140 48)(font "Courier New" (bold)))
(line (pt 136 40)(pt 152 40)(line_width 3))
)
(drawing
(line (pt 16 48)(pt 136 48)(line_width 1))
(line (pt 16 16)(pt 136 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 136 48)(pt 136 16)(line_width 1))
)
)
(symbol
(rect 608 312 768 392)
(text "rom3" (rect 66 1 100 17)(font "Arial" (font_size 10)))
(text "inst" (rect 8 64 25 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "address[4..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
(text "address[4..0]" (rect 20 26 95 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "inclock" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "inclock" (rect 26 42 64 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 160 40)
(output)
(text "q[15..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[15..0]" (rect 105 34 147 48)(font "Arial" (font_size 8)))
(line (pt 160 40)(pt 144 40)(line_width 3))
)
(drawing
(line (pt 16 16)(pt 144 16)(line_width 1))
(line (pt 144 16)(pt 144 64)(line_width 1))
(line (pt 144 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))
)
)
(connector
(pt 496 560)
(pt 560 560)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?