Forum Discussion
Altera_Forum
Honored Contributor
15 years agoTo implement LUT interpolation follow these lines:
youe input (T) is say represented by 16 bits unsigned value. Use its 8 MSBs as address to LUT. This picks up the nearest LUT point (lower) then what is left of your (T) value (remainder of 8 LSBs) indicate how much you should add taking into account your scaling. You need to find out (LUT2 - LUT1) where LUT1 is the value addressed at by 8 MSBs. Then translate the (T) excess into LUT extra thus your final value = LUT1 + 8 LSB value * (LUT2-LUT1) / delta (T) of two LUT points* scale factor. (remember delta y/delta x is gradient of any draph)