Thank you so much for your quick reply. What I want is to measure the current variation due to functional unit activation and deactivation based on the instruction in the program.
For example, ADD R0,R1,R2 and other data processing instruction required ALU and it's a part of a functional unit. As well LDR R0,[R1,#0x1] and other memory access instruction also need a functional unit in order to successful execution.
So, I want to know the change in the current variation, when such instruction comes into the pipeline which activates functional unit also I would like to measure the current when an instruction comes which doesn't need a functional unit or in other words functional unit deactivation.
But I am not understanding how to measure this variation in the current. Since an effect in the current due to individual instruction is difficult and we need to loop them in order to measure the current consumption. I am using NXP basedLPCXpresso IDE for that, which measures the current during an execution of a program.
Regards,
Himanshu