Electronic – Relation between power consumed and MCPS (million cycles per second) consumed on a processor

armarm7power-consumption

I have been working on a ARM cortex A8 board on MP3 decoder.

While doing this I have a requirement saying the MP3 decoder solution I am doing should consume 50 mW. This generated few questions in my mind when I thought about it:

  1. I recall that there is some relation between the Core Voltage applied (V), the clock frequency (f) of a processor and power consumed (P) as something like, P is directly proportional to the voltage and frequency squared.
    But is the exact relation. Given operating clock Frequency, voltage of a processor, how can we calculate power consumed by it?

  2. Now if I get the power consumed from step (1) at some clock frequency, and I am told that the decoder solution I am giving, can consume only 50 mW, how can I get the maximum limit on MCPS, which will be the upper bound on the MCPS of my decoder solution running on that hardware board?

Can I deduce that if power obtained as in step (1), say P, is consumed at frequency f, so for 50mW, what is the clock frequency and calculate accordingly the frequency. And then call this frequency as my code MHz (MCPS) upper bound?

Basically how does one map (are there any equations?) power consumed by a software to MCPS consumed?

Best Answer

I hate to give the answer of "look at the datasheet", but it is going to be your best option. All micro-controllers I have used give their estimated current draw running at various frequencies and voltages. Not all of them will give a graph or equation, but instead will give you a few points in a table. You will just have to interpolate to get what you need.

There is not a single equation that you can use to do this mapping because every device is going to have its own power consumption profile. In fact many embedded devices use their power vs frequency profile as a selling point.

You haven't stated in your question at all, but don't forget about things like LEDs and other external devices connected to your device. These will all effect the power.

After you get a frequency and voltage to run at, you can also use the datasheet to find out how many instructions you can have per second.

Related Topic