25. Video Sync Generator and Pixel Converter Cores

Similar documents
33. Avalon Streaming Test Pattern Generator and Checker Cores

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

Lesson 10: Video-Out Interface

Video and Image Processing Design Example

Nios II System Architect Design Tutorial

Introduction to graphics and LCD technologies. NXP Product Line Microcontrollers Business Line Standard ICs

Video and Image Processing Suite User Guide

Digital Systems Design. VGA Video Display Generation

Technical Note TN_158. What is the Camera Parallel Interface?

AN 588: 10-Gbps Ethernet Hardware Demonstration Reference Designs

Avalon Interface Specifications

VGA video signal generation

High-Definition Video Reference Design (UDX4)

TIP-VBY1HS Data Sheet

MONOCHROME RGB YCbCr VIDEO DIGITIZER

Ping Pong Game with Touch-screen. March 2012

Camera Sensor Driver Development And Integration

Video Conference System

Lab 2.0 Thermal Camera Interface

13. Publishing Component Information to Embedded Software

Altera Error Message Register Unloader IP Core User Guide

MP3 Player CSEE 4840 SPRING 2010 PROJECT DESIGN.

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

USER MANUAL MODEL

Qsys System Design Tutorial

Preliminary Draft May 19th Video Subsystem

Qsys and IP Core Integration

0832 Dot Matrix Green Display Information Board User s Guide

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

Different Display Configurations on i.mx35 Linux PDK

Nios II Development Kit Version 5.1 SP1 Release Notes

Accurate Measurement of the Mains Electricity Frequency

MicroVGA - Device Overview

}w!"#$%&'()+,-./012345<ya

Embedded Systems Design Course Applying the mbed microcontroller

8-ch RAID0 Design by using SATA Host IP Manual Rev1.0 9-Jun-15

Design and Verification of Nine port Network Router

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

Implementation of Web-Server Using Altera DE2-70 FPGA Development Kit

a8251 Features General Description Programmable Communications Interface

White Paper Streaming Multichannel Uncompressed Video in the Broadcast Environment

Nios II-Based Intellectual Property Camera Design

Using the Altera Serial Flash Loader Megafunction with the Quartus II Software

Using Altera MAX Series as Microcontroller I/O Expanders

kvmadmin - KVM-via-IP Admin Tool

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

RGB for ZX Spectrum 128, +2, +2A, +3

Applying the Benefits of Network on a Chip Architecture to FPGA System Design

Building an IP Surveillance Camera System with a Low-Cost FPGA

RGB - CGA, EGA, HD to VGA Converter ID# 657

AN3998 Application note

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

Introduction to the Altera Qsys System Integration Tool. 1 Introduction. For Quartus II 12.0

Bandwidth Calculations for SA-1100 Processor LCD Displays

Enhancing High-Speed Telecommunications Networks with FEC

Parameter values for the HDTV standards for production and international programme exchange

3D Input Format Requirements for DLP Projectors using the new DDP4421/DDP4422 System Controller ASIC. Version 1.3, March 2 nd 2012

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

PCM Encoding and Decoding:

SDLC Controller. Documentation. Design File Formats. Verification

MAX 10 Analog to Digital Converter User Guide

ELECTENG702 Advanced Embedded Systems. Improving AES128 software for Altera Nios II processor using custom instructions

Computer Peripherals

SSD1298. Advance Information. 240 RGB x 320 TFT LCD Controller Driver integrated Power Circuit, Gate and Source Driver with built-in RAM

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

A Scalable Large Format Display Based on Zero Client Processor

10/100/1000Mbps Ethernet MAC with Protocol Acceleration MAC-NET Core with Avalon Interface

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Serial Communications

DisplayPort Technical Overview

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

. ImagePRO. ImagePRO-SDI. ImagePRO-HD. ImagePRO TM. Multi-format image processor line

Multi Stream Transport (MST) Hub CSV-5200

Multiple clock domains

Altera High-Definition Multimedia Interface (HDMI) IP Core User Guide

NVIDIA Quadro M4000 Sync PNY Part Number: VCQM4000SYNC-PB. User Guide

Altera Advanced SEU Detection IP Core User Guide

Stereoscopic 3D Video in the Home

CSE467: Project Phase 1 - Building the Framebuffer, Z-buffer, and Display Interfaces

Information Board User s Guide

DAC Digital To Analog Converter

Networking Remote-Controlled Moving Image Monitoring System

Quadro Professional Drivers Quadro FX 3800/4800/5800 and Quadro CX SDI User s Guide. Version 2.0

Application Note [AN-029] Interfacing and set-up of Toshiba T6963C

Technical Brief. Quadro FX 5600 SDI and Quadro FX 4600 SDI Graphics to SDI Video Output. April 2008 TB _v01

White Paper Thin-Film-Transistor (TFT) LCD Display Control Electronics Design and Operation Revision 1.0

Chapter 6: From Digital-to-Analog and Back Again

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

DAS202Tools v1.0.0 for DAS202 Operating Manual

FPGA INTEGRATION MANUAL SATURN-SIL 2 MODULES. Dictionary Code. Edition 01. Revision 00. Number of pages 18

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Decimal Number (base 10) Binary Number (base 2)

Sprites in Block ROM

Work with Arduino Hardware

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

CENTRONICS interface and Parallel Printer Port LPT

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Transcription:

25. Video Sync Generator and Pixel Converter Cores QII55006-9.1.0 Core Overview Figure 25 1. Typical Placement in a System The video sync generator core accepts a continuous stream of pixel data in RGB format, and outputs the data to an off-chip display controller with proper timing. You can configure the video sync generator core to support different display resolutions and synchronization timings. The pixel converter core transforms the pixel data to the format required by the video sync generator. Figure 25 1 shows a typical placement of the video sync generator and pixel converter cores in a system. In this example, the video buffer stores the pixel data in 32-bit unpacked format. The extra byte in the pixel data is discarded by the pixel converter core before the data is serialized and sent to the video sync generator core. Video Buffer 0RGB BGR0 BGR0 BGR Data B,G,R Video B,G,R Pixel SGDMA FIFO Format Sync 32 bits 32 bits 32 bits Converter 24 bits Adapter 8 bits Generator 8 bits Avalon-MM Avalon-ST The video sync generator and pixel converter cores are SOPC Builder-ready and integrate easily into any SOPC Builder-generated system. These cores are deployed in the Nios II Embedded Software Evaluation Kit (NEEK), which includes an LCD display daughtercard assembly attached via an HSMC connector. This chapter contains the following sections: Video Sync Generator on page 25 2 Pixel Converter on page 25 5 Device Support on page 25 6 Hardware Simulation Considerations on page 25 6 November 2009 Altera Corporation Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals

25 2 Chapter 25: Video Sync Generator and Pixel Converter Cores Video Sync Generator Video Sync Generator Functional Description This section describes the hardware structure and functionality of the video sync generator core. The video sync generator core adds horizontal and vertical synchronization signals to the pixel data that comes through its Avalon (Avalon-ST) input interface and outputs the data to an off-chip display controller. No processing or validation is performed on the pixel data. Figure 25 2 shows a block diagram of the video sync generator. Figure 25 2. Video Sync Generator Block Diagram VIDEO SYNC GENERATOR clk reset data ready valid sop rgb_out hd vd den eop You can configure various aspects of the core and its Avalon-ST interface to suit your requirements. You can specify the data width, number of beats required to transfer each pixel and synchronization signals. See Instantiating the Core in SOPC Builder on page 25 3 for more information on the available options. To ensure incoming pixel data is sent to the display controller with correct timing, the video sync generator core must synchronize itself to the first pixel in a frame. The first active pixel is indicated by an sop pulse. The video sync generator core expects continuous streams of pixel data at its input interface and assumes that each incoming packet contains the correct number of pixels (Number of rows * Number of columns). Data starvation disrupts synchronization and results in unexpected output on the display. Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals November 2009 Altera Corporation

Chapter 25: Video Sync Generator and Pixel Converter Cores 25 3 Video Sync Generator Instantiating the Core in SOPC Builder Use the MegaWizard interface for the video sync generator core in SOPC Builder to configure the core. Table 25 1 lists the available parameters in the MegaWizard interface. Table 25 1. Video Sync Generator Parameters Parameter Name Horizontal Sync Pulse Pixels Total Vertical Scan Lines Number of Rows Horizontal Sync Pulse Polarity Horizontal Front Porch Pixels Vertical Sync Pulse Polarity Vertical Sync Pulse Lines Vertical Front Porch Lines Number of Columns Horizontal Blank Pixels Total Horizontal Scan Pixels Beats Per Pixel Description The width of the h-sync pulse in number of pixels. The total number of lines in one video frame. The value is the sum of the following parameters: Number of Rows, Vertical Blank Lines, and Vertical Front Porch Lines. The number of active scan lines in each video frame. The polarity of the h-sync pulse; 0 = active low and 1 = active high. The number of blanking pixels that follow the active pixels. During this period, there is no data flow from the Avalon-ST sink port to the LCD output data port. The polarity of the v-sync pulse; 0 = active low and 1 = active high. The width of the v-sync pulse in number of lines. The number of blanking lines that follow the active lines. During this period, there is no data flow from the Avalon-ST sink port to the LCD output data port. The number of active pixels in each line. The number of blanking pixels that precede the active pixels. During this period, there is no data flow from the Avalon-ST sink port to the LCD output data port. The total number of pixels in one line. The value is the sum of the following parameters: Number of Columns, Horizontal Blank Pixel, and Horizontal Front Porch Pixels. The number of beats required to transfer one pixel. Valid values are 1 and 3. This parameter, when multiplied by Data Stream Bit Width must be equal to the total number of bits in one pixel. This parameter affects the operating clock frequency, as shown in the following equation: Vertical Blank Lines Data Stream Bit Width Operating clock frequency = (Beats per pixel) * (Pixel_rate), where Pixel_rate (in MHz) = ((Total Horizontal Scan Pixels) * (Total Vertical Scan Lines) * (Display refresh rate in Hz))/1000000. The number of blanking lines that proceed the active lines. During this period, there is no data flow from the Avalon-ST sink port to the LCD output data port. The width of the inbound and outbound data. November 2009 Altera Corporation Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals

25 4 Chapter 25: Video Sync Generator and Pixel Converter Cores Video Sync Generator Signals Table 25 2 lists the input and output signals for the video sync generator core. Table 25 2. Video Sync Generator Core Signals rgb_out Timing Diagrams Signal Name Width (Bits) Direction Description Global Signals clk 1 Input System clock. reset 1 Input System reset. Avalon-ST Signals data Variablewidth Input Incoming pixel data. The datawidth is determined by the parameter Data Stream Bit Width. ready 1 Output This signal is asserted when the video sync generator is ready to receive the pixel data. valid 1 Input This signal is not used by the video sync generator core because the core always expects valid pixel data on the next clock cycle after the ready signal is asserted. sop 1 Input Start-of-packet. This signal is asserted when the first pixel is received. eop 1 Input End-of-packet. This signal is asserted when the last pixel is received. LCD Output Signals Variablewidth Output Display data. The datawidth is determined by the parameter Data Stream Bit Width. hd 1 Output Horizontal synchronization pulse for display. vd 1 Output Vertical synchronization pulse for display. den 1 Output This signal is asserted when the video sync generator core outputs valid data for display. The horizontal and vertical synchronization timings are determined by the parameters setting. Figure 25 3 shows the horizontal synchronization timing when the parameters Data Stream Bit Width and Beats Per Pixel are set to 8 and 3, respectively. Figure 25 3. Horizontal Synchronization Timing 8 Bits DataWidth and 3 Beats Per Pixel clk hd Horizontal sync pulse den 1 pixel rgb_out R G B R G B Horizontal blank pixels Horizontal front porch Horizontal synchronization width Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals November 2009 Altera Corporation

Chapter 25: Video Sync Generator and Pixel Converter Cores 25 5 Pixel Converter Figure 25 4 sho.ws the horizontal synchronization timing when the parameters Data Stream Bit Width and Beats Per Pixel are set to 24 and 1, respectively. Figure 25 4. Horizontal Synchronization Timing 24 Bits DataWidth and 1 Beat Per Pixel clk hd Horizontal synchronization pulse den rgb_out 1 pixel RGBRGBRGB Horizontal blank pixels RGBRGBRGB Horizontal front porch Horizontal synchronization width Figure 25 5 shows the vertical synchronization timing. Figure 25 5. Vertical Synchronization Timing 8 Bits DataWidth and 3 Beats Per Pixel / 24 Bits DataWidth and 1 Beat Per Pixel vd Vertical synchronization pulse hd den Horizontal synchronization width Vertical blank lines Vertical synchronization width Vertical front porch Pixel Converter Functional Description This section describes the hardware structure and functionality of the pixel converter core. The pixel converter core receives pixel data on its Avalon-ST input interface and transforms the pixel data to the format required by the video sync generator. The least significant byte of the 32-bit wide pixel data is removed and the remaining 24 bits are wired directly to the core's Avalon-ST output interface. Instantiating the Core in SOPC Builder Use the MegaWizard interface for the pixel converter core in SOPC Builder to add the core to a system. You can configure the following parameter: Source symbols per beat The number of symbols per beat on the Avalon-ST source interface. November 2009 Altera Corporation Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals

25 6 Chapter 25: Video Sync Generator and Pixel Converter Cores Device Support Signals Table 25 3 lists the input and output signals for the pixel converter core. Table 25 3. Pixel Converter Input Interface Signals Signal Name Width (Bits) Direction Description Global Signals clk 1 Input reset_n 1 Input Not in use. Avalon-ST Signals data_in 32 Input Incoming pixel data. Contains four 8-bit symbols that are transferred in 1 beat. data_out 24 Output Output data. Contains three 8-bit symbols that are transferred in 1 beat. sop_in 1 Input eop_in 1 Input ready_in 1 Input valid_in 1 Input empty_in 1 Input sop_out 1 Output eop_out 1 Output ready_out 1 Output valid_out 1 Output empty_out 1 Output Device Support The video sync generator and pixel converter cores support all Altera device families. Hardware Simulation Considerations Referenced Documents Wired directly to the corresponding output signals. Wired directly from the input signals. For a typical 60 Hz refresh rate, set the simulation length for the video sync generator core to at least 16.7 s to get a full video frame. Depending on the size of the video frame, simulation may take a very long time to complete. This chapter references Avalon Interface Specifications. Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals November 2009 Altera Corporation

Chapter 25: Video Sync Generator and Pixel Converter Cores 25 7 Document Revision History Document Revision History Table 25 4. Document Revision History Table 25 4 shows the revision history for this chapter. Date and Document Version Changes Made Summary of Changes November 2009 v9.1.0 No change from previous release. March 2009 v9.0.0 November 2008 v8.1.0 May 2008 v8.0.0 No change from previous release. Changed to 8-1/2 x 11 page size. No change to content. Added new parameters for both cores. Updates made to comply with the Quartus II software version 8.0 release. f For previous versions of the Quartus II Handbook, refer to the Quartus II Handbook Archive. November 2009 Altera Corporation Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals

25 8 Chapter 25: Video Sync Generator and Pixel Converter Cores Document Revision History Quartus II Handbook Version 9.1 Volume 5: Embedded Peripherals November 2009 Altera Corporation