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

📄 spi.bsf

📁 用fpga实现isp接口的源码
💻 BSF
字号:
/*
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 "symbol" (version "1.1"))
(symbol
	(rect 16 16 280 208)
	(text "SPI" (rect 5 0 22 14)(font "Arial" (font_size 8)))
	(text "inst" (rect 8 176 25 188)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "CLK" (rect 0 0 23 14)(font "Arial" (font_size 8)))
		(text "CLK" (rect 21 27 44 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "CPUOUTDATA[7..0]" (rect 0 0 110 14)(font "Arial" (font_size 8)))
		(text "CPUOUTDATA[7..0]" (rect 21 43 131 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "WR" (rect 0 0 20 14)(font "Arial" (font_size 8)))
		(text "WR" (rect 21 59 41 73)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "ADDR[11..0]" (rect 0 0 69 14)(font "Arial" (font_size 8)))
		(text "ADDR[11..0]" (rect 21 75 90 89)(font "Arial" (font_size 8)))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "ECS[2]" (rect 0 0 37 14)(font "Arial" (font_size 8)))
		(text "ECS[2]" (rect 21 91 58 105)(font "Arial" (font_size 8)))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 0 112)
		(input)
		(text "RD" (rect 0 0 16 14)(font "Arial" (font_size 8)))
		(text "RD" (rect 21 107 37 121)(font "Arial" (font_size 8)))
		(line (pt 0 112)(pt 16 112)(line_width 1))
	)
	(port
		(pt 0 128)
		(input)
		(text "MISO" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "MISO" (rect 21 123 50 137)(font "Arial" (font_size 8)))
		(line (pt 0 128)(pt 16 128)(line_width 1))
	)
	(port
		(pt 0 144)
		(input)
		(text "RESET" (rect 0 0 37 14)(font "Arial" (font_size 8)))
		(text "RESET" (rect 21 139 58 153)(font "Arial" (font_size 8)))
		(line (pt 0 144)(pt 16 144)(line_width 1))
	)
	(port
		(pt 0 160)
		(input)
		(text "RFirq" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "RFirq" (rect 21 155 50 169)(font "Arial" (font_size 8)))
		(line (pt 0 160)(pt 16 160)(line_width 1))
	)
	(port
		(pt 264 32)
		(output)
		(text "MOSI" (rect 0 0 29 14)(font "Arial" (font_size 8)))
		(text "MOSI" (rect 214 27 243 41)(font "Arial" (font_size 8)))
		(line (pt 264 32)(pt 248 32)(line_width 1))
	)
	(port
		(pt 264 48)
		(output)
		(text "IRQ" (rect 0 0 20 14)(font "Arial" (font_size 8)))
		(text "IRQ" (rect 223 43 243 57)(font "Arial" (font_size 8)))
		(line (pt 264 48)(pt 248 48)(line_width 1))
	)
	(port
		(pt 264 64)
		(output)
		(text "CSN" (rect 0 0 24 14)(font "Arial" (font_size 8)))
		(text "CSN" (rect 219 59 243 73)(font "Arial" (font_size 8)))
		(line (pt 264 64)(pt 248 64)(line_width 1))
	)
	(port
		(pt 264 80)
		(output)
		(text "SCK" (rect 0 0 24 14)(font "Arial" (font_size 8)))
		(text "SCK" (rect 219 75 243 89)(font "Arial" (font_size 8)))
		(line (pt 264 80)(pt 248 80)(line_width 1))
	)
	(port
		(pt 264 96)
		(output)
		(text "CE" (rect 0 0 15 14)(font "Arial" (font_size 8)))
		(text "CE" (rect 228 91 243 105)(font "Arial" (font_size 8)))
		(line (pt 264 96)(pt 248 96)(line_width 1))
	)
	(port
		(pt 264 112)
		(output)
		(text "CPUINDATA[7..0]" (rect 0 0 96 14)(font "Arial" (font_size 8)))
		(text "CPUINDATA[7..0]" (rect 147 107 243 121)(font "Arial" (font_size 8)))
		(line (pt 264 112)(pt 248 112)(line_width 3))
	)
	(port
		(pt 264 128)
		(output)
		(text "SFTEst" (rect 0 0 40 14)(font "Arial" (font_size 8)))
		(text "SFTEst" (rect 203 123 243 137)(font "Arial" (font_size 8)))
		(line (pt 264 128)(pt 248 128)(line_width 1))
	)
	(port
		(pt 264 144)
		(output)
		(text "SFTEst1" (rect 0 0 47 14)(font "Arial" (font_size 8)))
		(text "SFTEst1" (rect 196 139 243 153)(font "Arial" (font_size 8)))
		(line (pt 264 144)(pt 248 144)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 248 176)(line_width 1))
	)
)

⌨️ 快捷键说明

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