Skip to content

antmicro/sdi-mipi-bridge-fpga-design

Repository files navigation

SDI to MIPI CSI-2 Bridge FPGA design

Copyright 2021-2023 Antmicro

Introduction

This is the FPGA design for the SDI to MIPI CSI-2 bridge. The design targets the Lattice Diamond toolchain and uses video data acquired from the Semtech GS2971A deserializer to generate correct MIPI timings.

Contents

The project consist of:

  • Top module - module written in Python with Migen to instantiate and connect required FPGA components such as Oscillator and CMOS2DPHY converter.
  • Lattice CMOS2DPHY IP Core - for converting and transmitting parallelized data in the MIPI CSI-2 standard.

Setup

The design in this repository is prepared for the Lattice Diamond tool, which is needed for generating the bitstream and programming the device. For instructions on installing and using Diamond, please refer to the Lattice Diamond 3.12 Installation Notice for Linux.

Additionally, make sure that you installed the sources of the CMOS to D-PHY 1.3 IP-Core using the Diamond Clarity Designer. For more information, check Accomplishing Tasks with Clarity Designer from Clarity Designer User Manual (p. 11).

Once you have Diamond set up, install Python prerequisites:

pip3 install -r requirements.txt

Build

After you've prepared your environment, you can build the project with the following command:

make <video-format>-<lanes>

The supported formats are listed in the project documentation. For more information you can also execute make help.

The output files will be generated in the build/<video-format>-<lanes> directory.

Software

Detailed instructions about software support is available in the software section of the SDI to MIPI CSI-2 video platform documentation.