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

📄 vga.bdf

📁 此乃VGA驱动的详细源码
💻 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-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 "graphic" (version "1.3"))
(pin
	(input)
	(rect -224 112 -56 128)
	(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 -312 128 -224 160))
)
(pin
	(input)
	(rect 56 128 224 144)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "reset" (rect 5 0 29 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 -40 88 48 120))
)
(pin
	(output)
	(rect 432 128 608 144)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "pin_name5" (rect 90 0 143 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))
	)
)
(pin
	(output)
	(rect 432 112 608 128)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "hs" (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 488 16 576 48))
)
(pin
	(output)
	(rect 440 128 616 144)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "vs" (rect 90 0 102 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 648 48 736 80))
)
(pin
	(output)
	(rect 432 144 608 160)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "r" (rect 90 0 93 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 720 104 808 136))
)
(pin
	(output)
	(rect 432 160 608 176)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "g" (rect 90 0 95 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 704 168 792 200))
)
(pin
	(output)
	(rect 432 176 608 192)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "b" (rect 90 0 95 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 520 240 608 272))
)
(symbol
	(rect -56 256 184 416)
	(text "pll" (rect 114 0 129 16)(font "Arial" (font_size 10)))
	(text "inst5" (rect 8 144 31 156)(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))
	)
	(drawing
		(text "Cyclone II" (rect 183 145 234 157)(font "Arial" ))
		(text "inclk0 frequency: 25.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 "1/1" (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" ))
		(line (pt 0 0)(pt 241 0)(line_width 1))
		(line (pt 241 0)(pt 241 161)(line_width 1))
		(line (pt 0 161)(pt 241 161)(line_width 1))
		(line (pt 0 0)(pt 0 161)(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 94)(pt 48 123)(line_width 1))
		(line (pt 70 94)(pt 70 123)(line_width 3))
		(line (pt 97 94)(pt 97 123)(line_width 3))
		(line (pt 132 94)(pt 132 123)(line_width 3))
		(line (pt 167 94)(pt 167 123)(line_width 1))
		(line (pt 40 48)(pt 208 48)(line_width 1))
		(line (pt 208 48)(pt 208 144)(line_width 1))
		(line (pt 40 144)(pt 208 144)(line_width 1))
		(line (pt 40 48)(pt 40 144)(line_width 1))
	)
)
(symbol
	(rect 248 88 344 216)
	(text "vgatiming" (rect 5 0 53 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 "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 96 48)
		(output)
		(text "vs" (rect 0 0 12 12)(font "Arial" ))
		(text "vs" (rect 63 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 1))
	)
	(port
		(pt 96 64)
		(output)
		(text "red" (rect 0 0 15 12)(font "Arial" ))
		(text "red" (rect 60 59 75 71)(font "Arial" ))
		(line (pt 96 64)(pt 80 64)(line_width 1))
	)
	(port
		(pt 96 80)
		(output)
		(text "green" (rect 0 0 27 12)(font "Arial" ))
		(text "green" (rect 48 75 75 87)(font "Arial" ))
		(line (pt 96 80)(pt 80 80)(line_width 1))
	)
	(port
		(pt 96 96)
		(output)
		(text "blue" (rect 0 0 20 12)(font "Arial" ))
		(text "blue" (rect 55 91 75 103)(font "Arial" ))
		(line (pt 96 96)(pt 80 96)(line_width 1))
	)
	(port
		(pt 96 32)
		(bidir)
		(text "hs" (rect 0 0 11 12)(font "Arial" ))
		(text "hs" (rect 64 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 80 112)(line_width 1))
	)
)
(connector
	(pt 224 136)
	(pt 248 136)
)
(connector
	(pt -56 120)
	(pt -80 120)
)
(connector
	(pt -56 320)
	(pt -80 320)
)
(connector
	(pt -80 120)
	(pt -80 320)
)
(connector
	(pt 248 120)
	(pt 200 120)
)
(connector
	(pt 184 320)
	(pt 200 320)
)
(connector
	(pt 200 120)
	(pt 200 320)
)
(connector
	(pt 344 120)
	(pt 432 120)
)
(connector
	(pt 344 136)
	(pt 432 136)
)
(connector
	(pt 344 152)
	(pt 432 152)
)
(connector
	(pt 344 168)
	(pt 432 168)
)
(connector
	(pt 344 184)
	(pt 432 184)
)

⌨️ 快捷键说明

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