MIPI CSI-2 Intel® FPGA IP User Guide

ID 813926
Date 4/26/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

5.2. MIPI CSI-2 Transmitter

Figure 6. MIPI CSI-2 Intel® FPGA IP Transmitter Block Diagram

The MIPI CSI-2 TX component consists of multiple layers defined in the MIPI CSI-2 specification version 3.0, such as the pixel to byte conversion, low level protocol and lane management layer.

The AXI to Clocked Video convertor (AXI2CV) receives video in the Intel FPGA Streaming Video Protocol via AXI4-Stream and converts it to clocked video format.

In video mode, the MIPI CSI-2 TX component converts the video data into the selected CSI-2 video data type and wraps it in CSI-2 packets according to the defined low-level protocol, adding synchronization packets as required. Long packet checksums and header ECC values are calculated and inserted to allow detection or correction of transmission errors.

In passthrough mode, it receives MIPI CSI-2 packets on an AXI4-Stream input interface from the user logic, and the video mode processing is bypassed.

The CSI-2 packets are distributed across the MIPI data lanes and presented to the MIPI D-PHY Intel® FPGA IP via the standard PHY-Protocol Interface (PPI).

Each component has an Avalon® memory-mapped interface register interface for control and status register access and will be given an address space. The most significant bit of the offset addresses from the system base address are 0x0 for the MIPI CSI-2 TX component and 0x1 for the AXI2CV component.
Table 25.  Top Level Interfaces
Interface Description
AXI4-Stream Intel FPGA Streaming Video (Full Variant) input

Carries pure video packet in Intel FPGA streaming video format. Includes Image Information Packet (IIP) and End of Field (EOP) packets.

Present only when Video mode enabled.

AXI4_Streaming MIPI Packet

AXI4-Stream input interface carrying MIPI CSI-2 packets.

Present only when Passthrough mode enabled.

TX PPI PHY-Protocol Interface. Refer to MIPI D-PHY specification version 2.5 Annex A.
Avalon® memory-mapped interface CSR Control and Status Register.
Figure 7. MIPI CSI-2 Intel® FPGA IP Transmitter (Video Mode)
Figure 8. MIPI CSI-2 Intel® FPGA IP Transmitter (Passthrough Mode)
Table 26.  MIPI CSI-2 Transmitter Functional Blocks
Functional Block Description
AXI2CV
  • Receives AXI4S Video Streaming Protocol (full variant) data and converts to clocked video data for the MIPI CSI-2 TX submodule.
  • Generates synchronization short packets for insertion into the CSI-2 data stream around the video packets
  • Supports multiple channels – arbitrates between input channels in round-robin order. The channel number will be used to set the virtual channel ID in the MIPI CSI-2 data stream.
Pixel-to-Byte Converter
  • Converts the video data from pixel format to the selected MIPI CSI-2 data type as defined in the CSI-2 specification.
  • Packs pixel data into bus with width that ensures that the MIPI link can be fully occupied.
Packet Arbiter Multiplexes synchronization short packets, video long packets and generic short packets into a single stream.
Error Correction Code (ECC) Calculates the ECC code for each packet header.
Packetizer
  • Applies long packet header.
  • Long packet payload CRC is calculated and appended after payload.
Lane Distributor Distributes the bytes from the incoming packet stream onto the configured number of MIPI lanes according to the CSI-2 specification.
Scrambler When configured this applies the CSI-2 LFSR scrambling function to long packet payloads to avoid any long periods of fixed signaling when the video data is constant.
TX PPI Performs handshaking with D-PHY IP to transmit CSI-2 packets.
Control and Status Register
  • MIPI CSI-2 TX and AXI2CV submodules each have their own CSRs.
  • ACSR Control MUX resides at the higher layer to multiplex the control operation between both CSRs.
  • The most significant bits of the address select between accessing the MIPI CSI-2 TX and CV2AXI CSRs.