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

📄 block1.bdf

📁 FPGA模拟SPI接口驱动3310液晶屏的 详细驱动
💻 BDF
字号:
/*
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 "graphic" (version "1.3"))
(pin
	(input)
	(rect 24 80 192 96)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clk" (rect 5 0 19 12)(font "Arial" ))
	(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 24 96 72 112))
)
(pin
	(output)
	(rect 768 408 944 424)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "rst_out" (rect 90 0 124 12)(font "Arial" ))
	(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 424 936 440))
)
(pin
	(output)
	(rect 808 344 984 360)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "ce" (rect 90 0 101 12)(font "Arial" ))
	(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 856 360 904 376))
)
(pin
	(output)
	(rect 768 232 944 248)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "sck" (rect 90 0 107 12)(font "Arial" ))
	(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 904 248 952 264))
)
(pin
	(output)
	(rect 768 216 944 232)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "mosi" (rect 90 0 113 12)(font "Arial" ))
	(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 896 200 944 216))
)
(pin
	(output)
	(rect 768 184 944 200)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "dc" (rect 90 0 101 12)(font "Arial" ))
	(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 168 936 184))
)
(symbol
	(rect 208 176 344 304)
	(text "main" (rect 5 0 28 12)(font "Arial" ))
	(text "inst" (rect 8 112 25 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 "rst" (rect 0 0 12 12)(font "Arial" ))
		(text "rst" (rect 21 43 33 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 136 32)
		(output)
		(text "en_out" (rect 0 0 33 12)(font "Arial" ))
		(text "en_out" (rect 82 27 115 39)(font "Arial" ))
		(line (pt 136 32)(pt 120 32)(line_width 1))
	)
	(port
		(pt 136 48)
		(output)
		(text "data_out[7..0]" (rect 0 0 68 12)(font "Arial" ))
		(text "data_out[7..0]" (rect 47 43 115 55)(font "Arial" ))
		(line (pt 136 48)(pt 120 48)(line_width 3))
	)
	(port
		(pt 136 64)
		(output)
		(text "rst_out" (rect 0 0 34 12)(font "Arial" ))
		(text "rst_out" (rect 81 59 115 71)(font "Arial" ))
		(line (pt 136 64)(pt 120 64)(line_width 1))
	)
	(port
		(pt 136 80)
		(output)
		(text "ce_out" (rect 0 0 33 12)(font "Arial" ))
		(text "ce_out" (rect 82 75 115 87)(font "Arial" ))
		(line (pt 136 80)(pt 120 80)(line_width 1))
	)
	(port
		(pt 136 96)
		(output)
		(text "cmd_out" (rect 0 0 42 12)(font "Arial" ))
		(text "cmd_out" (rect 73 91 115 103)(font "Arial" ))
		(line (pt 136 96)(pt 120 96)(line_width 1))
	)
	(parameter
		"Idle"
		"B\"00000000\""
		""
	)
	(parameter
		"Empty"
		"B\"01100100\""
		""
	)
	(parameter
		"rst_L"
		"B\"00001010\""
		""
	)
	(parameter
		"rst_H"
		"B\"00001011\""
		""
	)
	(parameter
		"ce_L"
		"B\"00001100\""
		""
	)
	(parameter
		"ce_H"
		"B\"00001101\""
		""
	)
	(parameter
		"s1"
		"B\"00000001\""
		""
	)
	(parameter
		"s2"
		"B\"00000010\""
		""
	)
	(parameter
		"s3"
		"B\"00000011\""
		""
	)
	(parameter
		"s4"
		"B\"00000100\""
		""
	)
	(parameter
		"s5"
		"B\"00000101\""
		""
	)
	(parameter
		"s6"
		"B\"00000110\""
		""
	)
	(parameter
		"s7"
		"B\"00000111\""
		""
	)
	(parameter
		"s8"
		"B\"00001000\""
		""
	)
	(parameter
		"s9"
		"B\"00001001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 120 112)(line_width 1))
	)
	(annotation_block (parameter)(rect 344 -48 480 176))
)
(symbol
	(rect 528 160 664 288)
	(text "spi3310" (rect 5 0 42 12)(font "Arial" ))
	(text "inst1" (rect 8 112 31 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "en" (rect 0 0 11 12)(font "Arial" ))
		(text "en" (rect 21 27 32 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clk" (rect 0 0 14 12)(font "Arial" ))
		(text "clk" (rect 21 43 35 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "data[7..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "data[7..0]" (rect 21 59 68 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "cmd" (rect 0 0 21 12)(font "Arial" ))
		(text "cmd" (rect 21 75 42 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 136 32)
		(output)
		(text "lcd_dc" (rect 0 0 31 12)(font "Arial" ))
		(text "lcd_dc" (rect 84 27 115 39)(font "Arial" ))
		(line (pt 136 32)(pt 120 32)(line_width 1))
	)
	(port
		(pt 136 48)
		(output)
		(text "lcd_ce" (rect 0 0 31 12)(font "Arial" ))
		(text "lcd_ce" (rect 84 43 115 55)(font "Arial" ))
		(line (pt 136 48)(pt 120 48)(line_width 1))
	)
	(port
		(pt 136 64)
		(output)
		(text "mosi" (rect 0 0 23 12)(font "Arial" ))
		(text "mosi" (rect 92 59 115 71)(font "Arial" ))
		(line (pt 136 64)(pt 120 64)(line_width 1))
	)
	(port
		(pt 136 80)
		(output)
		(text "sck" (rect 0 0 17 12)(font "Arial" ))
		(text "sck" (rect 98 75 115 87)(font "Arial" ))
		(line (pt 136 80)(pt 120 80)(line_width 1))
	)
	(parameter
		"Idle"
		"B\"00000000\""
		""
	)
	(parameter
		"CE_L"
		"B\"00000001\""
		""
	)
	(parameter
		"DC"
		"B\"00000010\""
		""
	)
	(parameter
		"s0"
		"B\"00000011\""
		""
	)
	(parameter
		"s1"
		"B\"00000100\""
		""
	)
	(parameter
		"s2"
		"B\"00000101\""
		""
	)
	(parameter
		"s3"
		"B\"00000110\""
		""
	)
	(parameter
		"s4"
		"B\"00000111\""
		""
	)
	(parameter
		"s5"
		"B\"00001000\""
		""
	)
	(parameter
		"s6"
		"B\"00001001\""
		""
	)
	(parameter
		"s7"
		"B\"00001010\""
		""
	)
	(parameter
		"CE_H"
		"B\"00001011\""
		""
	)
	(drawing
		(rectangle (rect 16 16 120 112)(line_width 1))
	)
	(annotation_block (parameter)(rect 664 -24 800 160))
)
(symbol
	(rect 112 224 144 256)
	(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
	(text "inst11" (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 704 328 768 376)
	(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
	(text "inst4" (rect 3 37 26 49)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 15 32)(line_width 1))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 15 16)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(line (pt 52 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 15 37)(pt 32 37)(line_width 1))
		(line (pt 15 12)(pt 32 12)(line_width 1))
		(line (pt 15 36)(pt 15 12)(line_width 1))
		(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37)(line_width 1))
		(circle (rect 44 20 52 28)(line_width 1))
	)
)
(symbol
	(rect 768 336 816 368)
	(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
	(text "inst5" (rect 3 21 26 33)(font "Arial" ))
	(port
		(pt 0 16)
		(input)
		(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
		(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 13 16)(line_width 1))
	)
	(port
		(pt 48 16)
		(output)
		(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
		(line (pt 39 16)(pt 48 16)(line_width 1))
	)
	(drawing
		(line (pt 13 25)(pt 13 7)(line_width 1))
		(line (pt 13 7)(pt 31 16)(line_width 1))
		(line (pt 13 25)(pt 31 16)(line_width 1))
		(circle (rect 31 12 39 20)(line_width 1))
	)
)
(symbol
	(rect 192 40 288 136)
	(text "clk" (rect 5 0 19 12)(font "Arial" ))
	(text "inst6" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 27 45 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "f40m" (rect 0 0 25 12)(font "Arial" ))
		(text "f40m" (rect 21 43 46 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "f500k" (rect 0 0 28 12)(font "Arial" ))
		(text "f500k" (rect 47 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 80)(line_width 1))
	)
)
(connector
	(pt 344 224)
	(pt 528 224)
	(bus)
)
(connector
	(pt 344 208)
	(pt 360 208)
)
(connector
	(pt 360 208)
	(pt 360 192)
)
(connector
	(pt 360 192)
	(pt 528 192)
)
(connector
	(pt 344 272)
	(pt 512 272)
)
(connector
	(pt 512 272)
	(pt 512 240)
)
(connector
	(pt 512 240)
	(pt 528 240)
)
(connector
	(pt 448 256)
	(pt 344 256)
)
(connector
	(pt 664 208)
	(pt 704 208)
)
(connector
	(pt 528 208)
	(pt 504 208)
)
(connector
	(pt 504 152)
	(pt 504 208)
)
(connector
	(pt 416 240)
	(pt 344 240)
)
(connector
	(pt 448 256)
	(pt 448 360)
)
(connector
	(pt 448 360)
	(pt 704 360)
)
(connector
	(pt 704 208)
	(pt 704 344)
)
(connector
	(pt 416 240)
	(pt 416 416)
)
(connector
	(pt 416 416)
	(pt 768 416)
)
(connector
	(pt 664 240)
	(pt 768 240)
)
(connector
	(pt 664 224)
	(pt 768 224)
)
(connector
	(pt 768 192)
	(pt 664 192)
)
(connector
	(pt 208 152)
	(pt 208 208)
)
(connector
	(pt 320 72)
	(pt 320 152)
)
(connector
	(pt 208 152)
	(pt 320 152)
)
(connector
	(pt 320 152)
	(pt 504 152)
)
(connector
	(pt 808 352)
	(pt 816 352)
)
(connector
	(pt 320 72)
	(pt 288 72)
)
(connector
	(pt 192 72)
	(pt 168 72)
)
(connector
	(pt 168 72)
	(pt 168 224)
)
(connector
	(pt 128 224)
	(pt 168 224)
)
(connector
	(pt 168 224)
	(pt 208 224)
)
(junction (pt 320 152))
(junction (pt 168 224))

⌨️ 快捷键说明

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