diff --git a/dram/src/simulation/Dram.h b/dram/src/simulation/Dram.h index b14976a0..b740c295 100644 --- a/dram/src/simulation/Dram.h +++ b/dram/src/simulation/Dram.h @@ -59,9 +59,9 @@ struct Dram: sc_module ~Dram() { IFPOW( DRAMPower->updateCounters(true)); - IFPOW( DRAMPower->getEnergy() ); - IFPOW( cout << "Total Energy" << "\t" << DRAMPower->mpm.energy.total_energy << endl); - IFPOW( cout << "Average Power" << "\t" << DRAMPower->mpm.power.average_power << endl ); + IFPOW( DRAMPower->calcEnergy() ); + IFPOW( cout << endl << endl << "Total Energy" << "\t" << DRAMPower->getEnergy().total_energy << endl); + IFPOW( cout << "Average Power" << "\t" << DRAMPower->getPower().average_power << endl ); std::cout << "Simulated Memory Size: " << memory.size() << endl; }