01-21-2015 08:58 AM
Hi everybody,I'm new on SoC architecture and I need to measure cycle count about some function using NEON instruction. My goal is to measure optmization code compared to an other architecture. In Texas Instrument or Analog Devices case, I can put MACRO on code. Theses MACRO allows an hardware cycle counter in order to calculate function cycle time. Example from Analog Devices:
- #include <cycle_count.h>
- #include <c6x.h>
- start_time = _itoll(TSCH, TSCL);
- end_time = _itoll(TSCH, TSCL);)
- cyclecount= end_time - start_time;
- or directly with Code Composer Studio.
01-21-2015 03:10 PM
02-04-2015 03:58 PM
I use simplest method: run my code 1000*1000(*1000...) times and see moments between writing "beg"/"end" to program console.Precision is sufficient to make conclusion: NEON is very weak relative TI DSPs.
01-29-2018 04:58 PM
--- Quote Start --- Ok Thx. I receive an answer from altera: we can use Trace tools with DS-5 Debugger. They is a tutorial on youtube video: https://www.youtube.com/watch?v=u_xkybphchi Regards, Remy --- Quote End --- Where were you able to find the time it would take to complete each cycle?