VIP Video Converter Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel VIP Video Converter. Altera Video Design Framework Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 143
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Altera Video System

© 2012 Altera Corporation—Confidential Altera Video System Building / implementing video systems

Page 2 - Memory Bandwidth

© 2012 Altera Corporation—Confidential Qsys-Supported Standard Interfaces  Avalon-MM (memory mapped)  Little Endian  Control plane  Master interfa

Page 3

© 2012 Altera Corporation—Confidential Memory Access for Deinterlacer 103 1 field write 4 field reads over 2 ports Motion Values 1080i/60 1080p/60 19

Page 4 - Altera Video Framework

© 2012 Altera Corporation—Confidential Deinterlacing The problem - III  For best results, the interpolation must be performed in the correct directio

Page 5 - Available Now!

© 2012 Altera Corporation—Confidential Maths to the rescue!  Edge direction information may be gained in progressive video frames by using well known

Page 6 - Video Development Kits

© 2012 Altera Corporation—Confidential “calendar” sequence, bucket detail Dil II UDX 4 (ACDS 11.1) 106 Dil II UDX 5 (ACDS 12.1) Incorrect edge directi

Page 7 - Traditional System Design

© 2012 Altera Corporation—Confidential “flag” sequence Dil II UDX 4 (ACDS 11.1) 107 Dil II UDX 5 (ACDS 12.1) Incorrect edge direction at low angles ca

Page 8 - Qsys automatically

© 2012 Altera Corporation—Confidential moving zoneplate detail Dil II UDX 4 (ACDS 11.1) 108 Dil II UDX 5 (ACDS 12.1) Many incorrect edge direction dec

Page 9 - Example Design in Qsys

© 2012 Altera Corporation—Confidential What’s the cost ? Finally - ACDS 12.1 Release 109  Since the UDX5 release additional pipelining has been inclu

Page 10 - ARM AMBA™ AXI™ 3.0

© 2012 Altera Corporation—Confidential f= (A+B)/2 g= (B+D)/2 h= (C+D)/2 e= (A+C)/2 VIP Suite IP: Scaling Algorithms Nearest Neighbor A A B B A A

Page 11 - Avalon Streaming (ST) Video

© 2012 Altera Corporation—Confidential VIP Function Details Scaler Polyphase Algorithm  Data from multiple lines of the input image are assembled in

Page 12 - Qsys Interconnect

© 2012 Altera Corporation—Confidential Understanding Resource Tradeoff Scaler Polyphase Algorithm  Resource usage of a Nv x Nh taps scaling engine 

Page 13 - Add IP blocks to the system

© 2012 Altera Corporation—Confidential Open, Low-overhead Interface Standard: Avalon Streaming (ST) Video 12 Open interface protocol for streaming vi

Page 14

© 2012 Altera Corporation—Confidential Scaling: Not So Simple In Implementation  Video scaling is also subject to artifacts  Simple “stretching” is

Page 15 - Start a New System in Qsys

© 2012 Altera Corporation—Confidential VIP Suite – Scaler II  Edge-adaptive scaling (v12.0)  Reduces blurriness while maintaining realism  Polypha

Page 16 - Add the VIP Components

© 2012 Altera Corporation—Confidential Scaler II – Edge Adaptive  Available in ACDS 12.0  Standard polyphase Scaler II quality is ‘not bad’ so sign

Page 17

© 2012 Altera Corporation—Confidential Scaler II – Edge Adaptive  2 additions to polyphase algorithm  Use two sets of coefficients, one for pixels

Page 18 - Add Custom Components

© 2012 Altera Corporation—Confidential Upscale (1)  For upscale  Some improvement in edge sharpness with reduced stepping 117 v11.1 v12.0

Page 19 - Connect the Components

© 2012 Altera Corporation—Confidential Upscale (2)  For upscale  Some improvement in edge sharpness with reduced stepping 118 v11.1 v12.0

Page 20

© 2012 Altera Corporation—Confidential Downscale (1)  For downscale  General improvement in the sharpness of the output image 119 v11.1 v12.0

Page 21

© 2012 Altera Corporation—Confidential Downscale (2)  For downscale  General improvement in the sharpness of the output image 120 v11.1 v12.0

Page 22 - Development

© 2012 Altera Corporation—Confidential Scaler II – Edge Adaptive Resource Usage Resource Usage on Arria V ALMs 3090 Memory Bits 313141 M10Ks 48 DSPs 1

Page 23

© 2012 Altera Corporation—Confidential Exercise #6 Mixer, OSD, Ctrl Sync, and CRS IP

Page 24 - Exercise #0

© 2012 Altera Corporation—Confidential Standard Interface Example 14 Avalon-MM Master AXI Slave Qsys Interconnect (simplified) AXI Master Avalon-MM Sl

Page 25 - Video Trace Monitor

© 2012 Altera Corporation—Confidential Lab 6: Mixer IP, OSD (and transparency), Ctrl Sync IP (for layer switching) and CRS IP 123

Page 26

© 2012 Altera Corporation—Confidential 124 VIP Suite IP: Alpha Blending Mixer Select the number of layers to be mixed The level of blending is contro

Page 27

© 2012 Altera Corporation—Confidential Control Synchronizer  When the control data packet of the next video frame changes  Control Synchronizer dete

Page 28 - No conversion is done to the

© 2012 Altera Corporation—Confidential Control Synchronizer … in our case  The control synchronizer is used to ensure that register accesses to the s

Page 29

© 2012 Altera Corporation—Confidential 127 VIP Suite IP: Chroma Resampler  This function allows you to change between 4:4:4, 4:2:2 and 4:2:0 samplin

Page 30 - Debug pipe agnostic

© 2012 Altera Corporation—Confidential Exercise #7 VIP Reference Designs

Page 31 - Monitor

© 2012 Altera Corporation—Confidential Reference Design: UDX6 on Arria-V starter kit Colour Space ConverterColour Space ConverterFrame ReaderInterlace

Page 32 - Trace Table View

© 2012 Altera Corporation—Confidential UDX5 in S4GX 130

Page 33 - Up to first 6 beats of

© 2012 Altera Corporation—Confidential UDX 5.1.3 (available now)  2 channels of 1080p60 processing featuring:  Motion Adaptive Deinterlacing  Edge

Page 34 - Exercise #1

© 2012 Altera Corporation—Confidential 4K Upscale 3  Deinterlace and up-scale from SD to 3840x2160p60 (QFHD)  1x 3G SDI Input, 4 x 3G SDI Outputs 

Page 35 - Interface Types

© 2012 Altera Corporation—Confidential Qsys Design Flow 15  Create Quartus® II project  Create Qsys project from Quartus II  Add IP blocks to the

Page 36 - Structure of packet

© 2012 Altera Corporation—Confidential 4K Upscale 3 Block Diagram Clipper ACLine BufferScaler ACClipper ACLine BufferScaler ACClipper ACLine BufferSca

Page 37 - Video Data Packet

© 2012 Altera Corporation—Confidential 4K Upscale 2.0 (available now)  1 channel of QFHD processing featuring:  Motion Adaptive Deinterlacing  Edge

Page 38 - Color Pattern

© 2012 Altera Corporation—Confidential Introducing: A larger & powerful NEEK with 5 Mega Digital Camera VEEK Terasic’s Video & Embedded Eva

Page 39 - Recommended Color Patterns

© 2012 Altera Corporation—Confidential How to Equip with VEEK  Download VIP Suite designs  Two type of files  Design files  SD card files  www.al

Page 40 - Description Bits

© 2012 Altera Corporation—Confidential Demo # 1 – Simple Format Conversion 137 Input Processing Output composite de-interlaced video /w txt overl

Page 41 - Parameters

© 2012 Altera Corporation—Confidential Demo # 2 – Camera Video Scaling Input Processing Output Camera on VEEK Camera Input/w txt overlay (Camera

Page 42 - Verification

© 2012 Altera Corporation—Confidential Demo # 3 – Picture in Picture  2 video inputs  Composite, Camera  Key Video Functions  Deinterlacer, Scaler

Page 43 - What is it?

© 2012 Altera Corporation—Confidential Demo # 4 – Multi-view  3 video inputs  Composite, Camera, DVI  1 DVI output with multiview  Key Video Funct

Page 44 - Environment

© 2012 Altera Corporation—Confidential Summary

Page 45 - Three types of classes

© 2012 Altera Corporation—Confidential 142 Altera Technical Support over worldwide  Reference Quartus II software on-line help  Quartus II Handbook

Page 46 - Easy to constrain :

© 2012 Altera Corporation—Confidential Use Qsys to Build VIP Systems  Start with a New Quartus II Project 16

Page 47 - Source & sink

© 2012 Altera Corporation—Confidential 143 Axios Technical Support in Korea  FAE support: 031-776-9888  Altera town café : http://cafe.naver.com/alt

Page 48 -  Flow :

© 2012 Altera Corporation—Confidential Learn More Through Technical Training 144 With Altera's instructor-led training courses, you can:  Le

Page 49 - Exercise #2

© 2012 Altera Corporation—Confidential 145

Page 50 -  Part 2:

© 2012 Altera Corporation—Confidential Thank You!

Page 51 - Run-Time Control

© 2012 Altera Corporation—Confidential Start a New System in Qsys 17

Page 52 - … … …

© 2012 Altera Corporation—Confidential Add the VIP Components 18

Page 53 - To update control registers:

© 2012 Altera Corporation—Confidential Add the VIP Components 19

Page 54 - Software API

© 2012 Altera Corporation—Confidential Add Custom Components  Map component signals to Qsys Interface types and Signal Names on the Signals tab 20

Page 55 - Detects input format

© 2012 Altera Corporation—Confidential Connect the Components 21 Click the open dot to make connection

Page 56 - Example – Main program

© 2012 Altera Corporation—Confidential Agenda  Altera Video Design Framework  Exercise #0 : VIP components & Introduction  Exercise #1 : Avalon

Page 57 - Using an embedded processor

© 2012 Altera Corporation—Confidential Connect the Components 22

Page 58 - Avalon MM control plane

© 2012 Altera Corporation—Confidential 23

Page 59

© 2012 Altera Corporation—Confidential Compile & Integrate Design 24 Qsys Quartus II Eclipse Development Kits

Page 60 - Exercise #3

© 2012 Altera Corporation—Confidential Summary  Altera® video design framework enables rapid development  Mix & match existing IP - Leverage Al

Page 61

© 2012 Altera Corporation—Confidential Exercise #0 VIP components & Introduction

Page 62 -  (Custom) Terminator Block

© 2012 Altera Corporation—Confidential VIP Components Required for Lab 1  Test Pattern Generator  Clocked Video Output  Video Trace Monitor  Trace

Page 63 - (such as BT656 and DVI) to

© 2012 Altera Corporation—Confidential Lab 1: Video output and debug  Build basic VIP system in Qsys and debug 28

Page 64

© 2012 Altera Corporation—Confidential VIP Function Details Generate a color bar or solid color test pattern 29

Page 65 - Configuration

© 2012 Altera Corporation—Confidential VIP Function Details Clock Video Output  The Clocked Video Output MegaCore function converts from Avalon-ST Vi

Page 66 - Bypassing An IP Core

© 2012 Altera Corporation—Confidential VIP Function Details Video Trace Monitor 31 System Console visualisation FPGA Video IP Video IP Av-ST V

Page 67 - Avoiding Deadlock

© 2012 Altera Corporation—Confidential Altera Video Design Framework

Page 68 - Frame locking

© 2012 Altera Corporation—Confidential 32 The SystemConsole Framework  Extensible framework for moving data between the FPGA and the host  Trace fea

Page 69 -  Poor jitter performance

© 2012 Altera Corporation—Confidential QSys Debug System: Insert Monitors 33  Insert Avalon-ST Video Monitor(s) in the video datapath  Connect Monit

Page 70

© 2012 Altera Corporation—Confidential Trace Table View 34 Live trace of selectable video control and data packets Av-ST Video protocol • Video contro

Page 71 - Overflow

© 2012 Altera Corporation—Confidential Trace Table View – Pixel Data [Beta feature] 35 Av-ST Video protocol • Video data packet information Data f

Page 72 -  74.176 MHz pixel clock

© 2012 Altera Corporation—Confidential Exercise #1 Avalon Video Streaming Interface

Page 73 - Locking procedure

© 2012 Altera Corporation—Confidential Interface Types  Avalon Streaming (ST) Video interface  Avalon Memory-Mapped (MM) interface 37 Clocked Video

Page 74 - Exercise #4

© 2012 Altera Corporation—Confidential Avalon Streaming (ST) Video  Avalon-ST Video protocol is a packet-oriented way to send video and control data

Page 75 - Frame Rate Conversion

© 2012 Altera Corporation—Confidential Video Data Packet  Sent per pixel in raster scan order  Static Parameters:  Bit per pixel per color p

Page 76 - Frame Buffer

© 2012 Altera Corporation—Confidential Color Pattern 40  Each color plane sample maps to Avalon-ST symbol  Symbol Transmission Order  Horizont

Page 77

© 2012 Altera Corporation—Confidential Recommended Color Patterns 41 4:2:0 YCbCr 4:2:2 YCbCr 4:4:4 YCbCr RGB Sequence Parallel Recommended

Page 78

© 2012 Altera Corporation—Confidential 4 Altera Video Framework  Building block IP cores to speed up development  Open, low-overhead interface stan

Page 79 - Triple Buffer Mode

© 2012 Altera Corporation—Confidential Control Data Packet - Definitions 42 Interlacing Height Width Component 4 Number of lines in a frame o

Page 80

© 2012 Altera Corporation—Confidential Control Data Packets - Examples Parameters Description Type Width Height Interlacing 15 1920 1080 0011 T

Page 81 - • 2x Frame Buffer

© 2012 Altera Corporation—Confidential Verification

Page 82 - Deinterlacer (MA)

© 2012 Altera Corporation—Confidential 45 Avalon-ST Video Verification IP suite – What is it?  A SystemVerilog class library  Released as part of Qu

Page 83

© 2012 Altera Corporation—Confidential Avalon Streaming Verification Test Environment 46

Page 84 - Sample Packing

© 2012 Altera Corporation—Confidential 47 Three types of classes  1 Video “items”  Pixels  Video data packets  Avalon-ST Video Control packets  A

Page 85 - 2 x 2.654 = 5.308

© 2012 Altera Corporation—Confidential 48 Class type 1: Avalon-ST Video packet items  Easy to use :  function c_pixel pop_pixel();  function c_pixe

Page 86 - channel input

© 2012 Altera Corporation—Confidential 49 Class type 2 : Bus Functional Models - Source & sink  Randomized Avalon-ST Video at pin level 

Page 87 - System Interconnect Fabric

© 2012 Altera Corporation—Confidential 50 File I/O test  Tests a user’s DUT with their own video files  Enables easy test of Avalon-ST video complia

Page 88 - (UDX Reference Design)

© 2012 Altera Corporation—Confidential Exercise #2 Run-time Configuration

Page 89 - Multi-cast writes

© 2012 Altera Corporation—Confidential 5 Video Image Processing (VIP) Suite BT656/1120, DVI  Avalon ST video Scaler / Scaler II Chroma resampler Alp

Page 90 - Exercise #5

© 2012 Altera Corporation—Confidential Lab 2: Custom IP Verification and Insertion  Part 1:  Part 2: 52

Page 91

© 2012 Altera Corporation—Confidential Run-Time Control 53  System Interconnect Fabric Scaler S i o Nios II Processor M CSC i o Nios II Process

Page 92

© 2012 Altera Corporation—Confidential Control Registers Address Register Description 0 Go  Bit zero of this register is the Go bit, all other bi

Page 93 - Deinterlacer II

© 2012 Altera Corporation—Confidential Updating Control Registers  Custom logic or a Nios II processor can be used to run-time configure the VIP core

Page 94 - The problem - I

© 2012 Altera Corporation—Confidential Software API  Altera provides a set of VIP APIs (C++) in the following reference designs:  Video Processing R

Page 95 - The problem - II

© 2012 Altera Corporation—Confidential Example – Run Time Configuration 57 CVO Nios II Processor CVI High Performance DDR2 Memory Controller Deinterla

Page 96 - Preferred when

© 2012 Altera Corporation—Confidential Example – Main program 58 CVO Nios II Processor CVI High Performance DDR2 Memory Controller Deinterlacer (MA) F

Page 97 - Telecine

© 2012 Altera Corporation—Confidential Run-time Control of the Video Chain  Build video signal chains that can be updated on-the-fly without changing

Page 98 - ‘Motion bleed’ reduces

© 2012 Altera Corporation—Confidential Run-time Control of the Video Chain  Most video functions permit run-time control of some aspects of their b

Page 99

© 2012 Altera Corporation—Confidential Nios II Controls the Video PiP 62

Page 100 - Total: 10.574Gbit/s

© 2012 Altera Corporation—Confidential 7 Video Development Kits Cyclone III FPGA Stratix ® IV FPGA, Arria ® V FPGA Arria II GX FPGA Cyclone ® IV FP

Page 101 - The problem - III

© 2012 Altera Corporation—Confidential Exercise #3 Switch & clock/frame locking

Page 102 - Maths to the rescue!

© 2012 Altera Corporation—Confidential Lab 3: Switch IP, clock locking and frame locking 64

Page 103 - Correct edge direction

© 2012 Altera Corporation—Confidential Additional Components Required for Lab 3  Nios II Processor-Controlled Sub-System  Clocked Video Input VIP Co

Page 104 - Dil II UDX 5 (ACDS 12.1)

© 2012 Altera Corporation—Confidential VIP Function Details Clock Video Input  The Clocked Video Input MegaCore function converts from clocked video

Page 105

© 2012 Altera Corporation—Confidential Lab3: Video input (and debug) and NIOS run-time control 67

Page 106 - Finally - ACDS 12.1 Release

© 2012 Altera Corporation—Confidential Switch  Allows flexible routing of Avalon-ST Video  Can be used for muxing, de-muxing and crossbar switches 

Page 107 - Lower cost (FPGA resources)

© 2012 Altera Corporation—Confidential Bypassing An IP Core  Starting state  Video Input is connected to Out 1  In 1 is connected to Video Output 

Page 108 - Scaler Polyphase Algorithm

© 2012 Altera Corporation—Confidential Avoiding Deadlock  Changing Switch 2, too early could result in deadlock  Solution is to poll until Switch 1

Page 109 - Recommended parameters

© 2012 Altera Corporation—Confidential Genlock  “Sync generator locking” is the process of aligning video outputs to the timing of a reference input

Page 110 - Interpolation is not perfect

© 2012 Altera Corporation—Confidential Clock Locking – RX Clock 72 Sync SeparatorCVI CVOSDI TXsofsof_lockedvid_clkrefclk_divfhvrx_clkFPGAPLL74.25 MHz1

Page 111 - VIP Suite – Scaler II

© 2012 Altera Corporation—Confidential Traditional System Design  Components in system use different interfaces to communicate (some standard, some n

Page 112 - Scaler II – Edge Adaptive

© 2012 Altera Corporation—Confidential Clock Locking – VCXO 73 Divider +-Charge PumpPFDVCXOFeedback Divider27MHzPLLSync SeparatorCVI CVOSDI TXsofsof_l

Page 113

© 2012 Altera Corporation—Confidential Frame Locking  Input and output frames must have the same frame rate  Frame rate is the number of frames per

Page 114 - Upscale (1)

© 2012 Altera Corporation—Confidential Frame Locking - Example  NTSC  Interlaced @ 29.97 fps  Deinterlace to progressive 480p @ 59.94 fps  13.5 M

Page 115 - Upscale (2)

© 2012 Altera Corporation—Confidential Clocked Video Output - Locking  Locking procedure  Compares sof signal to its internal sof  post-sof gap and

Page 116 - Downscale (1)

© 2012 Altera Corporation—Confidential Exercise #4 Frame buffer, FRC and Calculating Memory Bandwidth

Page 117 - Downscale (2)

© 2012 Altera Corporation—Confidential Lab 4: Ext Memory, Frame Buffer IP and Frame Rate Conversion 78

Page 118

© 2012 Altera Corporation—Confidential Frame Buffer 79

Page 119 - Exercise #6

© 2012 Altera Corporation—Confidential Frame Buffer 80 Double Buffering Frame Buffer Memory Writer Memory Reader System Interconnect Fabric External R

Page 120

© 2012 Altera Corporation—Confidential Frame Rate Conversion  The Frame Buffer MegaCore performs frame rate conversion  It has two modes:  Triple

Page 121 - Select the size of the image

© 2012 Altera Corporation—Confidential Triple Buffer Mode  Output 1 shows frame repeating  Output 2 shows frame dropping  Output 3 shows locked fra

Page 122 - Control Synchronizer

© 2012 Altera Corporation—Confidential Automatic Interconnect Generation  Avoids error-prone integration  Saves development time with automatic log

Page 123 - Avalon MM

© 2012 Altera Corporation—Confidential External Memory Calculation  Calculate worst case external memory requirements of the system:  Compute worst

Page 124 - Chroma Resampler

© 2012 Altera Corporation—Confidential External Memory Bandwidth Calculation 84 CVO Nios II Processor CVI High Performance DDR2 Memory Controller Dein

Page 125 - Exercise #7

© 2012 Altera Corporation—Confidential Understanding External Memory Requirement Deinterlacer (motion adaptive)  Motion adaptive deinterlacer requir

Page 126

© 2012 Altera Corporation—Confidential Understanding External Memory Requirement Deinterlacer (motion adaptive)  Motion adaptive deinterlacer requir

Page 127 - UDX5 in S4GX

© 2012 Altera Corporation—Confidential External Memory Bandwidth Calculation Data Sample Packing Limiting factors:  20 bit YCbCr 4:2:2 pixels  10 b

Page 128 - Edge Adaptive Scaling

© 2012 Altera Corporation—Confidential External Memory Bandwidth Calculation Worst-Case Bandwidth for Individual IPs Function Worst Case Input Format

Page 129 - 4K Upscale 3

© 2012 Altera Corporation—Confidential  Total System Bandwidth Requirement  The Arria V GX starter board when using the soft memory controller

Page 130 - 4K Upscale 3 Block Diagram

© 2012 Altera Corporation—Confidential Efficient Memory Subsystem Architecture 90 CVO Nios II Processor CVI High Performance DDR2 Memory Controller De

Page 131 - Available now

© 2012 Altera Corporation—Confidential Multi-Port Front End Qsys Component (UDX Reference Design) 91 Design Requirements: • Adding Nios II and On Sc

Page 132 - 5 Mega Digital Camera

© 2012 Altera Corporation—Confidential High Performance Controller II Features  Supports up to 1066 MHz DDR3 memory  Power management  Advanced ban

Page 133 - How to Equip with VEEK

© 2012 Altera Corporation—Confidential Example Design in Qsys 10 M: Master S: Slave

Page 134 - Space Converter, Clipper

© 2012 Altera Corporation—Confidential Exercise #5 Deinterlacing, Scaling

Page 135 -  Scaler, Alpha blending

© 2012 Altera Corporation—Confidential Lab 5: Format Conversion (w/ Deinterlacer and Scaler IP) and CSC IP 94

Page 136 -  Key Video Functions

© 2012 Altera Corporation—Confidential 95 First all odd lines scanned (1/60sec) then all even lines (1/60sec) presenting a full picture (1/30sec) All

Page 137 - Demo # 4 – Multi-view

© 2012 Altera Corporation—Confidential VIP Function Details Deinterlacer II (motion adaptive) NEW  Deinterlacer II  Supports 3:2 cadence detectio

Page 138 - Summary

© 2012 Altera Corporation—Confidential Deinterlacing The problem - I  Moving images in interlaced video streams cannot be simply woven together to pr

Page 139 - View design examples

© 2012 Altera Corporation—Confidential Deinterlacing The problem - II  They can be better de-interlaced by interpolating the missing pixels using inf

Page 140 - Terasic support

© 2012 Altera Corporation—Confidential VIP Suite IP: Deinterlacing Algorithms Bob Interlacing Weave Interlacing: merge two neighboring field to a fra

Page 141 - Training

© 2012 Altera Corporation—Confidential De-interlacing: Motion Adaptive Switches between Bob and Weave  Pixels are collected from the current field a

Page 142

© 2012 Altera Corporation—Confidential Understanding External Memory Requirement Deinterlacer (motion adaptive)  ‘Motion bleed’ is optional  If sel

Page 143 - Thank You!

© 2012 Altera Corporation—Confidential Deinterlacer in the Frame Buffer Mode Deinterlacer can provide double or triple frame buffering in external RAM

Commentaires sur ces manuels

Pas de commentaire