MIPI DSI-2 IP User Guide

ID 869461
Date 11/21/2025
Public
Document Table of Contents

7. Appendix A: Functional Description

The MIPI DSI-2 TX IP receives video from the Altera Streaming Video Protocol (full variant). The Clocked Video Output (CVO) module from the Altera Video & Vision Processing (VVP) IP suite forms a video raster using the configured timing and inserts the incoming video into this raster. The Altera Streaming Video Protocol (full raster) format is used to carry the video from the CVO into the MIPI DSI-2 core.

The MIPI DSI-2 IP processes the video data and video synchronization information, then converts them into packets as defined by the MIPI DSI/DSI-2 specification to prepare them for transmission via the Altera MIPI D-PHY IP.

The Timing Monitor and Timing Control modules are only included when fixed latency mode is enabled. This mode records the timing of the video and synchronization pulses on arrival from the CVO. The MIPI DSI-2 packets are retimed using this information to ensure maximum timing accuracy with minimal additional FPGA resources consumption. When this mode is disabled, the MIPI DSI-2 IP operates on a minimum latency basis and there may be some variation in inter-packet timing on the MIPI external interface. For example, sync timing may be offset horizontally relative to the video.

The Timing Monitor records timestamps from the video and synchronization pulses from the CVO for use in controlling packet playout in Timing Control.

The MIPI DSI-2 Packetizer packs the input pixels to MIPI DSI-2 packet payload data as defined in the MIPI DSI-2 specification. Packet headers and checksums are attached. Syncs are converted into MIPI DSI-2 synchronization packets. When ECC and CRC calculation is enabled, these are inserted into the relevant part of the packets. When disabled, these values are fixed to zero.

A Packet Buffer holds the MIPI DSI-2 packets. When fixed latency mode is disabled, the packet buffer stores the packet data until a complete packet is ready to send, to ensure contiguous packets are sent on the MIPI D-PHY interface. In fixed latency mode, this is ensured by the fixed latency timing logic in Timing Control.

Timing Control holds packets until a fixed period from the corresponding events at the Timing Monitor has expired before allowing each packet to be forwarded to ensure fixed latency through the packetizer and packet buffer.

The Lane Distributor spreads the packet data across the configured number of lanes, as defined by the MIPI DSI-2 specification.

The PPI Interfacing module handles the signaling of the data to the MIPI D-PHY IP via the MIPI PHY-Protocol Interface (PPI) defined in the MIPI D-PHY specification.

An optional Avalon® memory-mapped control interface is presented, which allows access to the registers in both the MIPI DSI-2 core and CVO modules. The registers in the MIPI DSI-2 core only display the status information, while the registers in the CVO and Video Timing Generator allow for reconfiguration of the output video timing. When the control interface is disabled, the video timing is fixed according to the configuration in the Parameter Editor.