Visible to Intel only — GUID: iga1447716080883
Ixiasoft
Visible to Intel only — GUID: iga1447716080883
Ixiasoft
3.5.6.3.2. Add On-Chip Memory for Video Line Buffers
The final optimization is to add small on-chip memory buffers for input and output video lines. Because the processing algorithm operates on the video input one line at a time, buffering entire lines of input data in an on-chip memory improves performance. This buffering enables the Nios® II processor to read all its input data from on-chip RAM—the fastest, lowest latency type of memory available.
The DMA fills these buffers ahead of the Nios® II processor in a ping-pong scheme, in a manner analogous to the input frame buffers used for the external SRAM. The same on-chip memory line buffering scheme is used for processor output. The Nios® II processor writes its output data to an on-chip memory line buffer, which is copied to the output frame buffer by a DMA after both the input and output ping-pong buffers flip, and the processor begins processing the next line. The figure below illustrates this memory architecture.