diff --git a/DRAMSys/simulator/src/error/errormodel.cpp b/DRAMSys/simulator/src/error/errormodel.cpp index dc8be31b..d4508888 100644 --- a/DRAMSys/simulator/src/error/errormodel.cpp +++ b/DRAMSys/simulator/src/error/errormodel.cpp @@ -713,17 +713,14 @@ void errorModel::prepareWeakCells() unsigned int errorModel::getNumberOfFlips(double temp, sc_time time) { // Check if the provided temperature and retention time are in a valid - // range that is covered by the input data stored in the errorMap. - // In case values are out of range the maximum values provided are used - // (saturation) and debug messages are generated to alert the user. + // range that is covered by the input data stored in the errorMap. In case + // of values out of the valid range the simulation will be aborted. if (temp > maxTemperature) { - temp = maxTemperature; - //DebugManager::getInstance().printDebugMessage(name, "errormodel, temperature out of range."); + SC_REPORT_FATAL("errormodel","temperature out of range"); } if (time > maxTime) { - time = maxTime; - //DebugManager::getInstance().printDebugMessage(name, "errormodel, time out of range."); + SC_REPORT_FATAL("errormodel","time out of range"); } // Find nearest temperature: