fix: energy window

This commit is contained in:
marcomoerz
2025-05-28 10:05:04 +02:00
committed by Derek Christ
parent 03d33397cb
commit 7d9bfdaa26

View File

@@ -316,6 +316,7 @@ void Dram::powerWindow()
currentEnergy = this->DRAMPower->getTotalEnergy(clkCycles);
windowEnergy = currentEnergy - previousEnergy;
previousEnergy = currentEnergy;
// During operation the energy should never be zero since the device is always consuming
assert(!(windowEnergy < 1e-15));