From 79c7c84abb5ae5585e95616923823efa33c60d33 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Fri, 25 Jul 2014 11:41:14 +0200 Subject: [PATCH] Small buxfix update function included --- dram/src/simulation/Dram.h | 1 + 1 file changed, 1 insertion(+) diff --git a/dram/src/simulation/Dram.h b/dram/src/simulation/Dram.h index 0e429f04..69c882ba 100644 --- a/dram/src/simulation/Dram.h +++ b/dram/src/simulation/Dram.h @@ -47,6 +47,7 @@ struct Dram: sc_module ~Dram() { + DRAMPower->updateCounters(true); DRAMPower->getEnergy(); cout << "Total Energy" << "\t" << DRAMPower->mpm.energy.total_energy << endl; cout << "Average Power" << "\t" << DRAMPower->mpm.power.average_power << endl;