This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Example usage of LUT and HIST operations on c7x

Part Number: TDA4VM
Other Parts Discussed in Thread: MATHLIB

Tool/software:

Hi,

I couldnt find a lot of information on what the LUT/HIST operations are used for. Can you please share examples/documentation for the same?

  • Hi Akhil,

    The LUT/HIST APIs are documented in the c7x_luthist.h file in the compiler's include files (ex: ti-cgt-c7000_4.1.0.LTS/include). 

    In terms of source code examples for LUT (lookup table) and HIST (histogram), the C7x versions of MATHLIB (denoted as "mathlib" in the 10.0 SDK) and VXLIB (denoted as vxlib_10_00_00_02 in the 10.0 SDK) make use of this functionality:

    For MATHLIB the following functions use LUT. The actual use of the LUT APIs from the compiler are in MATHLIB_lut.h

    • MATHLIB_acosh
    • MATHLIB_asinh
    • MATHLIB_atanh
    • MATHLIB_cosh
    • MATHLIB_exp
    • MATHLIB_exp10
    • MATHLIB_log2
    • MATHLIB_log10
    • MATHLIB_pow
    • MATHLIB_sinh
    • MATHLIB_tanh

    For VXLIB, the VXLIB_tableLookup function uses LUT - see VXLIB_tableLookup_lut_ci.cpp for the specific LUT API usage. 

    For VXLIB, the VXLIB_histogram function uses the histogram functionality - see VXLIB_histogram_ci.cpp for the specific API usage.

    Best,

    Asha