Block: LookupTable2D



PIC




Inports


x

Table index in x direction



y

Table index in y direction






Outports


Out

Table output






Mask Parameters


TableData

Look-up table data



DimX

Number of data points in x-direction



DimY

Number of data points in x-direction



SignalTypeX

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



SignalTypeY

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




Description:

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

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

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



y

int16






Outports Data Type


Out

int16




Implementation: FiP32


32 Bit Fixed Point Implementation



Inports Data Type


x

int32



y

int32






Outports Data Type


Out

int32




Implementation: Float32


32 Bit Floating Point Implementation



Inports Data Type


x

float32



y

float32






Outports Data Type


Out

float32




Implementation: Float64


64 Bit Floating Point Implementation



Inports Data Type


x

float64



y

float64






Outports Data Type


Out

float64