2013-05-20 06:39 AM
Hi all,
I have a DSP function and I want to know how many MIPS does it consume. I have used SYSTICK of STM32F2xx device (max frequency 120 MHz) to measure the number of cycles required and now I want to convert to MIPS? As an example, if I measure 15000 cycles and the device is running @ 120MHz. How many MIPS does it mean?2013-05-20 07:11 AM
A simpler solution might be to use DWT_CYCCNT to measure cycles that specific code sequences take.
1 cycle would indicate 120 MOPS (million operations per second) 120 cycles would indicate 1 MOPS throughput 15000 cycles would indicate 8000 OPS ie mops = 120 / cycles You'd need to look at the code to make a determination about how many instructions are executed. Things like loads, stores, division will take more than a single cycle. If ''MIPS'' is a benchmark number and correlates to a different machine, or architecture, you'll need to analyze that benchmark code and understand the fudge factor for the ''unit'' of work.