Block: LookupTable



PIC




Inports


In

Table index






Outports


Out

Table output






Mask Parameters


Lookup

Look-up Table




Description:

Look-up Table with 256+1 values.

Note: 257th value is used for preventing index overflow during interpolation.

-> for periodic signals the 257th value should be set equal to 1st value

-> for non-periodic signals the 257th value should be set equal to 256th value

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation

Implementation: FiP8


Name FiP8
ID 160
Revision 0.1
C filename LookupTable_FiP8.c
H filename LookupTable_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


Table

Lookup table content




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In; 
     int8          Out; 
     const int8    *Table; 
} LOOKUPTABLE_FIP8;

Implementation: FiP16


Name FiP16
ID 161
Revision 0.1
C filename LookupTable_FiP16.c
H filename LookupTable_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


Table

Lookup table content




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In; 
     int16         Out; 
     const int16   *Table; 
} LOOKUPTABLE_FIP16;

Implementation: FiP32


Name FiP32
ID 162
Revision 0.1
C filename LookupTable_FiP32.c
H filename LookupTable_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


Table

Lookup table content




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In; 
     int32         Out; 
     const int32   *Table; 
} LOOKUPTABLE_FIP32;