Coder Social home page Coder Social logo

sdi-mipi-video-converter-fpga-design's Introduction

SDI to MIPI CSI-2 Video Converter FPGA design

Copyright (c) 2023 Antmicro

Introduction

This is the FPGA design for the SDI to MIPI CSI-2 Video Converter board. The design converts parallel pixel input data into MIPI CSI-2 protocol packets and synchronizes them to the MIPI D-PHY hardware interface. The conversion process is described in details in the project standalone documentation.

Content

The project consists of the following modules:

  • CSI-2 Finite State Machine - FSM that controls MIPI CSI-2 protocol flow, assuming input signals FVAL/LVAL it transmits frames one by one. Underlying modules are synchronized between each other in each FSM state to strictly follow MIPI CSI-2 protocol.

  • Packet Formatter (Low Level Protocol) - MIPI CSI-2 packet generator, it generates SoT (Start of Transmission), EoT (End of Transmission), header and footer for each packet.

  • Checksum generator - combinatorial CRC16 checksum generator.

  • TX Global Operations - controls D-PHY interface lanes switching between Low Power (LP) and High Speed (HS) modes.

  • Hardened TX D-PHY - the MIPI D-PHY interface provided by the FPGA fabric, configured to operate as a transmitter, controlled by TX Global Operations.

Prerequisites

The dependencies required to build the FPGA design can be installed by running:

pip3 install -r requirements.txt

In order to generate a bitstream from the generated sources, the nextpnr toolchain is required.

Build the bitstream

Once the required tools are installed, the project can be built by invoking:

make all

There are a few additional parameters that can be added in front of the above command. See make help for more information. The generated bitstream will be available in the build/<variant> directory and it is ready to be loaded onto the FPGA device.

Software

After successful programming, the Video Converter will synchronize to SDI signal and transfer converted MIPI CSI-2 on FFC2 interface. Detailed instructions about software support is available in the SDI MIPI Video Converter documentation.

Simulation

In order to run tests with Verilator, run:

make tests

Note: Verilator tests do not cover the D-PHY module since there is no open source simulation model available.

sdi-mipi-video-converter-fpga-design's People

Contributors

robertszczepanski avatar

Stargazers

Paweł Wodnicki avatar Thomas Wang avatar  avatar  avatar Mahdi Changani avatar  avatar Jevin Sweval avatar Andrés avatar

Watchers

Michael Gielda avatar Jevin Sweval avatar James Cloos avatar Peter Gielda avatar Mahdi Changani avatar Karol Gugala avatar Dariusz Ciesielski avatar Piotr Katarzynski avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.