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

📄 colorbar.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-2004 Altera Corporation
Any  megafunction  design,  and related netlist (encrypted  or  decrypted),
support information,  device programming or simulation file,  and any other
associated  documentation or information  provided by  Altera  or a partner
under  Altera's   Megafunction   Partnership   Program  may  be  used  only
to program  PLD  devices (but not masked  PLD  devices) from  Altera.   Any
other  use  of such  megafunction  design,  netlist,  support  information,
device programming or simulation file,  or any other  related documentation
or information  is prohibited  for  any  other purpose,  including, but not
limited to  modification,  reverse engineering,  de-compiling, or use  with
any other  silicon devices,  unless such use is  explicitly  licensed under
a separate agreement with  Altera  or a megafunction partner.  Title to the
intellectual property,  including patents,  copyrights,  trademarks,  trade
secrets,  or maskworks,  embodied in any such megafunction design, netlist,
support  information,  device programming or simulation file,  or any other
related documentation or information provided by  Altera  or a megafunction
partner, remains with Altera, the megafunction partner, or their respective
licensors. No other licenses, including any licenses needed under any third
party's intellectual property, are provided herein.
*/
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect 104 24 272 40)
	(text "INPUT" (rect 133 0 161 9)(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 153 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 16 40 104 72))
)
(pin
	(input)
	(rect 104 240 272 256)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "rst" (rect 5 0 17 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 16 256 104 288))
)
(pin
	(output)
	(rect 608 240 784 256)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "VGA_HS" (rect 90 0 133 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 792 192 888 224))
)
(pin
	(output)
	(rect 608 256 784 272)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "VGA_VS" (rect 90 0 132 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 784 240 880 272))
)
(pin
	(output)
	(rect 608 288 784 304)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "VGA_RGB[2..0]" (rect 90 0 167 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 784 304 880 360))
)
(symbol
	(rect 344 216 480 344)
	(text "vga_vl" (rect 5 0 39 12)(font "Arial" ))
	(text "inst" (rect 8 112 25 124)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "resetn" (rect 0 0 30 12)(font "Arial" ))
		(text "resetn" (rect 21 27 51 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 43 46 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "orient" (rect 0 0 27 12)(font "Arial" ))
		(text "orient" (rect 21 59 48 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 136 32)
		(output)
		(text "hsync" (rect 0 0 30 12)(font "Arial" ))
		(text "hsync" (rect 85 27 115 39)(font "Arial" ))
		(line (pt 136 32)(pt 120 32)(line_width 1))
	)
	(port
		(pt 136 48)
		(output)
		(text "vsync" (rect 0 0 31 12)(font "Arial" ))
		(text "vsync" (rect 84 43 115 55)(font "Arial" ))
		(line (pt 136 48)(pt 120 48)(line_width 1))
	)
	(port
		(pt 136 64)
		(output)
		(text "blank" (rect 0 0 25 12)(font "Arial" ))
		(text "blank" (rect 90 59 115 71)(font "Arial" ))
		(line (pt 136 64)(pt 120 64)(line_width 1))
	)
	(port
		(pt 136 80)
		(output)
		(text "pixel[2..0]" (rect 0 0 48 12)(font "Arial" ))
		(text "pixel[2..0]" (rect 67 75 115 87)(font "Arial" ))
		(line (pt 136 80)(pt 120 80)(line_width 3))
	)
	(parameter
		"H_PIXELS"
		"32'b00000000000000000000001100100110"
		""
	)
	(parameter
		"H_FRONTPORCH"
		"32'b00000000000000000000000000100101"
		""
	)
	(parameter
		"H_SYNCTIME"
		"32'b00000000000000000000000010000000"
		""
	)
	(parameter
		"H_BACKPORCH"
		"32'b00000000000000000000000001010101"
		""
	)
	(parameter
		"H_SYNCSTART"
		"32'b00000000000000000000001101001011"
		""
	)
	(parameter
		"H_SYNCEND"
		"32'b00000000000000000000001111001011"
		""
	)
	(parameter
		"H_PERIOD"
		"32'b00000000000000000000010000100000"
		""
	)
	(parameter
		"V_LINES"
		"32'b00000000000000000000001001011100"
		""
	)
	(parameter
		"V_FRONTPORCH"
		"-1"
		""
	)
	(parameter
		"V_SYNCTIME"
		"32'b00000000000000000000000000000100"
		""
	)
	(parameter
		"V_BACKPORCH"
		"32'b00000000000000000000000000010101"
		""
	)
	(parameter
		"V_SYNCSTART"
		"32'b00000000000000000000001001011011"
		""
	)
	(parameter
		"V_SYNCEND"
		"32'b00000000000000000000001001011111"
		""
	)
	(parameter
		"V_PERIOD"
		"32'b00000000000000000000001001110100"
		""
	)
	(drawing
		(rectangle (rect 16 16 120 112)(line_width 1))
	)
	(annotation_block (parameter)(rect 344 344 648 560))
)
(symbol
	(rect 264 312 296 344)
	(text "GND" (rect 8 16 25 25)(font "Arial" (font_size 6)))
	(text "inst3" (rect 3 21 26 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 336 -32 592 128)
	(text "VGA_PLL" (rect 99 0 167 16)(font "Arial" (font_size 10)))
	(text "inst4" (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 256 64)
		(output)
		(text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
		(text "c0" (rect 241 51 255 65)(font "Arial" (font_size 8)))
		(line (pt 256 64)(pt 208 64)(line_width 1))
	)
	(port
		(pt 256 80)
		(output)
		(text "locked" (rect 0 0 36 14)(font "Arial" (font_size 8)))
		(text "locked" (rect 222 67 258 81)(font "Arial" (font_size 8)))
		(line (pt 256 80)(pt 208 80)(line_width 1))
	)
	(drawing
		(text "Cyclone" (rect 213 145 248 157)(font "Arial" ))
		(text "inclk0 frequency: 50.000 MHz" (rect 50 59 175 71)(font "Arial" ))
		(text "Operation Mode: Normal" (rect 50 73 151 85)(font "Arial" ))
		(text "Clk " (rect 51 96 68 108)(font "Arial" ))
		(text "Ratio" (rect 73 96 95 108)(font "Arial" ))
		(text "Ph (dg)" (rect 100 96 130 108)(font "Arial" ))
		(text "DC (%)" (rect 135 96 166 108)(font "Arial" ))
		(text "c0" (rect 54 111 64 123)(font "Arial" ))
		(text "4/5" (rect 78 111 91 123)(font "Arial" ))
		(text "0.00" (rect 106 111 124 123)(font "Arial" ))
		(text "50.00" (rect 139 111 162 123)(font "Arial" ))
		(line (pt 0 0)(pt 257 0)(line_width 1))
		(line (pt 257 0)(pt 257 161)(line_width 1))
		(line (pt 0 161)(pt 257 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))
	)
)
(connector
	(pt 480 248)
	(pt 608 248)
)
(connector
	(pt 480 264)
	(pt 608 264)
)
(connector
	(pt 480 296)
	(pt 608 296)
	(bus)
)
(connector
	(pt 344 248)
	(pt 272 248)
)
(connector
	(pt 344 280)
	(pt 280 280)
)
(connector
	(pt 280 280)
	(pt 280 312)
)
(connector
	(pt 344 264)
	(pt 296 264)
)
(connector
	(pt 336 32)
	(pt 272 32)
)
(connector
	(pt 296 168)
	(pt 296 264)
)
(connector
	(pt 688 168)
	(pt 296 168)
)
(connector
	(pt 688 32)
	(pt 688 168)
)
(connector
	(pt 688 32)
	(pt 592 32)
)

⌨️ 快捷键说明

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