Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi daisyhome,
It's been many months since I did this, so difficult to remember details. My eventual solution was all done in hardware. I created a custom sink module in SOPC builder into which I fed the video stream. I then added my own hardware design to take the video pixel data and output this via SPI to my custom device. The video stream is actually pretty straightforward and is explained in the video protocol spec document. The data (in my design at least) is transmitted in parallel RGB, scanned from top left pixel of a frame to bottom right. There is a sync marker fransmitted before every new frame (see video spec for details). My SPI hardware detected the start of frame and then loaded the parallel pixel data into a deep FIFO. I used the FIFO full signal to handshake with the SOPC design to prevent overflow. I then used a separate circuit to extract the data from the FIFO and forward to my device via SPI. I did not access the pixel data via SOPC CPU or with software as the hardware solution was much better for my implementation. I hope this is of some help.