MemΒΆ

Type class used to supply evidence that type T is a local memory, potentially with multiple dimensions.

Abstract Methods

trait Mem[T,C]
def load(mem: C[T], indices: Seq[Index], en: Bit): T
Loads an element from mem at the given multi-dimensional address indices with enable en.
def store(mem: C[T], indices: Seq[Index], data: T, en: Bit): Unit
Stores data into mem at the given multi-dimensional address indices with enable en.
def iterators(mem: C[T]): Seq[Counter]
Returns a Seq of counters which define the iteration space of the given memory mem.
def par(mem: C[T]): Option[Index]
Returns the parallelization annotation for this memory.