From db9e2d09b94d13d218200520976750e9ad7d96b6 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Thu, 17 Jul 2014 13:28:54 +0200 Subject: [PATCH] Adopted to newes commit to DRAMpower, please run the prerequisites script again or do a git pull in the dram/src/common/third_party/DRAMPower folder and build DRAMPower again --- dram/src/simulation/Dram.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dram/src/simulation/Dram.h b/dram/src/simulation/Dram.h index 8bd04ae8..11ab4ebc 100644 --- a/dram/src/simulation/Dram.h +++ b/dram/src/simulation/Dram.h @@ -42,7 +42,9 @@ struct Dram: sc_module ~Dram() { - DRAMPower.getEnergy(Configuration::getInstance().memspecUri); + MemorySpecification memSpec(MemorySpecification::getMemSpecFromXML(Configuration::getInstance().memspecUri)); + DRAMPower.getEnergy(memSpec); + std::cout << "Total Energy" << "\t" << DRAMPower.mpm.energy.total_energy << endl; } virtual tlm::tlm_sync_enum nb_transport_fw(tlm::tlm_generic_payload& payload, tlm::tlm_phase& phase, sc_time& delay)