The ImgOut Interface of the VA IP Core
The image streaming ports ImgOut are general purpose image communication interfaces for writing image data from the VA IP Core into the surrounding FPGA logic. The ImgOut ports consist of a simple FIFO interface plus additional parameter ports. The interface ports are thoroughly parameterized. In addition to the existing parameters, you can define additional registers for forwarding parameters to the connected FPGA logic.
Image data leaves the VA IP Core by interface ports of type ImgOut. Multiple classes of ImgOut ports may be defined and for each of them multiple instances are possible.
Port layout for image output interface
The following table describes the interface signals where PORTID is the name of the corresponding image input port class and X is a port number for differentiating several ports of the same class:
|
Port |
Direction |
Width |
Description |
| iPORTIDXClk | In | 1 | Clock for reading from FIFO. This input is ignored when the port is configured for synchronous communication. (ImgOut Interface configuration is described in Defining ImgOut Interface Classes.) |
| ivPORTIDXData | Out | PORTIDWidth | Data for custom read |
| iPORTIDXRead | In | 1 |
Perform read access |
| iPORTIDXEndOfLine | Out | 1 | Signals end of line. If this flag is activated data doesn’t contain pixel values. |
| iPORTIDXEndOfFrame | Out | 1 | Signals end of frame. If this flag is activated data doesn’t contain pixel values. The end-of-frame signal must coincide with the end-of-line signal. |
| oPORTIDXFIFOEmpty | Out | 1 | Output FIFO is empty |
| ovPORTIDXFIFOCnt | Out |
Ceil Log2( PORTIDFIFODepth ) |
Number of words in output FIFO. This signal can be used to generate FIFO flags like “Almost Empty”. |
| oPORTIDXReset | Out | 1 | Reset signal of the process |
| oPORTIDXEnable | Out | 1 | Enable signal of the process |
| ovPORTIDX_PARNAME_D | Out | S | Data of the parameter PARNAME. S depends on the selected bit width. This signal is generated for each parameter defined. |
| oPORTIDX_PARNAME_Upd | Out | 1 | This signal is set to ‘1’ for one clock cycle when the parameter PARNAME is updated from the runtime software. This signal is generated for each parameter defined. |
| ovPORTIDX_FID_D | Out | Ceil Log2(N)1 | Predefined parameter which notifies about the current image data format. N is the number of image protocols specified for this port. |
The following figure shows the timing of image communication through an ImgOut interface for a simple example: A frame with two lines of three 32-bit gray pixel values is transferred. In the waveform the name part PORTIDX has been substituted by ‘imgout ‘.
Waveform illustrating the protocol on an image output port