Defining Memory Interfaces

You can define various classes of memory interfaces. Those interface classes may differ in supported data width, address, used clock signals, and in many other aspects. Each memory interface class can be available more than one time on the VA IP Core.

Example of VA IP Core

  The example VA IP Core (in the figure to the left) shows two memory interface classes. Multiple instances of both classes are available: This VA IP Core provides 1 memory interface of interface class MemIF_A and 3 memory interfaces of interface class MemIF_B.

To define the memory interfaces of your VA IP Core:

  1. Go to the Memory tab.

  1. Click the plus icon .
  2. Into field Memory Type, enter the name of the memory interface class you want to define.
    Double-click into the field to write.
  3. In field Multiplicity, define how many memory interfaces of this class you want to have on your VA IP Core. Double-click into the field to write.

The defined memory interfaces (in our example, 6 interfaces of class MemIF_A) are immediately visible in the graphical representation of the IP Core:

  1. Define further properties of the memory interface class:

Data width: Enter the data width for the memory interface class.

Address width: Enter here the address width.

Write flags count: Enter here the width of ovMemWrFlagX (minimum width: 4)

Read flags count: Enter here the width of ovMemRdFlagX (minimum width: 8)

Some VisualApplets 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

Sync. mode: This parameter signals the relation of the memory interface clock (iMemClkX on the memory interface) and the design clock (iDesignClk on the IP Core). Following values are possible:

  • SyncToDesignClk – interface ports work synchronous to iDesignClk. The external clock input to the interface clock port is ignored.
  • SyncToDesignClk2x – interface ports are synchronous to iDesignClk2x. The external clock input to the interface clock port is ignored.

iDesignClk2x recommended

 

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

   

  • Async – asynchronous interface: The interface ports are synchronized to the external clock input to clock port iMemClkX.



    If you select Async, you need to
    • provide a clock signal at the iMemClkX port of the memory interface, and to
    • define the clock domain switch in the synthesis constraints (constraints file).

Max. pending read transfers: Enter here the maximum number of data words in the read pipeline outside the core. This value is relevant for calculating the minimum buffer depth for incoming read data.

  1. Repeat steps 2 – 5 to define all memory interface classes you need.