The Memory Interface of the eVA IP Core

When image buffer operators shall be used VisualApplets need access to external memory. In most cases this will be a number of RAM banks. The memory interface ports are not visible within the VisualApplets design entry. But operators which use external memory (like ImageBuffer) consume an abstract resource called RAM handled by the resource management of VisualApplets.

The eVA memory interface has been designed in a way that allows to connect a variety of different memory architectures via a single interface mechanism. The abstracted interface is basically a slave interface where the external memory controller masters the access. The slave is demanding write or read accesses via independent FIFO interfaces for writing and reading commands. The attached master needs to acknowledge fetching a command and can perform the access at any time. A flag interface enables the slave to notice when a demanded access has been performed. There are optional signals for additional information, like the number of commands which are waiting to be fetched. Those signals may help the memory controller master to optimize memory access.

The eVA framework is able to operate with multiple memory ports. The I/O ports of the resulting VA IP Core get a suffix X where X is the number of the memory interface channel.

Port layout for memory interface where X is the index of the interface port

The memory interface architecture has the following properties:

  • All I/O is synchronous to the externally supplied clock iMemClkX when an asynchronous interface is specified. Alternatively, the synchronization mode can be SyncToDesignClk where all I/O is synchronous to iDesignClk, or SyncToDesignClk2x with I/O synchronous to iDesignClk2x.

iDesignClk2x recommended

 

We recommend to use the iDesignClk2x clock signal on memory ports.

   
  • Write and read requests can occur concurrently; write and read data paths to memory are completely separated.
  • Write accesses are demanded using the ports ovMemWrDataX, ovMemWrAddrX, ovMemWrFlagX, and oMemWrReqX which in the following shall be called a write command.
  • Read accesses are demanded using the ports ovMemRdAddrX, ovMemRdFlagX, oMemRdReqX which in the following shall be called a read command.
  • The controller acknowledges when an access command has been fetched. After an acknowledge (iMemWrAckX for write, iMemRdAckX for read), in the next clock tick the next command may be provided. The command is signalled by the according request ports (oMemWrReqX for write, oMemRdReqX for read).
  • Some VA operators require that accesses are tagged by a flag (ovMemWrFlagX, ovMemRdFlagX). After the access has been performed, the controller must return this flag to the memory interface (ivMemWrFlagX, ivMemRdFlagX). There is a minimal width of the tags which must be provided:
    • MemWrFlagWidth >= 4

    • MemRdFlagWidth >= 8

The following table provides a detailed description of the memory interface ports where X is a port number for differentiating several memory ports:

Port

Direction

Width

Description

iMemClkX

In

1

Memory interface clock. This input is ignored when the port is configured for synchronous communication.

ovMemWrDataX

Out

MemDataWidthX

Write data output to memory controller

ovMemWrAddrX

Out

MemAddrWidthX

Write address

ovMemWrFlagX

Out

MemWrFlagWidthX

Write flag output

oMemWrReqX

Out

1

Write Request

iMemWrAckX

In

1

Acknowledge that write data is taken by the memory controller

oMemWrAlmostEmptyX

Out

1

Only single write command available

ovMemWrCntX

Out

MemWrCntWidthX

Number of available write commands

ivMemWrFlagX

In

MemWrFlagWidthX

Write flag output from the controller

iMemWrFlagValidX

In

1

Write flag input valid – signals that iMemWrFlagX is valid, which means that write access which had been marked with corresponding oMemWrFlagX has been executed.

ovMemRdAddrX

Out

MemAddrWidthX

Read address output

ovMemRdFlagX

Out

MemRdFlagWidthX

Read flag output

oMemRdReqX

Out

1

Read Request

iMemRdAckX

In

1

Acknowledge that read address has been taken by the memory controller

oMemRdAlmostEmptyX

Out

1

Only single read address available

ovMemRdCntX

Out

MemRdCntWidthX

Number of available read addresses

ivMemRdFlagX

In

MemRdFlagWidthX

Read flag input – only valid when iMemRdDataValidX is asserted

ivMemRdDataX

In

MemDataWidthX

Read data input

iMemRdDataValidX

In

1

Read data valid

The following figure illustrates the interface protocol for a write and read access where both accesses overlap. For simplicity, a memory controller with a fixed read latency of two clock cycles has been assumed:

Waveform illustrating the memory interface protocol