Forums

question about unit to calculate program speed

Started by thinhdlbk April 18, 2005
Hello all,
any one can share me what is related between MIPS and MHz
if I have a number in MHz how can I change it to MIPS
Thanks.

		
This message was sent using the Comp.DSP web interface on
www.DSPRelated.com
On Mon, 18 Apr 2005 21:45:21 -0500, "thinhdlbk" <thinhdlbk@yahoo.com>
wrote in comp.dsp:

> Hello all, > any one can share me what is related between MIPS and MHz > if I have a number in MHz how can I change it to MIPS > Thanks.
There is no way to do this independent of the processor architecture. Some processors/controllers, such as the venerable old 8051, take multiple clock cycles to execute one instruction. The original members of the family executed a maximum of 1 MIPS at 12 MHz. On the other hand, today there are processors and DSPs that are super scalar, that is they execute more than one instruction per clock cycle. So a 100 MHz part might have a peak execution rate of 400 or more MIPS. Finally, not all MIPS are MIPS. A 32-bit processor/controller/DSP can generally do more than a 16-bit processor/controller/DSP in the same number of instructions. On top of all this, memory bandwidth has a significant effect. If the program or data is in slow flash or RAM, a significant percentage of the MHz may be wasted in wait states without producing any MIPS at all. So without being a log more specific about the hardware platform, there is no meaningful formula for converting MHz to MIPS or vice versa. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html