Hi!
It seems that can be simple to you include a new
feature to enable users to estimate power consumption
of a application. You may add an optional variable to
each instruction which represents the mean power
consuption to run this specific instruction. While running
an application, the tool just add this value for each
instruction executed. The accuracy of the method is far
from perfect, but is very quick to be obtained.
Since the processors can be target to different
technologies, the user should be able to change the
mean power consuption of each instruction. Of course,
the user is responsible for this characterization, not you.
You will only be to support this feature.
best regards,
Alexandre Amory
Logged In: YES
user_id=437888
I have a suggestion that may help you while this
functionality is not implemented. Both interpreted (acsim)
and compiled (accsim) ArchC simulators are able to take some
statistics about the simulation with the --stats (or -s)
option, and save to a file with .stats extension. This file
includes the number of times each ISA instruction get
executed. It should be not difficult to create a script to
take this counts and multiply each of them by the mean power
consumption of the respective instruction.
regards,
Bartho
--
The ArchC Team
http://www.archc.org
Computer Systems Laboratory
IC-UNICAMP