LUTΒΆ
LUTs are on-chip, read-only memories of fixed size. LUTs can be specified as 1 to 5 dimensional.
LUTs can be created from files using the fromFile
methods in the LUT object. This file reading is currently done at compilation time.
Static methods
object LUT | |
---|---|
def fromFile[T:Type:Bits](dim1: Int, dim2: Int, dim3: Int, dim4: Int, dim5: Int)(filename: String): LUT5[T]
Creates a 5-dimensional read-only lookup table from the given data file.
Note that this file is read during compilation, not runtime.
The number of supplied elements must match the given dimensions.
|
Infix methods
abstract class LUT[T] |
class LUT1[T] extends LUT[T] | |
---|---|
def apply(i: Index): T
Returns the element at the given address i.
|
class LUT2[T] extends LUT[T] | |
---|---|
class LUT3[T] extends LUT[T] | |
---|---|
class LUT4[T] extends LUT[T] | |
---|---|
class LUT5[T] extends LUT[T] | |
---|---|