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.

TDA4AH-Q1: DSPLib Test Documentation

Part Number: TDA4AH-Q1

Tool/software:

Hi we are evaluating DSPLib from Processor SDK RTOS J784S4 v10.01. The DSPLIB examples are simple and easy to understand. However, DSPLIB tests look to be a bit involved by including many test scenarios in each module test. Is there documentation that can help me understand the test scenarios of each DSPLIB module’s test?

  • Hi,

    I will check if there is any documentation for the same and update in this thread.

    Regards,
    Sivadeep

  • Hi Sivadeep. Can you provide an update on this?

  • Hi,


    I was not able to find any official document, but the test folder structure is generally consistent across kernels. It includes files like d.c, idata.c, idata.h, a CSV file, and gendata.py.


    idata.h: Defines a struct with all input arguments for testing.
    idata.c: Auto-generated using gendata.py, containing test cases based on the struct.
    d.c: The main test wrapper that handles memory allocation, runs both natural C and optimized versions, and compares results.
    gendata.py: Python script used to generate idata.c.


    Test types:


    STATIC: Use predefined inputs (hardcoded or from a CSV file).
    RANDOM: Inputs are generated at runtime to test robustness.

    Regards,
    Sivadeep.