Commit b390b0a1 authored by Gaurav Kukreja's avatar Gaurav Kukreja

Power estimator averaging over 100k cycles

Signed-off-by: Gaurav Kukreja's avatarGaurav Kukreja <gaurav@gauravk.in>
parent 1443155c
......@@ -98,7 +98,7 @@ double estimate_power(char *blockName,
totalEnergy += energy;
// power = energy / ((totalCycles - startCycle) / CPU_freq);
if(startCycle - lastCyclePrinted > 10000)
if(startCycle - lastCyclePrinted > 100000)
{
power = (totalEnergy - lastEnergyPrinted) / ((startCycle - lastCyclePrinted) / CPU_freq);
lastCyclePrinted = startCycle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment