Aborting simulation when retention time and/or temperature exceed maximum values in the error model.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user