byucc.jhdl.base
Interface MemoryInterface

All Known Implementing Classes:
BasicMemory, BlockRamView, BlockRamView, BlockRamView, BlockRamViewL, BlockRamViewParity, delay, ramrom, ramrom, ramrom, Rom128x1View, Rom256x1View, Rom64x1View

public interface MemoryInterface

This defines an interface for memory. For faster access, try the LargeMemoryInterface interface.


Method Summary
 BV getMemoryElement(int addr)
          Return the given memory position
 BV[] getMemoryRange(int sIndex, int elements)
          Return the given memory range
 int getMemoryWidth()
          Returns the memory width
 long getSize()
          Returns the memory size
 

Method Detail

getMemoryRange

public BV[] getMemoryRange(int sIndex,
                           int elements)
Return the given memory range

Parameters:
sIndex - the starting index
elements - how many entries to get
Returns:
the modified results

getMemoryElement

public BV getMemoryElement(int addr)
Return the given memory position

Parameters:
addr - the memory address to get
Returns:
the modified results

getSize

public long getSize()
Returns the memory size

Returns:
the number of addresses

getMemoryWidth

public int getMemoryWidth()
Returns the memory width

Returns:
the number of bits per address


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.