1 / 17

Introduction to Experiment 5 VGA signal generator ECE 448 Spring 2007

Introduction to Experiment 5 VGA signal generator ECE 448 Spring 2007. Video Graphic Array (VGA). Resolution: 640x480 Display: 16 colors (4 bits), 256 colors (8 bits) Refresh Rate: 25Hz, 30Hz (frames / second) RGB: Red, Green and Blue colors Monitor technology: Cathode Ray Tube (CRT).

Download Presentation

Introduction to Experiment 5 VGA signal generator ECE 448 Spring 2007

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Experiment 5 VGA signal generator ECE 448 Spring 2007

  2. Video Graphic Array (VGA) • Resolution: 640x480 • Display: 16 colors (4 bits), 256 colors (8 bits) • Refresh Rate: 25Hz, 30Hz (frames / second) • RGB: Red, Green and Blue colors • Monitor technology: Cathode Ray Tube (CRT)

  3. VGA Monitor 0 639 0 Horizontal Flyback Horizontal Trace Vertical Flyback 479

  4. D/A VGA Monitor Interface Analog RGB output 6-bit digital color code for a single pixel FPGA output 64 colors board output

  5. RC-10 Monitor Interface Use these 2 higher bits

  6. VGA Control Signal Timing Resolution 640x480

  7. VGA 15 Pin

  8. VGA Control Signal Timing for fCLK = 48 MHz 1208 clock cycles 1253 clock cycles 1434 clock cycles 1525 clock cycles 480 lines 494 lines 496 lines 528 lines

  9. VHDL Timing for 48MHz • Please verify that you generate correct synchronization signals using • Functional simulation • Timing simulation • Oscilloscope • before you connect your VGA output to a CRT monitor.

  10. 0 1 0 Value detector 0 1 1 xxx Detector compares the input value with the number written on the box. If the input is same as given number then it outputs 1. External control Execution Unit 12 12 Color Generator 6 +1 6 RGB [Red, Green, Blue] 64 colors 6 12 bit reg. 0 set 1524 switch 1 12 0 clear blank pixels 1207 set 1433 switch 1 clear 1252 horizontal sync 10 10 +1 Switch 10 bit reg. En set 527 switch 1 11 0 clear 479 blank lines set clk (48 MHz) 495 switch 1 clear 493 vertical sync reset VGA signal generator

  11. Color Generator External Control 12 column_code RGB_color_code Color Generator 10 6 row 2 bits for Red component 2 bits for Green component 2 bits for Blue component • Output can be • generated on the fly, or • read from a precomputed look-up table (stored in BRAM)

  12. RC-10 BoardFPGA-VGA Pins

  13. Task 1: Displaying 8-layer box with 8 different colors End of Screen 60 pixels Color 1 Color 2 60 pixels 60 pixels Color 3 End of Screen

  14. Task 2 : Displaying rectangle in the middleof the screen Rectangle color Background color Joystick right and left - scrolling through 16 different colors of the rectangle. Joystick up and down - scrolling through 16 different colors of the background.

  15. Bonus 1 : Rectangle expanding and shrinkingin time time 2 > time 1 time 1 Rectangle color Background color Joystick right and left - scrolling through 16 different colors of the rectangle. Joystick up and down – increasing/decreasing the speed of expansion/shrinking.

  16. Bonus 2 : Circle in the middle of the screen Circle color Background color Joystick right and left - scrolling through 16 different colors of the rectangle. Joystick up and down - scrolling through 16 different colors of the background.

  17. Bonus 3 : Circle expanding and shrinking in time time 2 > time 1 time 1 Circle color Background color Joystick right and left - scrolling through 16 different colors of the rectangle. Joystick up and down – increasing/decreasing the speed of expansion/shrinking.

More Related