分享

VGA(摘自FPGA4fun)

 昵称4873296 2013-05-25

Introduction

VGA is a high-resolution(高分辨率) video standard used mostly for computer monitors, where ability to transmit a sharp, detailed image is essential. VGA uses separate wires to transmit the three color component signals and vertical and horizontal synchronization signals.

VGA Signals

Like any video format, VGA video is a stream of frames: each frame is made up of a series of horizontal lines, and each line is made up of a series of pixels(像素). The lines in each frame are transmitted in order from top to bottom (VGA is not interlaced), and the pixels in each line are transmitted from left to right. Separate horizontal and vertical synchronization signals are used to define the ends of each line and frame. A composite synchronization signal (actually an XOR of the horizontal and vertical signals) is also encoded on the green color channel.

The ADV7125 video DAC reads an 8-bit value for each of the red, green, and blue channels on each cycle of the pixel clock. There is a two-cycle pipeline delay between when the digital codes are read by the DAC and when the corresponding analog voltages appear on the DAC outputs. The RGB input signals can be overridden by the sync and blank signals: The active low blank signal forces all three DAC outputs to their black level, while the active low sync signal forces the green DAC to a special sync level below the normal black level.

Each line of video begins with an active video region, in which RGB values are output for each pixel in the line. The active region is followed by a blanking region, in which black pixels are transmitted. In the middle of the blanking interval, a horizontal sync pulse is transmitted. The blanking interval before the sync pulse is known as the "front porch", and the blanking interval after the sync pulse is known as the "back porch". Note that the dedicated horizontal sync signal output from the FPGA directly to the VGA connector must be delayed by two clock cycles relative to the composite sync signal passed to the DAC chip, to account for the pipeline delay of the DAC.

Frames are constructed from lines in much the same way as lines are constructed from pixels. The beginning of a frame contains all of the lines that will actually be displayed on the screen, followed by a number of black lines that make up the front porch. Next comes a vertical sync pulse that lasts for several lines, and then more black lines to make up a back porch. Note that the composite sync signal embedded in the green channel appears inverted during the vertical sync pulse: remember that the composite sync is an XOR of the horizontal and vertical sync signals.

场频(Vertical Scanning Frequency)  又称为帧频或刷新频率,即显示器的垂直扫描频率,  指每秒钟屏幕刷新的次数,又称屏幕的垂直扫描频率,以Hz(赫兹)为单位。场频越大,图象刷新的次数越多,图象显示的闪烁就越小,画面质量越高,因此VESA组织于1997年对其进行修正,规定85Hz逐行扫描为无闪烁的标准场频。
 行频(Horizontal Scanning Frequency):     行频指每秒钟重复绘制显示画面的次数,指电子枪每秒钟在屏幕上从左到右扫描的次数,又称屏幕的水平扫描频率,以KHz为单位。它越大就意味着显示器可以提供的分辨率越高,稳定性越好。     行频 = 水平行数 * 场频(画面显示刷新率)    如:分辨率:800 * 600    场频:85Hz    得出:行频 = 600 * 85 = 51(KHz)(至少)
显示带宽(Band width)  显示带宽指电子枪每秒钟扫描过的总像素点.保守计算为分辨率*场频.但考虑到边缘图像的信号衰减,电子枪得扫描能力要大于分辨率范围. 来保证周边图像清晰.单位(MHZ)  实际的计算公式为:    水平分辨率*125%*垂直分辨率*108%*刷新率。    如要显示800*600,85HZ刷新率, 实际带宽=800*125%*600*108%*85=55.1MHZ

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多