umd-memsys / DRAMSim2

DRAMSim2: A cycle accurate DRAM simulator
http://www.ece.umd.edu/~blj/papers/cal10-1.pdf
255 stars 151 forks source link

Power calculation in MemoryController.cpp #70

Closed konbick closed 6 years ago

konbick commented 6 years ago

Hi,

before power stats are printed in the MemoryController.cpp file, the energy is divided by cyclesElapsed. However, cyclesElapsed doesn't have the unit of [s]. I'd expect to see cyclesElapsed*clockPeriod or something like that. So I guess the power stats are relative to something (clock cycle?) but I don't get exactly what they tell me. Could you clarify?

Thanks a lot Kon

shavvn commented 6 years ago

the final calculation takes into account of the clockPeriod (e.g. line 866-870 in MemoryController.cpp) so that we only have to do it once instead of each time some energy is incremented.