MIPI CSI-2 Receiver Decoder for PolarFire

Similar documents
UG0850 User Guide PolarFire FPGA Video Solution

UG0693 User Guide Image Edge Detection

UG0649 User Guide. Display Controller. February 2018

UG0693 User Guide. Image Edge Detection. February 2018

ZL70550 ADK Release Notes

Network Time Synchronization Why It is Crucial for Regulatory Compliance in Enterprise Applications

SyncServer S600/S650 Options, Upgrades and Antenna Accessories

UG0812 User Guide. T-Format Interface. February 2018

Microsemi SmartFusion 2 SoC FPGA and IGLOO 2 FPGA

MAICMMC40X120 Application Note Power Core Module Mounting and Thermal Interface

ENT-AN0125 Application Note PHY, Integrated PHY-Switch VeriPHY - Cable Diagnostics Feature

UG0644 User Guide. DDR AXI Arbiter. February 2018

MML4400 Series Datasheet RoHS-Compliant Fast Surface Mount MRI Protection Diodes

Libero SoC v11.9 SP2 Release Notes 11/2018

0912GN-120E/EL/EP Datasheet E-Series GaN Transistor

DG0849 Demo Guide PolarFire Dual Camera Video Kit

Series 8 (12 Gbps) and Series 7 (6 Gbps) Technical Brief Flexible Configuration Options for Microsemi Adaptec SAS/SATA RAID Adapters

DG0723 Demo Guide SmartFusion2 Imaging and Video Kit MIPI CSI-2

1214GN-50E/EL/EP Datasheet E-Series GaN Transistor Driver

AC342 Application Note CQFP to CLGA Adapter Socket

0912GN-50LE/LEL/LEP Datasheets E-Series GaN Transistor Driver

DG0633 Demo Guide IGLOO2 FPGA CoreTSE MAC 1000 Base-T Loopback Demo - Libero SoC v11.7 SP2

Enhanced Prediction of Interconnect delays for FPGA Synthesis using MATLAB

Power Modules with Phase-Change Material

Time Synchronization Trends for Critical Infrastructure. Randy Brudzinski Vice President Microsemi

2731GN-120V Datasheet Class-AB GaN-on-SiC HEMT Transistor

Zero Recovery Silicon Carbide Schottky Diode

Schottky Surface Mount Limiting Diode Driver RoHS Compliant

UG0446 User Guide SmartFusion2 and IGLOO2 FPGA High Speed DDR Interfaces

UG0648 User Guide Motor Control Libero Project

User Guide. SparX-III PoE/PoE+ Reference Design

Ultrafast Soft Recovery Rectifier Diode

Achieve Peak Performance

VSC8254, VSC8257, and VSC Timestamp Out-of- Sync (OOS) Summary

Control Devices Surface Mount Input-Limiting Diode Element

Timing Constraints Editor User Guide

User Guide. PD-IM MH and PD-IM T4H Four 2-Pair Ports and Four 4-Pair Ports Evaluation Boards

Spatial Debug & Debug without re-programming in Microsemi FPGAs

GC4701-6LP Datasheet RoHS-Compliant Control Devices DC 15 GHz Surface Mount Limiter PIN Diode

Libero SoC v11.8 Service Pack 2 Release Notes 11/2017

MPS4101-6LP Datasheet 50 MHz 25 GHz RoHS-Compliant Control Device QFN SPST PIN

MMS006AA Datasheet DC 20 GHz GaAs MMIC SP2T Non-Reflective Switch

DG0598 Demo Guide SmartFusion2 Dual-Axis Motor Control Starter Kit

Microsemi Adaptec Trusted Storage Solutions. A complete portfolio of 12 Gbps Host Bus Adapters, RAID Adapters, SAS Expander and Cables

Microsemi Corporation: CN18002

MMA043AA Datasheet 0.5 GHz 12 GHz GaAs phemt MMIC Wideband Low-Noise Amplifier

Power Matters. TM. Why Embedded Die? Piers Tremlett Microsemi 22/9/ Microsemi Corporation. Company Proprietary 1

Looking for a Swiss knife for storage ecosystem management? A comparative study of SMI-S, Redfish and Swordfish

Next Generation Power Solutions Solving Real World Interface Issues

MMA044AA Datasheet 6 GHz 18 GHz GaAs phemt MMIC Wideband Low-Noise Amplifier

Microsemi Secured Connectivity FPGAs

Programming and Debug Tools PolarFire v2.0 Release Notes 11/2017

Using SMR Drives with Smart Storage Stack-Based HBA and RAID Solutions

Reliable and Scalable Midspan Injectors and Switches

ZL ZL30260-ZL30267 and ZL40250-ZL30253 Evaluation Software User Manual. November 2015

Understanding 802.3at. PoE Plus Standard Increases Available Power

Reliable and Scalable Midspan Injectors and Switches

UG0725 User Guide PolarFire FPGA Device Power-Up and Resets

CoreConfigMaster v2.1. Handbook

DSP Flow for SmartFusion2 and IGLOO2 Devices - Libero SoC v11.6 TU0312 Quickstart and Design Tutorial

CoreResetP v7.0. Handbook

CoreSMIP v2.0. Handbook

MPLAD36KP14A MPLAD36KP400CA

MPLAD18KP7.0A MPLAD18KP200CA

1588 Timestamp Out-of-Sync (OOS) Summary

MPS2R Datasheet 100 MHz 6 GHz 40 W RoHS-Compliant Monolithic SPDT PIN Switch

Surface Mount 18,000 W Transient Voltage Suppressor

AC412 Application Note IGLOO2 FPGA Flash*Freeze Entry and Exit - Libero SoC v11.8

CoreMDIO_APB v2.0. Handbook

Surface-Mount 36,000 W Transient Voltage Suppressor

Core1553BRT v4.2 Release Notes

Protecting GPS Systems Against Spoofing and Jamming Threats

CoreHPDMACtrl v2.1. Handbook

PoE Midspans Harness Universal Power for Your Network. White Paper

Microsemi IP Cores Accelerate the Development Cycle and Lower Development Costs

SmartTime Static Timing Analyzer User Guide SmartFusion2, IGLOO2, RTG4, and PolarFire

CoreGPIO v3.1. Handbook

Field-Proven, Interoperable & Standards-Compliant Portfolio

AC0446 Application Note Optimization Techniques to Improve DDR Throughput for RTG4 Devices - Libero SoC v11.8 SP2

TimeSource Enhanced PRTC Enhanced Primary Reference Time Clock

SmartFusion2, IGLOO2, and RTG4 Designing with Blocks for Libero SoC v11.8 in the Enhanced Constraint Flow User Guide

Reliability Monitoring and Outgoing Quality Report Q ESC Division. May 2018

SmartFusion2 SoC FPGA Demo: Code Shadowing from SPI Flash to SDR Memory User s Guide

Mixed Signal ICs for Space

Building High Reliability into Microsemi Designs with Synplify FPGA Tools

SmartTime Static Timing Analyzer for Libero SoC v11.8 in the Enhanced Constraint Flow SmartFusion2, IGLOO2, and RTG4 User Guide

Programming and Debug Tools v12.0 Release Notes 1/2019

Power Matters. Antifuse Product Information Brochure

ZL DPLL0/NCO0 Select Loop band., Phase slope limit. DPLL1/NCO1 Select Loop band., Phase slope limit. Configuration and Status GPIO SPI / I 2 C

Field-Proven, Interoperable, and Standards-Compliant Portfolio

Synchronizing and Securing the Enterprise Network with New Timing Technologies

Microsemi Optical Transport Networking (OTN) Processors ECI and Microsemi Partnership

CoreAHBtoAPB3 v3.1. Handbook

ZL30342 SyncE/SONET/SDH G.8262/Stratum3 & IEEE 1588 Packet G.8261 Synchronizer

CoreAPB3 v4.1. Handbook

UG0787 User Guide PolarFire FPGA Block Flow

SmartFusion2 MSS. CAN Configuration

AC400 Application Note SmartFusion2 SoC FPGA Flash*Freeze Entry and Exit - Libero SoC v11.8

Interrupting SmartFusion MSS Using FABINT

SmartFusion2 MSS. MMUART Configuration

Transcription:

UG0806 User Guide MIPI CSI-2 Receiver Decoder for PolarFire June 2018

Contents 1 Revision History... 1 1.1 Revision 1.1... 1 1.2 Revision 1.0... 1 2 Introduction... 2 3 Hardware Implementation... 3 3.1 Design Description... 4 3.1.1 Embsync_detect... 4 3.1.2 mipi_csi2_rxdecoder... 4 3.2 Inputs and Outputs... 6 3.3 Configuration Parameters... 6 3.4 Timing Diagrams... 7 3.4.1 Long Packet... 7 3.4.2 Short Packet... 7 3.5 Resource Utilization... 7 UG0806 User Guide Revision 1.1

1 Revision History The revision history describes the changes that were implemented in the document. The changes are listed by revision, starting with the most current publication. 1.1 Revision 1.1 Revision 1.1 was published in June 2018. In this revision, RAW10 data type support is added to the IP, through out the document. 1.2 Revision 1.0 Revision 1.0 was published in February 2018. It was the first publication of this document. UG0806 User Guide Revision 1.1 1

2 Introduction MIPI CSI-2 is a standard specification by mobile industry processor interface (MIPI) alliance. The camera serial interface 2 (CSI-2) specification defines an interface between a peripheral device (camera) and a host processor (base-band, application engine). This user guide describes the MIPI CSI-2 receiver decoder (MIPI CSI-2 RxDecoder), which decodes the data from the sensor interface. The IP core supports multi-lane (1,2 and 4 lanes) for RAW8 and RAW10 data types. MIPI CSI-2 operates in two modes highspeed mode and low-power mode. In high-speed mode, MIPI CSI-2 supports the transport of image data using short packet and long packet formats. Short packets provide frame synchronization and line synchronization information. Long packets provide the pixel information. The sequence of transmitted packets is as follows. 1. Frame start (short packet) 2. Line start (optional) 3. Few image data packets (long packets) 4. Line end (optional) 5. Frame end (short packet) One long packet is equivalent to one image data line. The following illustration shows the video data stream. Figure 1 Video Data Stream UG0806 User Guide Revision 1.1 2

3 Hardware Implementation This section describes the hardware implementation details. The following illustration shows the MIPI CSI2 receiver solution that contains the MIPI CSI2 RxDecoder IP. This IP has to be used in conjunction with the PolarFire MIPI IOD generic interface blocks and phase-locked loop (PLL). The MIPI CSI2 RxDecoder IP is designed to work with the PolarFIre MIPI IOG blocks. The illustration shows the pin connection from the PolarFire IOG to the MIPI CSI2 RxDecoder IP. A PLL is required to generate the parallel clock (pixel clock). The input clock to the PLL will be from the RX_CLK_R output of the IOG. The PLL has to be configured to produce the parallel clock, based on the MIPI_bit_clk and the number of lanes used. The equation used to calculate the parallel clock is as follows. CAM_CLOCK_I = MIPI_bit_clk/4 PARALLEL_CLOCK_I = (CAM_CLOCK_I * Number_of_MIPI_Lanes * 8)/DATAWIDTH The following illustration shows the architecture of MIPI CSI-2 Rx for PolarFire. Figure 2 Architecture of MIPI CSI-2 Rx Solution UG0806 User Guide Revision 1.1 3

The following illustration shows the different modules in the MIPI CSI2 RxDecoder IP. When used in conjunction with the PolarFire IOG and PLL, this IP can receive and decode the MIPI CSI2 packets to produce pixel data along with the valid signals. Figure 3 Implementation of MIPI_CSI2_RxDecoder_PF_IP 3.1 Design Description This section describes the different internal modules of the IP. 3.1.1 Embsync_detect This module takes the data from the PolarFire IOG and detects the embedded SYNC code in the received data of each lane. This module also aligns the data from each lane to the SYNC code and sends it to the mipi_csi2_rxdecoder module for decoding the packet. 3.1.2 mipi_csi2_rxdecoder This module decodes the incoming short packets and long packets and then generates the frame_start_o, frame_end_o, line_start_o, line_end_o, word_count_o, Line_Valid_o, and data_out_o. Pixel data arrives between line start and line end signals. Short packet contains only packet header and supports various data types. MIPI CSI-2 Receiver IP Core supports the following data types for short packets. Table 1 Supported Data Types Data Type 0x00 0x01 Description Frame start Frame end Long packet contains the image data. The length of the packet is determined by the horizontal resolution, to which the camera sensor is configured. This can be seen at the word_count_o output signal. UG0806 User Guide Revision 1.1 4

The following illustration shows the FSM implementation of decoder. Figure 4 FSM Implementation of Decoder 1. 2. 3. 4. Frame Start: On receiving the frame start packet, generate the frame start pulse and then wait for line start. Line Start: On receiving the line start indication, generate the line start pulse. Line End: On generating the line start pulse, store the pixel data, and then generate the line end pulse. Repeat Step 2 and 3 until the frame end packet is received. Frame End: On receiving the frame end packet, generate the frame end pulse. Repeat the above steps for all frames. The CAM_CLOCK_I must be configured to the image sensor frequency, to process the incoming data, regardless of Num_of_lanes_i configured to one lane, two lanes, or four lanes. Currently, Microsemi supports only RAW8 and Raw10 data types. One pixel per clock is received on data_out_o. To validate the image data, Line_Valid_o output signal is sent. Whenever it is asserted high, output pixel data is valid. UG0806 User Guide Revision 1.1 5

3.2 Inputs and Outputs The following table lists the input and output ports of the theta generation configuration parameters. Table 2 Input and Output Ports of the MIPI CSI-2 Receiver Decoder Signal Name Direction Width Description CAM_CLOCK_I Input Image sensor clock PARALLEL_CLOCK_I Input Pixel clock RESET_N_I Input Asynchronous active low reset signal L0_HS_DATA_I Input 8-bits High speed input data from lane one L1_HS_DATA_I Input 8-bits High speed input data from lane two L2_HS_DATA_I Input 8-bits High speed input data from lane three L3_HS_DATA_I Input 8-bits High speed input data from lane four L0_LP_DATA_I Input Positive low power input data from lane one L0_LP_DATA_N_I input Negative low power input data from lane one L1_LP_DATA_I Input Positive low power input data from lane two L1_LP_DATA_N_I Input Negative low power input data from lane two L2_LP_DATA_I Input Positive low power input data from lane three L2_LP_DATA_N_I Input Negative low power input data from lane three L3_LP_DATA_I Input Positive low power input data from lane four L3_LP_DATA_N_I Input Negative low power input data from lane four data_out_o Output g_datawidth - 1:0 Pixel data output that is valid only when Line_Valid_o is asserted high Line_Valid_o Output Data valid output. Asserted high wneh data_out_o is valid word_count_o Output 16-bits Represents horizontal resolution in hex format frame_start_o Output Asserted high when frame start is detected in the incoming packets frame_end_o Output Asserted high when frame end is detected in the incoming packets line_start_o Output Asserted high when line start is detected in the incoming packets line_end_o Output Asserted high when line end is detected in the incoming packets 3.3 Configuration Parameters The following table lists the description of the configuration parameters used in the hardware implementation of MIPI CSI-2 RxDecoder block. They are generic parameters and can vary based on the application requirements. Table 3 Configuration Parameters Name g_datawidth g_lane_width g_input_data_invert Description Input pixel data width. Supports 8-bit and 10-bit, currently. Number of MIPI lanes. Supports 1, 2, 4 lanes. The options to invert the incoming data are as follows. 0 - does not invert the incoming data 1 - inverts the incoming data UG0806 User Guide Revision 1.1 6

Name g_buff_depth Description Depth of the buffer. 3.4 Timing Diagrams The following sections show the timing diagrams. 3.4.1 Long Packet The following illustration shows the timing waveform of the long packet. Figure 5 Timing Waveform of Long Packet 3.4.2 Short Packet The following illustration shows the timing waveform of the frame start packet. Figure 6 Timing Waveform of Frame Start Packet 3.5 Resource Utilization The following table shows the resource utilization of a sample MIPI CSI-2 Receiver Core implemented in a PolarFire FPGA (MPF300TS_ES-1FCG1152E package), for RAW8, 4 lanes configuration. Table 4 Resource Utilization of the MIPI CSI-2 Receiver Decoder Cell Usage Description DFFs 1577 4-input LUTs 1481 LSRAM 10 UG0806 User Guide Revision 1.1 7

Microsemi Headquarters One Enterprise, Aliso Viejo, CA 92656 USA Within the USA: +1 (800) 713-4113 Outside the USA: +1 (949) 380-6100 Sales: +1 (949) 380-6136 Fax: +1 (949) 215-4996 Email: sales.support@microsemi.com www.microsemi.com 2018 Microsemi. All rights reserved. Microsemi and the Microsemi logo are trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners. Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer's responsibility to independently determine suitability of any products and to test and verify the same. The information provided by Microsemi hereunder is provided "as is, where is" and with all faults, and the entire risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this document or to any products and services at any time without notice. Microsemi, a wholly owned subsidiary of Microchip Technology Inc. (Nasdaq: MCHP), offers a comprehensive portfolio of semiconductor and system solutions for aerospace & defense, communications, data center and industrial markets. Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and ASICs; power management products; timing and synchronization devices and precise time solutions, setting the world's standard for time; voice processing devices; RF solutions; discrete components; enterprise storage and communication solutions; security technologies and scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; as well as custom design capabilities and services. Microsemi is headquartered in Aliso Viejo, California, and has approximately 4,800 employees globally. Learn more at www microsemi.com. 50200806 UG0806 User Guide Revision 1.1 8