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

📄 spi.bsf

📁 以cyclone系列的EP2C5Q208为核心的实验板程序.包括流水灯,I2C存储器.SPI存储器,数码管,串口,LCD等
💻 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-2005 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 240 208)
	(text "SPI" (rect 5 0 22 12)(font "Arial" ))
	(text "inst" (rect 8 176 25 188)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "RESET" (rect 0 0 35 12)(font "Arial" ))
		(text "RESET" (rect 21 27 56 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "GCLK" (rect 0 0 29 12)(font "Arial" ))
		(text "GCLK" (rect 21 43 50 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "CLK" (rect 0 0 21 12)(font "Arial" ))
		(text "CLK" (rect 21 59 42 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "MISO" (rect 0 0 27 12)(font "Arial" ))
		(text "MISO" (rect 21 75 48 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "SPI_CS" (rect 0 0 38 12)(font "Arial" ))
		(text "SPI_CS" (rect 21 91 59 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 0 112)
		(input)
		(text "SPI_RW" (rect 0 0 42 12)(font "Arial" ))
		(text "SPI_RW" (rect 21 107 63 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 1))
	)
	(port
		(pt 0 128)
		(input)
		(text "SPI_STRB" (rect 0 0 51 12)(font "Arial" ))
		(text "SPI_STRB" (rect 21 123 72 135)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 1))
	)
	(port
		(pt 0 144)
		(input)
		(text "SPI_Address[7..0]" (rect 0 0 89 12)(font "Arial" ))
		(text "SPI_Address[7..0]" (rect 21 139 110 151)(font "Arial" ))
		(line (pt 0 144)(pt 16 144)(line_width 3))
	)
	(port
		(pt 224 32)
		(output)
		(text "MOSI" (rect 0 0 27 12)(font "Arial" ))
		(text "MOSI" (rect 176 27 203 39)(font "Arial" ))
		(line (pt 224 32)(pt 208 32)(line_width 1))
	)
	(port
		(pt 224 48)
		(output)
		(text "SCLK" (rect 0 0 28 12)(font "Arial" ))
		(text "SCLK" (rect 175 43 203 55)(font "Arial" ))
		(line (pt 224 48)(pt 208 48)(line_width 1))
	)
	(port
		(pt 224 64)
		(output)
		(text "SSEL" (rect 0 0 27 12)(font "Arial" ))
		(text "SSEL" (rect 176 59 203 71)(font "Arial" ))
		(line (pt 224 64)(pt 208 64)(line_width 1))
	)
	(port
		(pt 224 80)
		(bidir)
		(text "SPI_Data[15..0]" (rect 0 0 79 12)(font "Arial" ))
		(text "SPI_Data[15..0]" (rect 124 75 203 87)(font "Arial" ))
		(line (pt 224 80)(pt 208 80)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 208 176)(line_width 1))
	)
)

⌨️ 快捷键说明

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