电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

用verilog编写fpga的vga显示

用verilog编写fpga的vga显示_第1页
1/10
用verilog编写fpga的vga显示_第2页
2/10
用verilog编写fpga的vga显示_第3页
3/10
用v erilog 编写fpga 的v ga 显示(z) VGA工业标准是640x480x60Hz,主要有5个信号,即三个颜色信号R/G/B、行同步信号HS和场同步信号VS。 它是从左上角开始一行接一行的扫描,扫描完一屏后又回到左上角扫描。 标准要求是场频 59.94Hz,行频 31469Hz,时钟频率 25.175MHz 这是Altera的DE2开发板上自带的演示程序。可以先搜一下 VGA工业标准的时序图,再看这个代码就会很简单, 就不注释了。弄清楚行同步、场同步、前肩、后肩,一切都 easy module VGA_Controller( // Host Side iRed, iGreen, iBlue, oRequest, // VGA Side oVGA_R, oVGA_G, oVGA_B, oVGA_H_SYNC, oVGA_V_SYNC, oVGA_SYNC, oVGA_BLANK, oVGA_CLOCK, // Control Signal iCLK, iRST_N ); `include "VGA_Param.h" // Host Side input [9:0] iRed; input [9:0] iGreen; input [9:0] iBlue; output reg oRequest; // VGA Side output [9:0] oVGA_R; output [9:0] oVGA_G; output [9:0] oVGA_B; output reg oVGA_H_SYNC; output reg oVGA_V_SYNC; output oVGA_SYNC; output oVGA_BLANK; output oVGA_CLOCK; // Control Signal input iCLK; input iRST_N; // Internal Registers and Wires reg [9:0] H_Cont; reg [9:0] V_Cont; reg [9:0] Cur_Color_R; reg [9:0] Cur_Color_G; reg [9:0] Cur_Color_B; wire mCursor_EN; wire mRed_EN; wire mGreen_EN; wire mBlue_EN; assign oVGA_BLANK = oVGA_H_SYNC & oVGA_V_SYNC; assign oVGA_SYNC = 1'b0; assign oVGA_CLOCK = iCLK; assign oVGA_R = ( H_Cont>=X_START && H_Cont=Y_START && V_Cont=X_START && H_Cont=Y_START && V_Cont=X_START && H_Cont=Y_START && V_Cont=X_START-2 && H_Cont

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

用verilog编写fpga的vga显示

确认删除?
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群