The speed of lookup table is higher or c-block

reza hakimi_20486
reza hakimi_20486 Altair Community Member
edited September 2023 in Community Q&A

Hello

In a project with DSP, I can use both lookup table and c-block.

First, which element has the fastest speed

And after code generation and putting it on the IC, which one works better?

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited September 2023

    You must be specific to find the answer.
    What is the size of your lookup table?
    How do you implement this table (what algorithm do you use) in a C code?

  • reza hakimi_20486
    reza hakimi_20486 Altair Community Member
    edited September 2023

    You must be specific to find the answer.
    What is the size of your lookup table?
    How do you implement this table (what algorithm do you use) in a C code?

    Hello again

    Thank you for your reply

    There are 3 variables in the lookup table

    And in c-block, if is used 3 times

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited September 2023

    Hello again

    Thank you for your reply

    There are 3 variables in the lookup table

    And in c-block, if is used 3 times

    It would be a not-so-small project just to compare those 2 methods.

    The size of the table:

     - How much memory space would this table take in the DSP chip?

     - Does your DSP have sufficient space for the resolution you want?

     - What kind of method you will use to prevent the oscillation with the noise level of the input signals?

    The C code:

     - How does your algorithm represent the nonlinearity? Linear calculation does not need lookup tables because the calculation is simple. But if you need to use lookup table, you definitely deal with nonlinearity.

     - How complicated is your algorithm?

     - How long does it take your code in the DSP to performing the computation?