SRAMΒΆ
SRAMs are on-chip scratchpads with fixed size. SRAMs can be specified as multi-dimensional, but the underlying addressing in hardware is always flat. The contents of SRAMs are persistent across loop iterations, even when they are declared in an inner scope. Up to 5-dimensional SRAMs are currently supported.
Static methods
object SRAM | |
---|---|
Infix methods
abstract class SRAM[T] | |
---|---|
def dims: List[Index]
Returns a Scala List of the dimensions of this DRAM
|
class SRAM1[T] extends SRAM[T] | |
---|---|
def length: Index
Returns the total size of this SRAM1.
|
|
def size: Index
Returns the total size of this SRAM1.
|
|
def apply(a: Index): T
Returns the value in this SRAM1 at the given address a.
|
|
def gather(dram: DRAMSparseTile[T]): Unit
Create a sparse load from the given sparse region of DRAM to this on-chip memory.
Elements will be gathered and stored contiguously in this memory.
|
|
def load(dram: DRAMDenseTile1[T]): Unit
Create a dense, burst load from the given region of DRAM to this on-chip memory.
|
class SRAM2[T] extends SRAM[T] | |
---|---|
def rows: Index
Returns the number of rows in this SRAM2.
|
|
def cols: Index
Returns the number of columns in this SRAM2.
|
|
def size: Index
Returns the total size of this SRAM2.
|
|
def load(dram: DRAMDenseTile2[T]): Unit
Create a dense, burst load from the given region of DRAM to this on-chip memory.
|
class SRAM3[T] extends SRAM[T] | |
---|---|
def dim0: Index
Returns the first dimension of this SRAM3.
|
|
def dim1: Index
Returns the second dimension of this SRAM3.
|
|
def dim2: Index
Returns the third dimension of this SRAM3.
|
|
def size: Index
Returns the total size of this SRAM3.
|
|
def load(dram: DRAMDenseTile3[T]): Unit
Create a dense, burst load from the given region of DRAM to this on-chip memory.
|
class SRAM4[T] extends SRAM[T] | |
---|---|
def dim0: Index
Returns the first dimension of this SRAM4.
|
|
def dim1: Index
Returns the second dimension of this SRAM4.
|
|
def dim2: Index
Returns the third dimension of this SRAM4.
|
|
def dim3: Index
Returns the fourth dimension of this SRAM4.
|
|
def size: Index
Returns the total size of this SRAM4.
|
|
def load(dram: DRAMDenseTile4[T]): Unit
Create a dense, burst load from the given region of DRAM to this on-chip memory.
|
class SRAM5[T] extends SRAM[T] | |
---|---|
def dim0: Index
Returns the first dimension of this SRAM5.
|
|
def dim1: Index
Returns the second dimension of this SRAM5.
|
|
def dim2: Index
Returns the third dimension of this SRAM5.
|
|
def dim3: Index
Returns the fourth dimension of this SRAM5.
|
|
def dim4: Index
Returns the fifth dimension of this SRAM5.
|
|
def size: Index
Returns the total size of this SRAM5.
|
|
def load(dram: DRAMDenseTile5[T]): Unit
Create a dense, burst load from the given region of DRAM to this on-chip memory.
|