CSI2 "bridge", "switch", "duplicator" and "merger" - Page 1
Forum section: electronics / general

author: gregoireg
author_rank: Contributor
timestamp: June 10, 2016, 09:35:57 pm
content: This is a short follow-up thread afterhttps://www.eevblog.com/forum/microcontrollers/machxo3-mipi-csi2-pair-input-connected-to-mipi-csi2-pair-output/With a Lattice MachXO3L, it's possible to "bridge", "switch", "duplicate" and "merge" CSI2 camera signals.- bridge: this consist of a SPST, single pole - single throw. The camera signal is received in the FPGA and outputs. This enables for instance to modify the content of the frame.- switch: this consists of a SPDT, single pole - double throw. It's equivalent to Fairchild FSA642 (https://www.fairchildsemi.com/products/analog-mixed-signal/switches/mipi-switches/FSA642.html), except it's digital and not analogic (see below). This enables for instance to have two CSI2 cameras linked to a single CSI2 processor input and switch between the two cameras.- duplicate: this consists of receiving a single CSI2 camera signal and outputs it identically to 2 processors. For instance, you might want to have one processor doing encoding and the other processor doing computer vision. The advantage is both processors receive the exact same signal, as if it was linked to the camera alone, none of the two processors needs to be a proxy of the other.- merger: this consists of receiving 2 synchronized CSI camera signals and outputs the merge side-by-side of the two frames into a single frame (double width) towards a processor. This enables to have a stereo camera system towards a single processor CSI2 input.The key point of the architecture is that a FPGA is by design digital: all inputs signals need to be deserialized and reserialized before being outputted as explained here: This is a short follow-up thread afterhttps://www.eevblog.com/forum/microcontrollers/machxo3-mipi-csi2-pair-input-connected-to-mipi-csi2-pair-output/Note that all of this could also apply to DSI screen signals.

author: Scrts
author_rank: Frequent Contributor
timestamp: June 13, 2016, 03:21:37 pm
content: A very interesting approach! Is it going to be open? Did you have to get CSI-2 specs from somewhere? Do you need frame buffer for side-by-side image?

author: antti
author_rank: Contributor
timestamp: August 01, 2016, 03:36:55 pm
content: I have the Lattice MIPI kits on my desk, and I did see the dual camera demo live too.funny: when I asked how it is done, none of the Lattice personal was able to answer it.There was a little trick: the demo uses 2 Rasperry cameras, that are glued together - for a good reason - when I forced the magnetic fixture of the dual camera block off the desk (and causing the system to reboot and crash) then I discovered that one of the RPi cameras had the OSCILLATOR removed and there was a wire coming from the first camera. I suspect they had also a fix for simultanueos trigger, this I could not spot that qucikly.so answer is: by TRICKS the cameras are in SYNC !!

author: antti
author_rank: Contributor
timestamp: August 14, 2016, 08:32:09 am
content: duplication is very easy, this can be done.the only thing more problematic is merger where the sources need to be syncronized to avoid storage requirements for the full frame

author: hgsenel
author_rank: Newbie
timestamp: August 29, 2016, 02:20:50 pm
content: Hello Antii,Are you using MachO3L breakout board or MachO3L starter kit?thanks