Using {} instead of "continue"
This commit is contained in:
@@ -232,27 +232,27 @@ void errorModel::markBitFlips()
|
||||
for(unsigned int row = 0; row < Configuration::getInstance().memSpec.NumberOfRows; row++)
|
||||
{
|
||||
// If the row has never been accessed ignore it and go to the next one
|
||||
if (lastRowAccess[row] == SC_ZERO_TIME)
|
||||
continue;
|
||||
|
||||
// Get the time interval between now and the last acivate/refresh
|
||||
sc_time interval = sc_time_stamp() - lastRowAccess[row];
|
||||
|
||||
// Obtain the number of bit flips for the current temperature and the time interval:
|
||||
unsigned int n = getNumberOfFlips(temperature, interval);
|
||||
|
||||
// Check if the current row is in the range of bit flips for this interval
|
||||
// and temperature, if yes mark it as flipped:
|
||||
for (unsigned int i=0; i<n; i++)
|
||||
if (lastRowAccess[row] != SC_ZERO_TIME)
|
||||
{
|
||||
// Check if Bit has marked as flipped yet, if yes mark it as flipped
|
||||
if(weakCells[i].flipped == false && weakCells[i].row == row)
|
||||
{
|
||||
std::stringstream msg;
|
||||
msg << "Maked weakCell[" << i << "] as flipped" << std::endl;
|
||||
DebugManager::getInstance().printDebugMessage(name, msg.str());
|
||||
// Get the time interval between now and the last acivate/refresh
|
||||
sc_time interval = sc_time_stamp() - lastRowAccess[row];
|
||||
|
||||
weakCells[i].flipped = true;
|
||||
// Obtain the number of bit flips for the current temperature and the time interval:
|
||||
unsigned int n = getNumberOfFlips(temperature, interval);
|
||||
|
||||
// Check if the current row is in the range of bit flips for this interval
|
||||
// and temperature, if yes mark it as flipped:
|
||||
for (unsigned int i=0; i<n; i++)
|
||||
{
|
||||
// Check if Bit has marked as flipped yet, if yes mark it as flipped
|
||||
if(weakCells[i].flipped == false && weakCells[i].row == row)
|
||||
{
|
||||
std::stringstream msg;
|
||||
msg << "Maked weakCell[" << i << "] as flipped" << std::endl;
|
||||
DebugManager::getInstance().printDebugMessage(name, msg.str());
|
||||
|
||||
weakCells[i].flipped = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user