Implementation of Camera Link Interface on Virtex-5 FPGA

Similar documents
Laboratory 4. Figure 1: Serdes Transceiver

Synchronization Issues During Encoder / Decoder Tests

EECS150 - Digital Design Lecture 18 - Circuit Timing (2) In General...

SignalTap Plus System Analyzer

Display Interfaces. Display solutions from Inforce. MIPI-DSI to Parallel RGB format

FPGA Design. Part I - Hardware Components. Thomas Lenzi

Synchronizing Multiple ADC08xxxx Giga-Sample ADCs

FPGA Design with VHDL

FPGA Implementation of DA Algritm for Fir Filter

Field Programmable Gate Array (FPGA) Based Trigger System for the Klystron Department. Darius Gray

A New Hardware Implementation of Manchester Line Decoder

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

A MISSILE INSTRUMENTATION ENCODER

Dual Link DVI Receiver Implementation

Laboratory Exercise 4

About... D 3 Technology TM.

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Chapter 4. Logic Design

TAXI -compatible HOTLink Transceiver

Metastability Analysis of Synchronizer

The Design of Efficient Viterbi Decoder and Realization by FPGA

TAXI -compatible HOTLink Transceiver

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

MBI5050 Application Note

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

LMH0340/LMH0341 SerDes EVK User Guide

MULTIDYNE INNOVATIONS IN TELEVISION TESTING & DISTRIBUTION DIGITAL VIDEO, AUDIO & DATA FIBER OPTIC MULTIPLEXER TRANSPORT SYSTEM

BABAR IFR TDC Board (ITB): system design

GALILEO Timing Receiver

SERDES Eye/Backplane Demo for the LatticeECP3 Serial Protocol Board User s Guide

A Quasi-Static Optoelectronic ATM Switch

EMPTY and FULL Flag Behaviors of the Axcelerator FIFO Controller

High-Performance DDR2 SDRAM Interface Data Capture Using ISERDES and OSERDES Author: Maria George

Memory Interfaces Data Capture Using Direct Clocking Technique Author: Maria George

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Implementing SMPTE SDI Interfaces with Kintex-7 GTX Transceivers Author: John Snow

Register Files and Memories

Certus TM Silicon Debug: Don t Prototype Without It by Doug Amos, Mentor Graphics

Asynchronous inputs. 9 - Metastability and Clock Recovery. A simple synchronizer. Only one synchronizer per input

Implementing Triple-Rate SDI with Spartan-6 FPGA GTP Transceivers Author: Reed Tidwell

INSTRUCTION MANUAL FOR MODEL IOC534 LOW LATENCY FIBER OPTIC TRANSMIT / RECEIVE MODULE

SERDES Framer Interface Level 5 for Virtex-6 Devices Author: Vasu Devunuri

Implementing SMPTE SDI Interfaces with Artix-7 FPGA GTP Transceivers Author: John Snow

Implementing SMPTE SDI Interfaces with Zynq-7000 AP SoC GTX Transceivers Author: John Snow

Dual Link DVI Receiver Implementation

COPY RIGHT. To Secure Your Paper As Per UGC Guidelines We Are Providing A Electronic Bar Code

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

AD9884A Evaluation Kit Documentation

MIPI D-PHY Bandwidth Matrix Table User Guide. UG110 Version 1.0, June 2015

ISSCC 2006 / SESSION 18 / CLOCK AND DATA RECOVERY / 18.6

SMPTE-259M/DVB-ASI Scrambler/Controller

Product Information. EIB 700 Series External Interface Box

T1 Deframer. LogiCORE Facts. Features. Applications. General Description. Core Specifics

Design and Implementation of SOC VGA Controller Using Spartan-3E FPGA

Logic Devices for Interfacing, The 8085 MPU Lecture 4

A FOUR GAIN READOUT INTEGRATED CIRCUIT : FRIC 96_1

How to overcome/avoid High Frequency Effects on Debug Interfaces Trace Port Design Guidelines

Troubleshooting EMI in Embedded Designs White Paper

Agilent Technologies Pulse Pattern and Data Generators Digital Stimulus Solutions

Why FPGAs? FPGA Overview. Why FPGAs?

DIGITAL ELECTRONICS MCQs

Using the Quartus II Chip Editor

Design and FPGA Implementation of 100Gbit/s Scrambler Architectures for OTN Protocol Chethan Kumar M 1, Praveen Kumar Y G 2, Dr. M. Z. Kurian 3.

Contents Circuits... 1

Image generator. Hardware Specification

CHAPTER1: Digital Logic Circuits

DSP in Communications and Signal Processing

Sequential Logic Basics

EN2911X: Reconfigurable Computing Topic 01: Programmable Logic. Prof. Sherief Reda School of Engineering, Brown University Fall 2014

EBU INTERFACES FOR 625 LINE DIGITAL VIDEO SIGNALS AT THE 4:2:2 LEVEL OF CCIR RECOMMENDATION 601 CONTENTS

Sub-LVDS-to-Parallel Sensor Bridge

Low-speed serial buses are used in wide variety of electronics products. Various low-speed buses exist in different

Commsonic. (Tail-biting) Viterbi Decoder CMS0008. Contact information. Advanced Tail-Biting Architecture yields high coding gain and low delay.

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

White Paper Lower Costs in Broadcasting Applications With Integration Using FPGAs

New GRABLINK Frame Grabbers

IT T35 Digital system desigm y - ii /s - iii

Chapter 4: One-Shots, Counters, and Clocks

CHAPTER 4: Logic Circuits

Reading an Image using CMOS Linear Image Sensor. S.R.Shinthu 1, P.Maheswari 2, C.S.Manikandababu 3. 1 Introduction. A.

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

L12: Reconfigurable Logic Architectures

University of Arizona January 18, 2000 Joel Steinberg Rev. 1.6

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Serial Digital Interface Reference Design for Stratix IV Devices

Implementing Audio IP in SDI II on Arria V Development Board

Netzer AqBiSS Electric Encoders

EECS150 - Digital Design Lecture 2 - CMOS

Memec Spartan-II LC User s Guide

THE DIAGNOSTICS BACK END SYSTEM BASED ON THE IN HOUSE DEVELOPED A DA AND A D O BOARDS

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

WINTER 15 EXAMINATION Model Answer

Keywords: Edible fungus, music, production encouragement, synchronization

Clocking Spring /18/05

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

Optical shift register based on an optical flip-flop memory with a single active element Zhang, S.; Li, Z.; Liu, Y.; Khoe, G.D.; Dorren, H.J.S.

CSCB58 - Lab 4. Prelab /3 Part I (in-lab) /1 Part II (in-lab) /1 Part III (in-lab) /2 TOTAL /8

LogiCORE IP Spartan-6 FPGA Triple-Rate SDI v1.0

An FPGA Implementation of Shift Register Using Pulsed Latches

VLSI Chip Design Project TSEK06

Transcription:

Research Journal of Applied Sciences, Engineering and Technology 5(22): 52445248, 2013 ISSN: 20407459; eissn: 20407467 Maxwell Scientific Organization, 2013 Submitted: October 12, 2012 Accepted: December 03, 2012 Published: May 25, 2013 Implementation of Camera Link Interface on Virtex5 FPGA 1, 2 Wang Gang, 1 Liu Cai, 3 Wang Shigang, 3 Gao Kai and 4 Wu Xiaolan 1 College of GeoExploration Science and Technology, Jilin University, Changchun 130026, China 2 College of Electric and Information Engineering, Beihua University, Jilin 132012, China 3 College of Communication Engineering, Jilin University, Changchun 130012, China 4 Beijing Information Technology College, Beijing 100015, China Abstract: Camera link interface is a standard interface commonly used in current industrial camera and image acquisition card and it is usually realized by special chips. The embedded image processing platform has the FPGA chips, if the camera link interface can be implemented on the FPGA chips, the circuit design will be simplified and the system integration can be improved. Keywords: Camera link, channel link, frame grabber, FPGA INTRODUCTION In the current industrial applications, Camera Link interface is usually implemented by adopting the specialpurpose chips, it needs at least four chips, a power supply and several resistance capacitances, it also needs circuit board area and cost. When the Camera Link data is transmitted to the FPGA, if the Camera Link interface is achieved by a small number of FPGA logic resources, then the system integration, reliability and flexibility can be improved and the system cost can reduced. If the interface can be realized on FPGA (Zhu et al., 2011), it can not only make image acquisition, but also can be used in two FPGA chips (ShuChang et al., 2011) which have no special high speed serial interface, to realize high speed data transmission with less amount of pins, it will has very realistic significance (Xie and ChengJiang, 2010). To achieve this purpose, the Camera Link interface definition and the related resources of FPGA will be shown respectively as follow. Camera Link interface is from Channel Link interface, before introducing Camera Link, LVDS and Channel Link will be introduced in detail. LVDS is short for Lowvoltage differential signaling, the Signal pendulum rate is 350 mv and the model is shown in Fig. 1: LVDS signal voltage pendulum rate is very low; therefore rise or fall time is so short that it can achieve high speed. Driver changes singleended task signal IN into Receiver. On one side of the Receiver have 100 Ω terminal resistances in parallel, Receiver takes a sample from voltage signal across the resistance voltage and it recovers as singleended signal out. Fig. 1: LVDS model ChannelLink by National Semiconductor whose physical layer is based on the LVDS and at first it is regarded as a solution in the flat display field, the technology soon developed as a common mode of data transmission. The model as shown in Fig. 2: Sending end and receiving end all have 28 single end parallel data signal and 1 road singleended clock signal, the clock signal is temporarily called adjoint clock. The serializer of sending end which is driven by clock signal makes 28 singleended signals as 7:1 string change into 4 road singleended serial data, then it gets through the 5 groups of LVDS signal Driver with 1 road adjoint clock to drives Receiver. Receiver reverts LVDS signal to 4 road singleended serial data signals and 1 road adjoint clock. With adjoint clock driving, it deserializes 4 road serial data as 1:7 and then reverts to 28 parallel signals. The relationship between adjoint clock and distribution of Channel Link interface parallel data in serial data stream is shown in Fig. 3. In adjoint distributed architecture based on agent will coexist in the domain of design robot. No matter what kind of clock period, every road string data stream transports 7 bit of 28bit parallel. Serial data rate is about seven times of adjoint clock frequency, accurately deserializing the serializable data requires taking data Corresponding Author: Wang Gang, College of GeoExploration Science and Technology, Jilin University, Changchun 130026, China 5244

Res. J. Appl. Sci. Eng. Technol., 5(22): 52445248, 2013 Fig. 2: ChannelLink model Fig. 3: Adjoint clock relation of channel link sampling with seven times of adjoint clock frequency, sampling edge should aim at each data effective window center position of serial data flow, so as to ensure the highest accuracy, the interior of deserializer has phase lock loop PLL, the frequency produced by PLL clock is 7 times of adjoint clock frequency. Camera Link interface composition: Camera link interface has two ports: Camera and Frame Grabber (Xiaonan et al., 2010). The former is a camera end; the latter is image acquisition end. As shown in Fig. 4, Camera Link interface structure is: 1 to 3 Channel Link interfaces, the direction is from Camera to Frame Grabber, it is used for the image data transmission; a four channelcameracontrol interface CC1 ~ CC4, the direction is from Frame Grabbe to Camera, it is usually used for Camera exposure trigger control (He et al., 2009). A two channel asynchronous serial interface: SerTFG (Serial to Frame Grabber) and SerTC (Serial to Camera). Frame Grabber configures 5245 Camera through the SerTC, Camera sends register value to Frame Grabber through the SerTFG. All the interfaces are physically based on LVDS signal transmission. When the Channel Link number configuration of Camera Link interface is 1, 2 and 3, they are respectively called Base and Media and Full mode. Three kinds of model use the same set of camera control interface and serial communication interface. Camera Link interface only has Channel Link which involves serial parallel conversion (Haitao et al., 2007), any other interface is ordinary unidirectional connection, therefore the key to realize the Camera Link interface on FPGA is to realize the Channel Link. And many current highend FPGA chips internal have deserializer element, it is very suitable to implement the applications such as Camera Link, Camera Link interface is implemented with few resource in FPGA in order to enhance hardware system integrated level and flexibility. In the following parts, the study ill represent

Res. J. Appl. Sci. Eng. Technol., 5(22): 52445248, 2013 Fig. 4: Camera Link interface structure how to implement Camera Link interface Frame CLKX P / CLKX N and serial data signal Grabber end on Virtex5 FPGA. RX0_P/RX0_N respectively converts to single end signal CLKX and RX0 through IDS and Virtex5 FPGA: In Xilinx Company, to implement IBUFDS. The design idea is to use IODELAY adjust camera link interface frame grabber end on Virtex5 the serial data signal RX0 delay, in order to make RX0 data effective window center position take a sample for FPGA (Wang and Wang, 2011) requires a PLL, the sampling clock edge of alignment deserializer. IBUFDS/IDS, OBUFDS, ISERDES, IODELAY CLKX represents the input clock of PLL; the three and IDELAYCTRL. In addition to PLL, the other parts out put way clock of PLL all pass global buffer are all belong to the Select IO. processing. CLKOUT0 = 7*CLKX; CLKOUT1 = 200MHz; CLKOUT2 = CLKX. CLKOUT0 and Camera link interface implementation: Figure 5 CLKOUT2 keep edge alignment with CLKX. shows the hardware design about implementation of CLKOUT0 provides data sampling clock for two Camera Link interface Frame Grabber end Base cascaded ISERDES port CLK. CLKOUT1 provides configuration. reference clock for IDELAYCTRL port REFCLK. CLKOUT2 provides control clock for ISERDES port Implementation: In Fig. 5, the dashed part is the CLKDIV and IODELAY port C and it also provides the deserializer design of Channel Link. The adjoint clock data which latched ISERDES output for Fabric. 5246

Res. J. Appl. Sci. Eng. Technol., 5(22): 52445248, 2013 RX0_P IBUFDS RX0_N + DEBUG RxIN0 ODATAIN IDATAIN T INC CE DATAIN C IODELAY DATAOUT D CLKDIV CE1 主 ISERDES CLK BITSLIP SHIFTOUT1 SHIFTOUT2 Q1 Q2 Q3 Q4 Q5 Q6 Rxd[0] Rxd[1] Rxd[2] Rxd[3] Rxd[4] Rxd[6] D SHIFTIN1 SHIFTIN2 Q1 Q2 CLKDIV CE1 CLK BITSLIP 从 ISERDES Q3 Q4 Q5 Q6 Rxd[7] Rclk IDELAYCTRL CLKX_P CLKX_N IDS + CLKX REFCLK RDY PLL_ADV CLKIN1 CLKOUT0 CLKOUT1 CLKOUT2 LOCKED CLK200MHz Freq=7*CLKX Freq=CLKX FPGA FABRIC SerTFG_P SerTFG_N + SerTC_P SerTC_N + CC1_P CC1_N + SerTFG SerTC CC1 Fig. 5: Frame grabber end base configuration hardware Reset signal is designed due to the principle direct correlation. The stability of PLL frequency is the foundation of the whole circuit operation, hence it's signal LOCKED is used to control IDELAYCTRL and IODELAY; The data which ISERDES receives is significant, only after calibrating IODELAY by IDELAYCTRL, therefore the reset signal of ISERDES is controlled by the signal RDY of IDELAYCTRL. The configuration of IODELAY is input VARIABLE delay. RX0 as input signal source, goes from IODELAY delay to the data port D of the cascaded master ISERDES. IODELAY delay adjustment direction port INC joints high, control port C joints CLKOUT2, control clock port CE joints DEBUG signal when CLKOUT2 is on the rising edge, each sampling that DEBUG is high, the delay increase a pat, when delay is 63 pat, if sampling that DEBUG is high, the delay back to 0 apt and rotate around. Through controlling the DEBUG signal to adjust the delay of RX0 signal, in order to meet the requirements. Initial delay is set to 0 beat. Test: When commissioning, it needs building a debugging environment: Using a Camera end Camera Link interface to send specific Channel Link data; Connecting the camera end camera link interface to the Virtex5 FPGA circuit with cable, Camera end serializer clock is 60 MHZ and it makes the parallel data serialized, which Channel Link sends to FPGA. First debug serial channel 0 of Channel Link. In order to eliminate interference, the parallel transmission data of channel 0 is 1. According to the parallel data distribution, the Camera parallel data is: 28 b0000 000000000000000000000001, the ISERDES output of corresponding channel 0 of FPGA should be 7 'b000 0001. After the FPGA configuration, the PLL should be reset, waiting for each element end reset and then adjust 5247

Res. J. Appl. Sci. Eng. Technol., 5(22): 52445248, 2013 IODELAY delay. The DEBUG is controlled in Fig. 5, the cycle of the positive impulse is in 1/2 ~ 1 CLKOUT2 width, IODELAY delay will increase 1 pat, when one pulse is coming. When the delay value is improper, the parallel data which deserialized from ISERDES is not equal to 7 'b0000001, even sometimes data which contains two bits is equal to 1. To keep inputting pulse to DEBUG, when input N pulses, the data is 7 'b0000001, continue to input pulse until the data is not equal to 7' b0000001, at present the total number of input pulse is to M. The data effective window width of the channel ISERDES is MN, the center position of window is (M +N1)/2, three other channel window center position are measured in turn based on this method. When Control signals, serial signal test, FPGA Fabric drives CC1 ~ CC4, SerTC, Camera end and the corresponding signal is received, Camera end drives SerTFG, FPGA Fabric end and the corresponding signal is received, the two kinds of interface are finish debugged. After debugging, in the program the IODELAY delay configuration is fixed, the value is the integer part of (M + N1)/2. Hence, Camera Link interface is implemented on Virtex5 FPGA. The actual test of the design is divided into two stages. At first,testing error rate, The Camera end output data is divided into three sections: 0~7, 8~15, 16~28, the repetitive data with 0~255 circulation is input into each section with 60 MHz, if the receiving data of Camera Link is flawed, it will emit trigger signal. After several hours testing, data has been normal and it doesn't happen to trigger signal. Then the design will be integrated into the FPGA complete design, to realize the image normal collection in the actual equipment. CONCLUSION Debugging results show that the principle of implementing camera link interface design on FPGA is feasible, the design has passed the error rate test and it can be applied in practice. After the application, the hardware circuit design can be simplified. As a tool of platform, this design can be directly transplanted between the Virtex5 FPGA chips. ACKNOWLEDGMENT The authors wish to thank the helpful comments and suggestions from my teachers and colleagues. This study was supported by National Natural Science Foundation of China (NSFC) under grant U0935001, Jilin Prov. Science and Technology Project of China under grant 20100306 and 20090506. REFERENCES Haitao, Y., S. Tao and W. Meng, 2007. The design and implementation of the SDRAM controller based on the FPGA. Elec. Sci. Technol., 1: 812. He, Z., S. Yang and Q. Wu, 2009. Design of a realtime display system based oncamera link. Proceedings of 4th International Conference on Computer Science and Education, Inst. of Opt. and Electron., Chinese Acad. of Sci., Chengdu, China, pp: 431434. ShuChang, L., L. Peng and W. YanHai, 2011. Research on largecapacity highspeed video image transmission technology. J. Jilin Univ. Inform. Sci. Edition, 29(1): 2125. Wang, J. and C. Wang, 2011. Xilinx FPGA/CPLD Design Guide. Post and Telecom Press, China, Beijing. Xie, S. and H. ChengJiang, 2010. Video image processing system based on FPGA. International Conference on Circuit and Signal Processing, 2: 727730. Xiaonan, J., J. Hongxu, X. Chaosheng and W. Yuanpeng, 2010. Software FIFO based interconnection between DSP and FPGA in video encoding system. 3rd International Congress on Image and Signal Processing, Digital Media Lab., Beihang Univ., Beijing, China, 8: 36993703. Zhu, C., L. YanYing and D. YueFang, 2011. Design of video interface conversion system from sdi to camera link based on FPGA. Measur. Contr. Technol., 30(2): 1620. 5248