If the row has never been accessed (written, refreshed) do not flip bits.

This commit is contained in:
Éder F. Zulian
2015-09-08 14:33:39 +02:00
parent 851f487924
commit d19d2425dc

View File

@@ -231,6 +231,10 @@ 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];