goran-mahovlic / mipi-csi-2

Capture images/video from a Raspberry Pi Camera (MIPI CSI-2) with an FPGA

Home Page:https://purisa.me/blog/mipi-camera-progress/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIPI CSI 2 Receiver

Build Status

Build for ULX3S

Download toolchain and add to path

https://github.com/YosysHQ/oss-cad-suite-build#installation

make -f makefile_ulx3s

You may also need vhd2vl

https://github.com/ldoolitt/vhd2vl

To-do List

  • Primary format decoding
    • RGB888
    • RGB565
    • YUV422 8-bit
    • RAW8
    • RAW10
  • Tests
    • D-PHY
    • CSI-2
    • Decoding
  • Error-checking and correction
    • Header ECC
    • Footer Checksum
  • N-lane
    • 1 lane
    • 2 lane
    • 3 lane
      • Roadblock: will receive more bytes than the 32-bit buffer
        • Consider long packet with 8 bytes
        • First 3 from header go from corresponding lanes
        • Header byte 4 comes from lane 1, Data byte 1, 2 come from lanes 2 & 3
        • Data byte 3, 4, 5 (!) come from lanes 1, 2, & 3
        • Thus, you are stuck with extra, on the same clock the user gets the buffer
    • 4 lane

Reference Documents

These documents are not hosted here! They are available on Library Genesis and at other locations.

Special Thanks

About

Capture images/video from a Raspberry Pi Camera (MIPI CSI-2) with an FPGA

https://purisa.me/blog/mipi-camera-progress/

License:Other


Languages

Language:SystemVerilog 36.7%Language:Makefile 23.0%Language:Verilog 20.2%Language:TeX 8.5%Language:Python 7.5%Language:XSLT 3.8%Language:Shell 0.2%Language:Stata 0.1%