《VGA显示器彩色信号发生器电路设计 专业英语论文.doc》由会员分享,可在线阅读,更多相关《VGA显示器彩色信号发生器电路设计 专业英语论文.doc(4页珍藏版)》请在三一文库上搜索。
1、VGA显示器彩色信号发生器电路设计 【摘要】本设计完成了一个基于VHDL的VGA显示控制模块,通过FPGA控制图像信号与时序信号,软件的开发环境是ALTERA公司的Quartus 9.0。设计运用VHDL语言编程,配置加载FPGA芯片,经FPGA处理,信号通过电阻分压,由VGA接口输出,设计的主控制器采用ALTERA公司的CYCLONE EP3C10E144C8芯片。目的:通过对VGA接口的显示控制设计,理解VGA接口的时序工作原理,掌握通过计数器产生时序控制信号的方法。结果:通过完成整个设计,在最后验证阶段,通过两个开关的控制,可以在VGA显示器上看到横彩条、竖彩条、方格(八种颜色)四种图像
2、。关 键 词 VGA; FPGA; 时序控制; 电阻分压The VGA Display Color Signal Generator Circuit Design Abstract This design completed a VGA display based on VHDL control module, through the FPGA control of image signal and timing signal, software development environment is the ALTERA company Quartus 9.0. The design uses
3、 VHDL language programming, loaded configuration FPGA chip, the FPGA processing, signal through the resistance points pressure,through the VGA interface output, the main controller design by ALTERA company EP3C10E144C8 chip CYCLONE. Objective: to VGA display interface through control design, underst
4、anding of the succession of the working principle VGA interface, master through the counter produces sequential control signal method. Results: through the complete the whole design, in the last phase of verification, through the two switch control, can see on display in the VGA striped, perpendicul
5、ar striped, squares (eight kinds of color) four kind of image.Key words VGA; FPGA; Sequential control; Resistance points pressure 41.1. System DesignA plan to ask: Can the VGA display shows eight color graphics (a type, square type), in this design through the expansion, adding the two control switc
6、h, used to realize the four models of striped display.System design scheme:(1) design ideas: the FPGA displays of the VGA interface to carry on the design, data flow only need in the whole system of internal flow, and dont need to rely on the computer, experiment system minimization, greatly reducin
7、g the size of the circuit board, and increase the reliability of system and design flexibility. VGA is computer monitors common display standards, VGA interface LCD monitor, CRT monitor standard interface, through the VGA control LCD, CRT can make the whole system to become small and portable, make
8、application range greatly expand. In the design of the serious, it is the need to put the real-time display images directly, in order to verify the correctness of the design, so as to meet the needs of all kinds of different application design.(2) each function blocks of division and composition: th
9、is design mainly by two module, the clock points frequency modules and display and control module.The clock module mostly used for 50 Mhz clock binary system frequency signal sweep of the need to get VGA 25 Mhz frequency.1.2. VGA Display ModuleI VGA interfaceThe computer monitor shows many standard,
10、 the most common is VGA. VGA is Video Graphics Array (Video graphic Array) abbreviations, VGA industry standards for 640 HZ * 480 HZ * 60 HZ mode, signal types for simulation type. The display card interface for 15 pin socket. Interface as shown in figure:NO. 1 VGA interface diagram VGA interface of
11、 1, 2, 3 feet by D/A converter respectively output R, G, B three color digital signal, 13 feet by synchronizing signal line, 14 feet by A synchronized signal, 5, 6, 7, 8, 10 feet ground, the rest of the pins are hung up. VGA display principleVGA display, its lead wire with five of the elder brother
12、of the signal: R, G, B (3 gezer signal), HS (line synchronized signal), VS (field synchronized signal). By R, G, B three gezer can combined from the color of any required.VGA display in a line of image display to finish, with line synchronous signal line synchronization, go forward hand in hand line
13、 do vanishing, line for low level synchronous signal effectively. When scanning all falls, use synchronized signal field synchronization. And the scan back to the upper left of the screen, meanwhile, a vanishing, and preparing for the next scanning. A synchronous signal also for low level effective.
14、 Line and a scan sequence diagram as shown in figure: NO. 2 VGA line, a scan sequence diagramIndustry standard requirements of the VGA frequency:The clock frequency (clock frequency) : 25.175 Mhz (pixel output frequency)HangPin (line frequency) : 31469 HzChangPin (field frequency) : 59.94 (second im
15、age refresh frequency).2. Unit Circuit Design(1) scanning boundary default: CONSTANT hsync_end : std_logic_vector(9 DOWNTO 0) := 0001011111; CONSTANT hdat_begin : std_logic_vector(9 DOWNTO 0) := 0010001111; CONSTANT hdat_end : std_logic_vector(9 DOWNTO 0) := 1100001111; CONSTANT hpixel_end : std_log
16、ic_vector(9 DOWNTO 0) := 1100011111; CONSTANT vsync_end : std_logic_vector(9 DOWNTO 0) := 0000000001; CONSTANT vdat_begin : std_logic_vector(9 DOWNTO 0) := 0000100010; CONSTANT vdat_end : std_logic_vector(9 DOWNTO 0) := 1000000010; CONSTANT vline_end : std_logic_vector(9 DOWNTO 0) := 1000001100;(2)
17、the output generated 25 Mhz pixels frequency (clock frequency of 50 Mhz) :PROCESS BEGIN WAIT UNTIL (clockEVENT AND clock = 1); vga_clk = NOT vga_clk; END PROCESS(3) scanning:PROCESS BEGIN WAIT UNTIL (vga_clkEVENT AND vga_clk = 1); IF (hcount_ov = 1) THEN hcount = 0000000000; ELSE hcount = hcount + 0
18、000000001; END IF;END PROCESS; (4) the field scans: PROCESS BEGIN WAIT UNTIL (vga_clkEVENT AND vga_clk = 1); IF (hcount_ov = 1) THEN IF (vcount_ov = 1) THEN vcount = 0000000000; ELSE vcount = vcount + 0000000001; END IF; END IF;END PROCESS; 3.Software Design Dystem Test(1) The design main use their
19、learning development board, core for CYCLONE EP3C10E144C8.(2) The program flow charts are as follows:(3) VGA module principle chart is as follows:(4) The pins are as follows:(5) Simulation waveform figure as follows:(6) Verification Results are As Follows:4. Conclusions VGA timing is to realize the
20、design is the controller of the difficulty. Because no data interface VGA can signal, the display is through the scanning and field scans the mode of display to scan the control. So, the signal to the timing synchronization VGA is strict, if synchronized signal not synchronous good, will display the
21、 data as a lost, even into chaos as that. Therefore, we must use special VGA controller to display the strict VGA timing driver.Second, to the design process must first have a whole design solutions. The first design engineering is divided into several small module, and then by his teammates to sepa
22、rate each module design, test and verify, summary. To work together to solve each module how to join together. In the test and simulation again and again, until the simulation results comply with the design requirements. Then begin to consider how the board in the hardware FPGA design verification o
23、f whether the program be wrong. Of course, here in VGA display if the results of a scan not ideal, or scan of the image fuzzy. Need to repeat sequence analysis. Until timing meet the demands, authentication phase to this conclusion.5. References1 PanSong , HuangJiYe EDA technology and VHDL (third edition) tsinghua university press.2 WangYan Based on FPGA design and application of engineering xian university of electronic science and technology press.3 WangCheng, WuJiHua Altera FPGA/CPLD design peoples posts and telecommunications press.
链接地址:https://www.31doc.com/p-3903618.html