byucc.jhdl.base
Interface LargeMemoryInterface

All Known Subinterfaces:
LargeWritableMemory
All Known Implementing Classes:
GenericMemory, ramrom, ramrom

public interface LargeMemoryInterface

This defines an interface for larger memory; allowing faster access than the regular MemoryInterface interface.


Method Summary
 BV getMemoryElement(int addr, BV data)
          Return the given memory position
 BV[] getMemoryRange(int sIndex, int elements, BV[] data)
          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,
                           BV[] data)
Return the given memory range

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

getMemoryElement

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

Parameters:
addr - the memory address to get
data - where to stick the results
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.