Merge branch 'fix/drampower_window' into 'develop'
fix: energy window See merge request ems/astdm/modeling.dram/dram.sys.5!129
This commit is contained in:
@@ -316,6 +316,7 @@ void Dram::powerWindow()
|
|||||||
|
|
||||||
currentEnergy = this->DRAMPower->getTotalEnergy(clkCycles);
|
currentEnergy = this->DRAMPower->getTotalEnergy(clkCycles);
|
||||||
windowEnergy = currentEnergy - previousEnergy;
|
windowEnergy = currentEnergy - previousEnergy;
|
||||||
|
previousEnergy = currentEnergy;
|
||||||
|
|
||||||
// During operation the energy should never be zero since the device is always consuming
|
// During operation the energy should never be zero since the device is always consuming
|
||||||
assert(!(windowEnergy < 1e-15));
|
assert(!(windowEnergy < 1e-15));
|
||||||
|
|||||||
Reference in New Issue
Block a user