Hello Everyone,
Could any one provide me a demo script or code or the way to measure the energy consumption due to each pipeline stage. Since, I am measuring the energy consumption due to instructions and I am measuring them by keeping them as an interrupt. And I wanted to know how much current will be consumed at each pipeline stage for each instructions (eg. ADD,MOV,LDR,STR,MUL etc.)
My board is: LPCXpresso 54114
Thanks in advance.
Regards,
Himanshu Doshi
Hi Himanshu Doshi,
I don't think it is possible to get the power consumption at each pipeline since in a 3-stage pipeline while one instruction is being executed, its successor is being decoded, and a third instruction is being fetched from memory. Also, the power consumption will be affected by the modules that are enabled and the operating frequency of the core. I would recommend you to take a look to the following application note that explains the LPC5411x Low power modes and wake up times:
http://www.nxp.com/documents/application_note/AN11799.zip
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer