Part Number: C66XCODECS
Hello,
I am writing a unit test for my modules which will be using C66x core (hence using all the intrinsic and compiler support). To module test I need to load a memory which is around 2MB. I have two option to do that
- use classical method from C and use fscanf and do something like this
- for (i = 0; i < array_size; i++)
{
fscanf(my_file, "%u\n", &temp);
output_array[i] = temp;
}
- for (i = 0; i < array_size; i++)
- Other is to use the script to load the memory or memory browser like suggested long back in the link "e2e.ti.com/.../load-memory"
The test vectors i generate is from Matlab and i can easily generate in TI Data Format ".dat" or also in binary.
Now if I go with option 1 it takes approx of 3 hours to read the complete memory (as file reading is too slow). Second method needs a human intervention and when i want to automate my test modules its not possible.
Can you please help me in doing this as its adding so much time just to load the memory.
Br
Deepak Joshi


