LatticeECP3 HDMI/DVI Loopback Demo User s Guide



Similar documents
SPI Flash Programming and Hardware Interfacing Using ispvm System

ISP Engineering Kit Model 300

LatticeECP2/M S-Series Configuration Encryption Usage Guide

User Guide 980 HDMI Protocol Analyzer

LatticeECP3 HDMI/DVI Interface

SL-8800 HDCP 2.2 and HDCP 1.x Protocol Analyzer for HDMI User Guide

LatticeECP3 High-Speed I/O Interface

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

LatticeXP2 Configuration Encryption and Security Usage Guide

Health Monitoring Demo for ice40 Ultra Wearable Development Platform User Guide. UG103 Version 1.0, September 2015

USER MANUAL MODEL

HARDWARE MANUAL. BrightSign HD120, HD220, HD1020. BrightSign, LLC Lark Ave., Suite 200 Los Gatos, CA

Pre-tested System-on-Chip Design. Accelerates PLD Development

Video display interfaces

User Manual H5EA. HDMI Extender over Single Cat5e 7.1 CH AUDIO. rev: Made in Taiwan

HARDWARE MANUAL HD222, HD1022. BrightSign, LLC Lark Ave., Suite B Los Gatos, CA

User Manual Wireless HD AV Transmitter & Receiver Kit

ChipScope Pro Tutorial

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

MachXO2. CAT5e Cable. MachXO2

LatticeSC/Marvell Serial-GMII (SGMII) Physical Layer Interoperability

LevelOne User Manual. HVE-6501T/6501R HDMI over IP PoE Transmitter/Receiver. Ver 1.0

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

AVer EVC. Quick Installa on Guide. Package Contents. 8. Mini Din 8 pin MIC Cable 9. HDMI Cable

QU-16E. v1.3 HDMI 1 to 16 Distribution Amplifier OPERATION MANUAL

Vi DANTE TM Card User & Setup Guide

HARDWARE MANUAL. BrightSign XD230, XD1030, XD1230. BrightSign, LLC Lark Ave., Suite B Los Gatos, CA

Setup guide. point to point wall plate extenders

SecureLinx Spider Duo Quick Start Guide

AVer EVC. Quick Installation Guide. Package Contents. 8. Mini Din 8 pin MIC Cable. 1. Main System. 9. HDMI Cable. 2. Camera. 10.

FlyingDream AAT Driver Quick Guide V1.1

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Debugging Network Communications. 1 Check the Network Cabling

LINE IN, LINE OUT TO TV, VIDEO IN, VIDEO OUT

ebus Player Quick Start Guide

HDMI to 3G-SDI Converter Quick Installation Guide

Amcrest 960H DVR Quick Start Guide

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

PC/HD to 1080p DVI Scaler Box. Operation Manual DIGISCALE

High-Speed SERDES Interfaces In High Value FPGAs

USER MANUAL. VS-81H 8x1 HDMI Switcher MODEL: P/N: Rev 4

Multi Stream Transport (MST) Hub CSV-5200

HDMI/DVI to VGA/Component & Audio Break out Converter

ScreenBeam Wireless Display Kit. User Manual. Solutions for the Digital Life. Model #: SBWD100KIT. Ver 1.0

이 기기는 업무용 급 으로 전자파적합등록을 한 기기이오니 판매자 또는 사용자는 이점을 주의하시기 바라며 가정 외의 지역에서 사용하는 것을 목적으로 합니다

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Extender for HDMI Long Range. GTV-HDMI-CAT5LR. User Manual

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

DVB-T 730. User s Manual

HDMI To CV S-Video Down Converter With HDMI Audio Decoding Operation Manual

POPP Hub Gateway. Manual

Compaq Presario MyMovieSTUDIO. Getting Started

Displayport Extender via 2 multimode fibers LC Duplex Connector Extends Displayport Link up to 200 meters

DVB-T2 DIGITAL TV BOX

Troubleshooting Tips Lifestyle SA-2 & SA-3 Amplifier. Troubleshooting Tips

HANTZ + PARTNER The Upgrade Company!

Software User Guide UG-461

Modular Video Matrix Switchers and Signal Cards

CABLE ONE ALL DIGITAL

Date of Test: 5th 12th November 2015

Universal Push2TV HD Adapter PTVU1000 Installation Guide

Model: (Four Port) (Six Port) HDMI Selector Switches

STDP2600. Advanced HDMI to DisplayPort (dual mode) converter. Features. Applications

STIM202 Evaluation Kit

HDR-Ultra. Breaking the Distance Limits of HD Matrix Technology. Expandable HDMI Matrix over Cat5e/6

Capacitive Touch Lab. Renesas Capacitive Touch Lab R8C/36T-A Family

Quick Installation Card

C9 HD Video Conference Terminal

MSP-EXP430G2 LaunchPad Workshop

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

8-Port HDMI Switch USER MANUAL VS0801H

STDP4320. DisplayPort 1.2a splitter. Features. Applications

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

165 MHz, High Performance HDMI Transmitter ADV7513

Pancode VoIP/Pantel VoIP Access Control Door Phones. Installation and Programming Manual Release 1.0 June 2006

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

Important HP Media Center PC Updates

Features of Your Cisco Unified IP Phone

ScreenBeam Mini 2 Wireless Display Receiver

OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher

USB 3.0 Universal Mini Docking Station Adapter

Connections and Setup

HDMI Switch USER MANUAL VS481A

Lab 1: Introduction to Xilinx ISE Tutorial

CH7525 Brief Datasheet

Connections and Setup

User Guide. HDMI Active Cable Extender. DVI-7370c

HDMI Matrix Switch USER MANUAL VM0404H

ScreenBeam Wireless Display Kit. User Manual. Solutions for the Digital Life. Model #: SBWD100A, SBT100U. Ver 1.5

Quick Start Guide NVR DS-7104NI-SL/W NVR. First Choice For Security Professionals

Welcome to life on. Get started with this easy Self-Installation Guide.

Bluetooth HC-06 with serial port module Easy guide

HDMI 2.0 Implementation on Kintex UltraScale FPGA GTH Transceivers

How to setup a serial Bluetooth adapter Master Guide

DVBLink For IPTV. Installation and configuration manual

Hi! Let s get started.

PRELIMINARY USER MANUAL

DE4 NetFPGA Packet Generator Design User Guide

Transcription:

User s Guide September 2010 UG36_01.0

Introduction This guide describes how to use the LatticeECP3 Video Protocol Board and HDMI Mezzanine Card to demonstrate the LatticeECP3 HDMI/DVI Interface Reference Design featuring LatticeECP3 SERDES. The reference design consists of the HDMI Transmitter and Receiver cores which are compatible with both HDMI and DVI physical layer protocols. You can use this design to evaluate the SERDES-based HDMI/DVI physical layer solution for your specific application. This guide will familiarize you with the contents of the Display Interfaces Development Kit and walk you through the process of setting up the hardware platform with the LatticeECP3 Video Protocol Board, HDMI Mezzanine Card and accessories. This document assumes that you have already installed isplever software on your Windowsbased system, and are familiar with the basic processes and tools in isplever software. Please be aware that it is not necessary to install isplever software prior to setting up the hardware platform and running the demo, but it is recommended to have the isplever software installed so that you can experiment with the ORCAStra and Reveal tools for both debugging and demonstration purposes. If you are new to isplever software and the LatticeECP3 Video Protocol Board, we recommend that you read each section of this user s guide and follow the instructions in a sequential manner. You may also refer to the isp- LEVER Help system. Learning Objectives After you complete the steps in this guide, you will be able to do the following: 1. Set up the LatticeECP3 Video Protocol Board and HDMI Mezzanine Card properly for the demo and become familiar with the evaluation board s main features. 2. Establish a HDMI or DVI link and run the LatticeECP3 HDMI/DVI Loopback Demo by displaying the video/audio source on a display such as a PC monitor or flat-panel HDTV. 3. Monitor the HDMI/DVI receiver s status through the user-defined LED lights on the LatticeECP3 Video Protocol Board. 4. Control the HDMI/DVI Transmitter s video and audio outputs through the user-defined switches on the board. 5. Use the ORCAStra tool to monitor the SERDES/PCS status and dynamically adjust the settings if necessary. 6. Become familiar with the reference design flow and approach that will enable you to modify and rebuild the HDMI/DVI physical layer interface for your own purposes. Contents of the Display Interfaces Development Kit Documentation and Design Files Along with this user s guide, you can obtain more detailed information on the design and the demo boards by referring to the following documents: RD1097, LatticeECP3 HDMI/DVI Interface Reference Design. Included with the kit, this document provides functional descriptions of the HDMI/DVI transmitter and receiver cores instantiated in the demo design. EB52, LatticeECP3 Video Protocol Board Revision C User s Guide. Included with the kit, this user s guide describes the board features, power supplies, device programming, LED/DIP switch pinout and board schematics in detail. EB55, HDMI Mezzanine Card Revision B User s Guide. This user s guide, also included with the kit, describes the board features, header settings and board schematics in detail. Verilog-HDL source code of the demo design and the ngo netlist files of the HDMI transmitter and receiver cores. 2

LatticeECP3 HDMI/DVI Loopback Demo User s Guide Lattice Semiconductor Demo Hardware LatticeECP3 Video Protocol Board Revision C featuring the LatticeECP3 LFE3-95EA-7FN1156C FPGA device HDMI Mezzanine Card Revision B Two sets of HDMI cables Optional two sets of HDMI-to-DVI conversion cables ispdownload (USBN-2A) cable 12V DC wall adapter PC for running programming and debugging tools (not included in the development kit) HDMI source, which is not included in the demo kit, must be non-hdcp encrypted (e.g. digital camcorder, laptop with HDMI output etc.). The HDMI source from a DVD player or Blu-Ray player that is HDCP encrypted cannot be used as the source for this demo design. HDMI-equipped full high-definition TV or monitor with speakers (not included in the development kit) Demo Software isplever 8.1 or later for compiling the demo design and generating a new bitstream (a demo bitstream file is included in the project directory) ispvm System 17.8 or later for downloading the bitstream into the FPGA ORCAStra software for SERDES/PCS register configuration (included in isplever 8.1 or later) Demo Overview Figure 1 shows the LatticeECP3 Video Protocol Board and HDMI Mezzanine Card used for this demo. Figure 1. LatticeECP3 HDMI/DVI Demo Board Setup Status LEDs (from left): ch_algn_err ch_algned word_algn_err word_algned rx_format plpl rlol rlos Switch Control (from left): 1. lp_sel 2. audio_mute 3. red_fill 4. green_fill 5. blue_fill HDMI OUT HDMI IN2 (without equalizer) HDMI IN1 (with equalizer) DDC/HDP/CEC Line Selection Figure 2 shows the block diagram of the LatticeECP3 HDMI/DVI Loopback Demo based on the HDMI transmitter and receiver cores. 3

Figure 2. LatticeECP3 HDMI/DVI Loopback Demo Block Diagram TMDS_Data_In TMDS_CLK_In ESD Protection TMDS Equalizer HDMI Mezzanine Card SERDES/PCS FPGA Fabric Receiver (ngo) TMDS_Data_In TMDS_CLK_In ESD Protection TMDS 2:1 Switch AC Coupling SERDES Rx PCS Word Aligner Muti- Channel Aligner HDMI/DVI Decoder Audio/Video Data ADE/VDE REFCLK CDR TxPLL Audio_Mute User Blue_Fill Demo Control Green_Fill Logic Red_Fill Transmitter (ngo) TMDS_Data_Out TMDS_CLK_Out ESD Protection TMDS Level Shifter AC SERDES Coupling Tx 0000011111 Raw Data Loopback HDMI/DVI Encoder For this demo design, the PCS Quad C is used. It has been generated in 10-bit SERDES mode (10BSER) and the SERDES Tx/Rx Data Rate is set to 1.65Gbps. For the lower-resolution HDMI/DVI display mode, the SERDES Tx/Rx data rate can be adjusted through the ORCAStra GUI. Refer to RD1097 for a detailed functional description of the HDMI transmitter and receiver cores and SERDES/PCS configurations. Figure 3 shows the hierarchy of the demo design. Due to the complexity of the design, this figure only lists the major functional modules. 4

Figure 3. HDMI/DVI Loopback Demo Design Hierarchy hdmi_top.v pcs_dvi_10b.v reset_gen.v tx_reset_sm.v rx_reset_sm.v hdmi_lnk_ctl.v rlos_reset.v resync_pulse.v hdmi_receiver_bb.v hdmi_transmitter_bb.v ddc.v ecp3_orcastra.v The function of each module in Figure 3 is described in Table 1. Table 1. HDMI/DVI Loopback Demo Functional Block Descriptions Module hdmi_top.v pcs_dvi_10b.v reset_gen.v tx_reset_sm.v rx_reset_sm.v hdmi_lnk_ctl.v rlos_reset.v resync_pulse.v hdmi_receiver_bb.v hdmi_transmitter_bb.v ecp3_orcastra.v ddc.v Top-level module of the demo design. PCS interface file, customized in IPexpress. Description Reset sequence generator, based on recommendations made in TN1176, LatticeECP3 SERDES/PCS Usage Guide. Sub-module of reset_gen, Tx reset sequence state machine. Sub-module of reset_gen, Rx reset sequence state machine. HDMI Link Controller module, generates internal reset signals. Sub-module of hdmi_lnk_ctl. Generates internal reset when rlos transmits from high to low, indicating a cable plug-in condition. Sub-module of hdmi_lnk_ctl. Generates internal reset upon the detection of an error from the HDMI receiver module. Black-box interface file for the HDMI receiver NGO netlist. Black-box interface file for the HDMI transmitter NGO netlist. LatticeECP3 ORCAStra GUI interface module. Emulated DDC Interface for DVI protocol. 5

LatticeECP3 HDMI/DVI Loopback Demo Procedure Download the Display Interfaces Development Kit from the Web You can download and install the Display Interfaces Development Kit from the Display Interfaces Development Kit web page on the Lattice web site. Demo Hardware Setup 1. Install the HDMI Mezzanine Card on top of the LatticeECP3 Video Protocol Board by plugging the HDMI Mezzanine connector and Control Signal connector into their corresponding sockets. 2. Configure the HDMI Mezzanine Card H13 and H1~H12 headers based on the selection of the HDMI input port (J1 or J2). The J1 HDMI input port has an equalizer. The J2 HDMI input port has no equalizer. Header H13 determines which HDMI input port (J1 or J2) is chosen; header H1~H12 determines how the CEC, HPD and DDC clock and data signals are passed through. Table 2 shows the proper header settings of H13 and H1~H12 based on the selection of HDMI input port and CEC, HPD and DDC pass-through mode. Table 2. HDMI Mezzanine Card H13 and H1~H12 Header Configuration Table HDMI Input Selection J1 J2 CEC/HPD/DDC Pass-thru Mode H13 H9~H12 H5~H8 H1~H4 J1 J3 J2 J3 1 and 2 2 and 3 1 and 2 1 and 2 Open 2 and 3 2 and 3 Open To choose J1 as the HDMI input port, shunt pin1 and pin2 of H13; to pass CEC/HPD/DDC signals from J1 to J3, shunt pin1 and pin2 of H9~H12 headers, leave H5~H8 headers open, and shunt pin2 and pin 3 of H1~H4 headers. Figure 4 shows the conceptual configuration of H1~H12 headers for connecting CEC/HPD/DDC signals from J1 to J3. The square pin is the pin 1 of the header and the shunt is indicated by the darker gray color on the header. Figure 4. CEC/HPD/DDC Pass-thru From J1 to J3 H12, H11, H10, H9 J3 (HDMI Out) LatticeECP3 FPGA TMDS Equalizer H8, H7, H6, H5 J2 (HDMI Input 2) H4, H3, H2, H1 J1 (HDMI Input 1) To choose J2 as the HDMI input port, shunt pin2 and pin3 of H13; to pass CEC/HPD/DDC signals from J2 to J3, shunt pin 1 and pin 2 of H9~H12 headers, shunt pin2 and pin3 of H5~H8 headers, and leave H1~H4 headers open. Figure 5 shows the conceptual configuration of H1~H12 headers for connecting CEC/HPD/DDC signals from J2 to J3. The square pin is the pin 1 of the header and the shunt is indicated by the darker gray color on the header. 6

Figure 5. CEC/HPD/DDC Pass-thru From J2 to J3 H12, H11, H10, H9 J3 (HDMI Out) LatticeECP3 FPGA TMDS Equalizer H8, H7, H6, H5 J2 (HDMI Input 2) H4, H3, H2, H1 J1 (HDMI Input 1) 3. On the receiver side, plug one end of the HDMI cable into one of the HDMI input connectors (J1 or J2) of the HDMI Mezzanine Card based on the H13 header setting in Step 2. The other end of the HDMI cable is connected to a HDMI or DVI source (e.g. a HD camcorder). The HDCP encrypted source (e.g. DVD or Blu-Ray player) cannot be used for this demo. If the demo source is DVI (e.g. laptop DVI output), simply replace the HDMI cable with the HDVI-to-DVI Conversion cable. Plug the HDMI end into the HDMI input port (J1 or J2) of the HDMI Mezzanine Card and plug the DVI end into the DVI source output port. 4. On the transmitter side, plug one end of the HDMI cable into the HDMI output connector (J3) of the HDMI Mezzanine Card. The other end of the cable is connected to a HDMI-capable display device such as a LCD HDTV. If the sink device is a DVI-equiped PC monitor, simply replace the HDMI cable with the HDMI-to-DVI Conversion cable. Plug the HDMI end into HDMI output port (J3) of the HDMI Mezzanine Card, plug the DVI end into the PC monitor s DVI port. FPGA Device Configuration 1. Install the Lattice ispjtag USB download cable on the J28 header of the LatticeECP3 Video Protocol Board. Refer to EB52, LatticeECP3 Video Protocol Board Revision C User s Guide, for the ispvm JTAG connector pin definitions. 2. Referring to EB52, LatticeECP3 Video Protocol Board Revision C User s Guide, choose Jumper Setting #5 to include only the LatticeECP3 device on the JTAG daisy chain of the LatticeECP3 Video Protocol Board. 3. Plug in the 12V DC wall-mount power supply. 4. Launch ispvm System software on the PC. Click the Scan button and select the LFE3-95EA device in the Device Information window. 5. If you choose SPI Flash Background Progamming mode, select STMicro s SPI-M25P64 as the on-board 64- Mbit SPI flash device (see Figure 6). Press the OK buttons to exit the SPI Serial Flash Device and Device Information windows. 7

Figure 6. SPI Flash Configuration Window 6. Click the Go button in the ispvm System main window. Download the bitstream into the LatticeECP3 device on the LatticeECP3 Video Protocol Board. PCS Configuration Through the ORCAstra GUI This section describes the use of the ORCAstra GUI to interactively change or monitor the LatticeECP3 PCS register values. If you decide to keep the original PCS register settings, or if you don t want to dynamically monitor the PCS status registers, you can skip this section. Ensure the LatticeECP3 HDMI/DVI Loopback Demo bitstream has been loaded into the LatticeECP3 FPGA on the LatticeECP3 Video Protocol Board successfully, then: 1. Launch the ORCAStra GUI by selecting Tools > ORCAstra from the isplever Project Navigator menu. 2. In the ORCAstra FPGA Control Center Window, select Interface > 1 ispvm JTAG Hub USB Interface. 3. Select Device > Lattice ECP3. 4. Click on the ECP3 PCS 2 option. This will launch the ECP3-PCS 2 window. You can selectively open or close the Main, Pwr Rst Alrms, SERDES Buffer Options, Clocking, Diagnostics and Status tabs. The PCS GUI, as shown in Figure 7, is useful for checking the status of the PCS registers. Note that: a. The rlos_lo indicator of channel 0 is red, while the other channels are green. This is because the three TMDS data input channels are connected to SERDES channels 1 to 3. SERDES channel 0 is not connected. b. The rlol indicators of channel 1 to 3 are all green. c. The plol indicator is also green. This means that the PCS is locking to the clock and the receive section of the channels has properly synchronized to the incoming data. 8

5. For a continuous update of the PCS register staus, click on the Continuous Polling check-box in the ORCAstra FPGA Control Center window. Figure 7. ECP3-PCS 2 ORCAstra View On-board Switches and LEDs The LatticeECP3 Video Protocol Board provides three SPDT toggle-dip switches. Each of these switches includes four positions for a total of 12 static input signals for the user to control. Table 3 lists the pin definitions of the DIP switches used for this demo. When the positions of these switches are switched to the edge of the board, as seen in Figure 1, they are in the OFF state. 9

Table 3. DIP Switch Pin Definitions Switch Number Position Pin Name SW1 SW3 SW4 LatticeECP3 Pin Number Description 1 oen_equ_i Y5 Equalizer output enable 2 pre_equ_i Y4 Equalizer Pre-emphasis enable 3 equ_boost_i_0 Y9 4 equ_boost_i_1 Y10 1 AD2 2 Reserved AD1 3 AC6 TMDS input equalization select Reserved 4 blue_fill AC7 Fill blue pixels with 255 1 green_fill AM1 Fill green pixels with 255 2 red_fill AM2 Fill red pixels with 255 3 audio_mute AE1 Remove audio/aux packets 4 lp_sel AE2 Raw data loopback selection SW1 is used to control the equalizer (STDVE001) of the HDMI Mezzanine Card when the J1 HDMI input is chosen. For this demo, all four positions of SW1 are set to OFF. SW3 positions 1 to 3 are reserved for future use. They are also set to OFF. SW4 positions 1 to 4 and SW3 position 4 are defined to control the data flows for the demo: 1. When SW4 position 4 is turned on, the lp_sel input signal enables the raw data loopback from the Rx channels to Tx channels, bypassing the decoder and encoder. If the blue_fill, green_fill and red_fill switches are all OFF, there is no visual difference when this control is switched on or off. This control is useful for debugging purposes to check if the HDMI stream can pass through the SERDES Rx and Tx channel successfully when the decoder and the encoder are bypassed. 2. When SW4 position 3 is turned on, the audio_mute input signal masks the ADE signal. Therefore, it removes the audio and auxiliary data from the decoded TMDS data. You will notice that the audio is muted when it is switched to the ON position. 3. When SW3 position 4 and SW4 positions 1 and 2 are switched ON or OFF independently or in combinations, the corresponding Blue, Green and Red channels will replace the video pixel data with a constant value of 255 (8 hff). The screen will display different combinations of blue, green and red colors. By manipulating the SW4 positions 1 to 4 and SW3 position 4, we demonstrate that the RGB pixel data and audio data are properly processed by the HDMI/DVI encoder and decoder. Note: There are three different pixel encodings that may be sent across an HDMI cable: RGB 4:4:4, YCBCR 4:4:4 and YCBCR 4:2:2.This demo assumes the HDMI video source is in RGB format. If the video source is in the YCBCR color space, when you switch SW3 position 4, SW4 position 1 and 2, you may get unexpected color fill effects, because you are now changing Luminance and Chrominance components instead of Blue, Green and Red pixel data. If you turn on the Audio_Mute (SW4 position 3) switch, you may also notice the color changes, because the Audio_Mute function also filters out the InfoFrame packets which may carry the video format information. Technical Support Assistance Hotline: 1-800-LATTICE (North America) +1-503-268-8001 (Outside North America) e-mail: techsupport@latticesemi.com Internet: www.latticesemi.com 10

Revision History Date Version Change Summary September 2010 01.0 Initial release. 11