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.