The ImgIn Interface of the eVA IP Core

The image streaming ports ImgIn are general purpose image communication interfaces for writing image data from surrounding FPGA logic into the VA IP Core. The ImgIn 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 enters the VA IP Core by interface ports of type ImgIn. Multiple classes of ImgIn ports may be defined and for each of them multiple instances are possible.

 

   

Port layout for image input 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 writing to FIFO. This input is ignored when the port is configured for synchronous communication. (ImgIn Interface configuration is described Defining ImgIn Interface Classes)

ivPORTIDXData

In

PORTIDWidth

Write data (interpreted as pixel data, or as and-of-line or and-of-frame flag)

iPORTIDXValid

In

1

Perform write access

iPORTIDXEndOfLine

In

1

Signal current write access as end-of-line notification. Write data is then not interpreted as pixel data.

iPORTIDXEndOfFrame

In

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.

oPORTIDXFIFOFull

Out

1

Input FIFO is full, no further data is accepted.

ovPORTIDXFIFOCnt

Out

Ceil Log2(

PORTIDFIFODepth)1

Number of words in input FIFO. This signal can be used to generate FIFO flags like “Almost Full”.

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)2

Predefined parameter which notifies about the current image data format. N is the number of image formats specified for this port.

 

The following figure shows the timing of image communication through an ImgIn interface for a simple example where 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 ‘imgin ‘.

Waveform illustrating the protocol on an image input port