spi.bdf

来自「很多仪器都输出同步时钟」· BDF 代码 · 共 1,951 行 · 第 1/4 页

BDF
1,951
字号
		(text "dsprd" (rect 0 0 27 12)(font "Arial" ))
		(text "dsprd" (rect 21 171 48 183)(font "Arial" ))
		(line (pt 0 176)(pt 16 176)(line_width 1))
	)
	(port
		(pt 0 192)
		(input)
		(text "dspwe" (rect 0 0 30 12)(font "Arial" ))
		(text "dspwe" (rect 21 187 51 199)(font "Arial" ))
		(line (pt 0 192)(pt 16 192)(line_width 1))
	)
	(port
		(pt 0 208)
		(input)
		(text "dspstrb" (rect 0 0 36 12)(font "Arial" ))
		(text "dspstrb" (rect 21 203 57 215)(font "Arial" ))
		(line (pt 0 208)(pt 16 208)(line_width 1))
	)
	(port
		(pt 0 224)
		(input)
		(text "dspvisoe" (rect 0 0 44 12)(font "Arial" ))
		(text "dspvisoe" (rect 21 219 65 231)(font "Arial" ))
		(line (pt 0 224)(pt 16 224)(line_width 1))
	)
	(port
		(pt 0 240)
		(input)
		(text "d[15..0]" (rect 0 0 37 12)(font "Arial" ))
		(text "d[15..0]" (rect 21 235 58 247)(font "Arial" ))
		(line (pt 0 240)(pt 16 240)(line_width 3))
	)
	(port
		(pt 0 256)
		(input)
		(text "a[15..0]" (rect 0 0 37 12)(font "Arial" ))
		(text "a[15..0]" (rect 21 251 58 263)(font "Arial" ))
		(line (pt 0 256)(pt 16 256)(line_width 3))
	)
	(port
		(pt 0 272)
		(input)
		(text "dataout[0..63]" (rect 0 0 68 12)(font "Arial" ))
		(text "dataout[0..63]" (rect 21 267 89 279)(font "Arial" ))
		(line (pt 0 272)(pt 16 272)(line_width 3))
	)
	(port
		(pt 0 288)
		(input)
		(text "wrfull" (rect 0 0 25 12)(font "Arial" ))
		(text "wrfull" (rect 21 283 46 295)(font "Arial" ))
		(line (pt 0 288)(pt 16 288)(line_width 1))
	)
	(port
		(pt 192 32)
		(output)
		(text "spisomi" (rect 0 0 37 12)(font "Arial" ))
		(text "spisomi" (rect 134 27 171 39)(font "Arial" ))
		(line (pt 192 32)(pt 176 32)(line_width 1))
	)
	(port
		(pt 192 48)
		(output)
		(text "spiclkout" (rect 0 0 43 12)(font "Arial" ))
		(text "spiclkout" (rect 128 43 171 55)(font "Arial" ))
		(line (pt 192 48)(pt 176 48)(line_width 1))
	)
	(port
		(pt 192 64)
		(output)
		(text "ready" (rect 0 0 28 12)(font "Arial" ))
		(text "ready" (rect 143 59 171 71)(font "Arial" ))
		(line (pt 192 64)(pt 176 64)(line_width 1))
	)
	(port
		(pt 192 80)
		(output)
		(text "rsdsp" (rect 0 0 27 12)(font "Arial" ))
		(text "rsdsp" (rect 144 75 171 87)(font "Arial" ))
		(line (pt 192 80)(pt 176 80)(line_width 1))
	)
	(port
		(pt 192 96)
		(output)
		(text "re" (rect 0 0 9 12)(font "Arial" ))
		(text "re" (rect 162 91 171 103)(font "Arial" ))
		(line (pt 192 96)(pt 176 96)(line_width 1))
	)
	(port
		(pt 192 112)
		(output)
		(text "fiforead" (rect 0 0 38 12)(font "Arial" ))
		(text "fiforead" (rect 133 107 171 119)(font "Arial" ))
		(line (pt 192 112)(pt 176 112)(line_width 1))
	)
	(port
		(pt 192 128)
		(output)
		(text "clkout" (rect 0 0 29 12)(font "Arial" ))
		(text "clkout" (rect 142 123 171 135)(font "Arial" ))
		(line (pt 192 128)(pt 176 128)(line_width 1))
	)
	(port
		(pt 192 144)
		(output)
		(text "count[6..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "count[6..0]" (rect 118 139 171 151)(font "Arial" ))
		(line (pt 192 144)(pt 176 144)(line_width 3))
	)
	(port
		(pt 192 160)
		(output)
		(text "datain[63..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "datain[63..0]" (rect 110 155 171 167)(font "Arial" ))
		(line (pt 192 160)(pt 176 160)(line_width 3))
	)
	(port
		(pt 192 176)
		(output)
		(text "enable" (rect 0 0 31 12)(font "Arial" ))
		(text "enable" (rect 140 171 171 183)(font "Arial" ))
		(line (pt 192 176)(pt 176 176)(line_width 1))
	)
	(port
		(pt 192 192)
		(output)
		(text "clk1" (rect 0 0 20 12)(font "Arial" ))
		(text "clk1" (rect 151 187 171 199)(font "Arial" ))
		(line (pt 192 192)(pt 176 192)(line_width 1))
	)
	(port
		(pt 192 208)
		(output)
		(text "wrreq" (rect 0 0 25 12)(font "Arial" ))
		(text "wrreq" (rect 146 203 171 215)(font "Arial" ))
		(line (pt 192 208)(pt 176 208)(line_width 1))
	)
	(port
		(pt 192 224)
		(output)
		(text "wrclk" (rect 0 0 24 12)(font "Arial" ))
		(text "wrclk" (rect 147 219 171 231)(font "Arial" ))
		(line (pt 192 224)(pt 176 224)(line_width 1))
	)
	(port
		(pt 192 240)
		(output)
		(text "clkcount[31..0]" (rect 0 0 73 12)(font "Arial" ))
		(text "clkcount[31..0]" (rect 98 235 171 247)(font "Arial" ))
		(line (pt 192 240)(pt 176 240)(line_width 3))
	)
	(port
		(pt 192 256)
		(output)
		(text "testdata[0..63]" (rect 0 0 71 12)(font "Arial" ))
		(text "testdata[0..63]" (rect 100 251 171 263)(font "Arial" ))
		(line (pt 192 256)(pt 176 256)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 176 304)(line_width 1))
	)
)
(symbol
	(rect 552 1296 584 1312)
	(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
	(text "inst11" (rect 3 5 32 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 344 1584 376 1616)
	(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
	(text "inst14" (rect 3 21 32 33)(font "Arial" )(invisible))
	(port
		(pt 16 0)
		(output)
		(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
		(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
		(line (pt 16 8)(pt 16 0)(line_width 1))
	)
	(drawing
		(line (pt 8 8)(pt 16 16)(line_width 1))
		(line (pt 16 16)(pt 24 8)(line_width 1))
		(line (pt 8 8)(pt 24 8)(line_width 1))
	)
)
(symbol
	(rect 104 1152 248 1232)
	(text "lpm_counter1" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst17" (rect 8 64 37 76)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 144 40)
		(output)
		(text "q[3..0]" (rect 0 0 35 14)(font "Arial" (font_size 8)))
		(text "q[3..0]" (rect 95 34 130 48)(font "Arial" (font_size 8)))
		(line (pt 144 40)(pt 128 40)(line_width 3))
	)
	(port
		(pt 144 56)
		(output)
		(text "cout" (rect 0 0 24 14)(font "Arial" (font_size 8)))
		(text "cout" (rect 104 50 128 64)(font "Arial" (font_size 8)))
		(line (pt 144 56)(pt 128 56)(line_width 1))
	)
	(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 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 26)(pt 22 32)(line_width 1))
		(line (pt 22 32)(pt 16 38)(line_width 1))
	)
)
(symbol
	(rect 304 1112 448 1192)
	(text "lpm_counter2" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst18" (rect 8 64 37 76)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 144 56)
		(output)
		(text "q[29..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "q[29..0]" (rect 89 50 131 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" ))
		(text "modulus 750000000" (rect 45 27 142 39)(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 26)(pt 22 32)(line_width 1))
		(line (pt 22 32)(pt 16 38)(line_width 1))
	)
)
(symbol
	(rect 504 1120 632 1216)
	(text "lpm_compare1" (rect 22 1 122 17)(font "Arial" (font_size 10)))
	(text "inst19" (rect 8 80 37 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "dataa[29..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
		(text "dataa[29..0]" (rect 20 42 87 56)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 128 56)
		(output)
		(text "agb" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "agb" (rect 91 50 112 64)(font "Arial" (font_size 8)))
		(line (pt 128 56)(pt 112 56)(line_width 1))
	)
	(drawing
		(text "unsigned compare" (rect 36 17 125 29)(font "Arial" ))
		(text "datab[]=7500000" (rect 20 58 115 72)(font "Arial" (font_size 8)))
		(line (pt 16 16)(pt 112 16)(line_width 1))
		(line (pt 112 16)(pt 112 80)(line_width 1))
		(line (pt 112 80)(pt 16 80)(line_width 1))
		(line (pt 16 80)(pt 16 16)(line_width 1))
	)
)
(symbol
	(rect 208 -88 448 88)
	(text "pll0" (rect 110 0 133 16)(font "Arial" (font_size 10)))
	(text "inst12" (rect 8 160 37 172)(font "Arial" ))
	(port
		(pt 0 64)
		(input)
		(text "inclk0" (rect 0 0 31 14)(font "Arial" (font_size 8)))
		(text "inclk0" (rect 4 51 35 65)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 40 64)(line_width 1))
	)
	(port
		(pt 240 64)
		(output)
		(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
		(text "c0" (rect 225 51 239 65)(font "Arial" (font_size 8)))
		(line (pt 240 64)(pt 208 64)(line_width 1))
	)
	(port
		(pt 240 80)
		(output)
		(text "c1" (rect 0 0 14 14)(font "Arial" (font_size 8)))
		(text "c1" (rect 225 67 239 81)(font "Arial" (font_size 8)))
		(line (pt 240 80)(pt 208 80)(line_width 1))
	)
	(drawing
		(text "Cyclone" (rect 197 161 238 173)(font "Arial" ))
		(text "inclk0 frequency: 50.000 MHz" (rect 50 59 197 71)(font "Arial" ))
		(text "Operation Mode: Normal" (rect 50 73 169 85)(font "Arial" ))
		(text "Clk " (rect 51 96 71 108)(font "Arial" ))
		(text "Ratio" (rect 73 96 98 108)(font "Arial" ))
		(text "Ph (dg)" (rect 100 96 135 108)(font "Arial" ))
		(text "DC (%)" (rect 135 96 171 108)(font "Arial" ))
		(text "c0" (rect 54 111 65 123)(font "Arial" ))
		(text "2/5" (rect 78 111 93 123)(font "Arial" ))
		(text "0.00" (rect 106 111 127 123)(font "Arial" ))
		(text "50.00" (rect 139 111 166 123)(font "Arial" ))
		(text "c1" (rect 54 126 65 138)(font "Arial" ))
		(text "1/2" (rect 78 126 93 138)(font "Arial" ))
		(text "0.00" (rect 106 126 127 138)(font "Arial" ))
		(text "50.00" (rect 139 126 166 138)(font "Arial" ))
		(line (pt 0 0)(pt 241 0)(line_width 1))
		(line (pt 241 0)(pt 241 177)(line_width 1))
		(line (pt 0 177)(pt 241 177)(line_width 1))
		(line (pt 0 0)(pt 0 177)(line_width 1))
		(line (pt 48 94)(pt 168 94)(line_width 1))
		(line (pt 48 108)(pt 168 108)(line_width 1))
		(line (pt 48 123)(pt 168 123)(line_width 1))
		(line (pt 48 138)(pt 168 138)(line_width 1))
		(line (pt 48 94)(pt 48 138)(line_width 1))
		(line (pt 70 94)(pt 70 138)(line_width 3))
		(line (pt 97 94)(pt 97 138)(line_width 3))
		(line (pt 132 94)(pt 132 138)(line_width 3))
		(line (pt 167 94)(pt 167 138)(line_width 1))
		(line (pt 40 48)(pt 208 48)(line_width 1))
		(line (pt 208 48)(pt 208 160)(line_width 1))
		(line (pt 40 160)(pt 208 160)(line_width 1))
		(line (pt 40 48)(pt 40 160)(line_width 1))
	)
)
(symbol
	(rect 344 992 472 1088)
	(text "syn_gen" (rect 5 0 47 12)(font "Arial" ))
	(text "inst2" (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 "syn_in" (rect 0 0 33 12)(font "Arial" ))
		(text "syn_in" (rect 21 43 54 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 128 32)
		(output)
		(text "syn_out" (rect 0 0 40 12)(font "Arial" ))
		(text "syn_out" (rect 67 27 107 39)(font "Arial" ))
		(line (pt 128 32)(pt 112 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 112 80)(line_width 1))
	)
)
(symbol
	(rect 304 1488 336 1504)
	(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
	(text "inst13" (rect 3 5 32 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 664 792 792 888)
	(text "lpm_compare0" (rect 22 1 122 17)(font "Arial" (font_size 10)))
	(text "inst3" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 48)
		(input)
		(text "dataa[17..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
		(text "dataa[17..0]" (rect 20 42 87 56)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 128 56)
		(output)
		(text "alb" (rect 0 0 16 14)(font "Arial" (font_size 8)))
		(text "alb" (rect 95 50 111 64)(font "Arial" (font_size 8)))
		(line (pt 128 56)(pt 112 56)(line_width 1))
	)
	(drawing
		(text "unsigned compare" (rect 36 17 125 29)(font "Arial" ))
		(text "datab[]=25000" (rect 20 58 101 72)(font "Arial" (font_size 8)))
		(line (pt 16 16)(pt 112 16)(line_width 1))
		(line (pt 112 16)(pt 112 80)(line_width 1))
		(line (pt 112 80)(pt 16 80)(line_width 1))
		(line (pt 16 80)(pt 16 16)(line_width 1))
	)
)
(symbol
	(rect 488 784 632 864)
	(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst4" (rect 8 64 31 76)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 144 56)
		(output)
		(text "q[17..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "q[17..0]" (rect 89 50 131 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" ))
		(text "modulus 250000" (rect 60 27 140 39)(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 26)(pt 22 32)(line_width 1))
		(line (pt 22 32)(pt 16 38)(line_width 1))
	)
)
(symbol
	(rect 840 1456 968 1584)
	(text "tx_data" (rect 5 0 41 12)(font "Arial" ))
	(text "inst7" (rect 8 112 31 124)(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 "enable" (rect 0 0 31 12)(font "Arial" ))
		(text "enable" (rect 21 43 52 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "data_in[7..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "data_in[7..0]" (rect 21 59 82 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "data_val" (rect 0 0 42 12)(font "Arial" ))
		(text "data_val" (rect 21 75 63 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 128 32)
		(output)
		(text "tx" (rect 0 0 9 12)(font "Arial" ))
		(text "tx" (rect 98 27 107 39)(font "Arial" ))
		(line (pt 128 32)(pt 112 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 112 112)(line_width 1))
	)
)

⌨️ 快捷键说明

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