Block: LookupTable1D



PIC




Inports


x

Table index in x direction






Outports


Out

Table output






Mask Parameters


TableData

Look-up table data



DimX

Number of data points in x-direction



SignalType

Selection of type of signal. This information is needed to perform correct interpolation at the table boundaries




Description:

One dimensional look-up table with selectable number of data points.

Table data must be an array of size DimX and has to be arranged as [f(x1), f(x2), ... f(xn)].

FiP: input range is from -1 to 1

Float: input range is from 0 to dimension-1

If input is out of range, output will be cut off (no extrapolation).

Implementations:
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating Point Implementation

Implementation: FiP16


16 Bit Fixed Point Implementation



Inports Data Type


x

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


x

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


x

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


x

float64






Outports Data Type


Out

float64