mpoullet / c5505-ezdsp

Automatically exported from code.google.com/p/c5505-ezdsp
0 stars 0 forks source link

It is a doubt about the cycles associated to c5505-ezdsp #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using CCS V4
2. Create this main.c

#include <math.h>

void main(void) {
    //printf("hello world\n");
    float seno;
    seno=0.1;
    seno=sin(0.5);

    return;
}
3. To debbug this program I created a ccxml file
General Setup:
Connection: Texas Instrument Simulator.
Device: C55X+ Megamodule Cycle Accurate Simulator.

What is the expected output? What do you see instead?

I have two doubts:
1) I would like to know the number of cycles associated with one math 
operation (sine wave (sin(0.5), t*a (product)....) because if it is going 
to take a lot time probably I will try to simulate with other DPS and I 
will buy one of them, depends of the number of cycles (math functions).

2) I would like to simulate the program manually (not real-time), only 
step by step checking the number of cycles and i/o simulation and I don´t 
know the way to do with CCS (I never used this and I was checking the 
wathdog or others to check the cycles but althought I tried this I can´t 
not simulate correcty this because it is wrong configurate).

What version of the product are you using? On what operating system?
O.S.: Windows Vista.
CCS v4
and I am trying to simulate it with the C5505 eZdsp configuration.

Please provide any additional information below.

Finally I want to use a cheap DSP but I need to be sure what DPS I need.
And my idea was to simulate a esay program in CCS V4 to check the number 
of cycles. I need to execute a lot of math operations with sin() operator 
and I would like to know the time it will take the program.

Thanks a lot of in advance!!

Pablo

Original issue reported on code.google.com by pablo.ar...@gmail.com on 5 Jan 2010 at 12:20