Skip to content

Latest commit

 

History

History
141 lines (109 loc) · 23.3 KB

lut.rst

File metadata and controls

141 lines (109 loc) · 23.3 KB

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
Creates a 1-dimensional read-only lookup table with given elements.
The number of supplied elements must match the given dimensions.
Creates a 2-dimensional read-only lookup table with given elements.
The number of supplied elements must match the given dimensions.
Creates a 3-dimensional read-only lookup table with given elements.
The number of supplied elements must match the given dimensions.
Creates a 4-dimensional read-only lookup table with given elements.
The number of supplied elements must match the given dimensions.
Creates a 5-dimensional read-only lookup table with given elements.
The number of supplied elements must match the given dimensions.
Creates a 1-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.
Creates a 2-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.
Creates a 3-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.
Creates a 4-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.
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]
Returns the element at the given address i.
class LUT2[T] extends LUT[T]
Returns the element at the given address r, c.
class LUT3[T] extends LUT[T]
Returns the element at the given 3-dimensional address.
class LUT4[T] extends LUT[T]
Returns the element at the given 4-dimensional address.
class LUT5[T] extends LUT[T]