Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Ads

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | Re: Timing calculation

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

Timing calculation - Imran Akthar - Jul 22 3:31:00 2004

Hi all
I m working on DM642 and having some basic questions...
I would like to know as to how can i calculate the "time taken by a
particular task/function".
The CCS ver2.21 has the profiler in that,but,it takes hell lot of time(when
using profiler,the CCS goes into Simulator MODE).
Is there any other way around?.
I have tried using DSP/BIOS object STS ,as specified in DSP/BIOS debugging
tutorial.this particular object uses CLKgettime()
function.??
its not giving desired results..
 
 
thanks
MA Imran



______________________________
DSPRelated.com's 50,000th member announced! Details Here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Timing calculation - Imran Akthar - Jul 23 4:09:00 2004

Hi Suba
thanks for the reply.
The DSP/BIOS tutorial says that if ur C6000 processor is running at MIPS other that 100 then ,we have to multiply the DSP/BIOS STS object MAx value vth (my MIPS/100).if that is the case then we will also be multiplying the value of STS object vth 4 and also since DM642 (600/100)that is 6.
so,do we have to multiply total of 24 with the CLK_gethtime() value.
 
Also,when i see the help for CLK_countspms() in CLK_module,i came across the following which uses....
 
timeAbs in milliseconds=CLK_getltime() * (CLK_getprd())) / CLK_countspms();
 
have u used this earlier..???
 
thanks and Regards
MA Imran
 


ravibsuba <r...@yahoo.com> wrote:

Hi Imran,

I use the following:

start = CLK_gethtime();
<.... function ... >
stop = CLK_gethtime();
count = stop - start;

STS also uses the same CLK_gethtime().

count gives the number of times a counter has incremented. DM642
increments this counter every 4 CPU clock cycles. So your function
takes:

4 * count / 600 milliseconds.

You should be careful with CLK_gethtime() because the counter may
reach its max. value of 2^32 and reset before your function
completes and you might end up with a wrong timing calculation. I
use CLK_getltime() to check for such resets...
There is also a TSK_deltatime (just like STS_delta), if you want to
calculate the time a task takes...

Suba.

--- In c...@yahoogroups.com, Imran Akthar wrote:
> Hi all
> I m working on DM642 and having some basic questions...
> I would like to know as to how can i calculate the "time taken by a
> particular task/function".
> The CCS ver2.21 has the profiler in that,but,it takes hell lot of
time(when
> using profiler,the CCS goes into Simulator MODE).
> Is there any other way around?.
> I have tried using DSP/BIOS object STS ,as specified in DSP/BIOS
debugging
> tutorial.this particular object uses CLKgettime()
> function.??
> its not giving desired results..> thanks
> MA Imran> ---------------------------------
>
Vote for the stars of Yahoo!'s next ad campaign!

______________________________
New TMS320C5514/15 DSPs - Industry's lowest power 16-bit DSP platform extends with two new devices. Details Here!



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )