From d19d2425dc106070f6dc77c3ea8338b16edfcfe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Tue, 8 Sep 2015 14:33:39 +0200 Subject: [PATCH] If the row has never been accessed (written, refreshed) do not flip bits. --- DRAMSys/simulator/src/error/errormodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DRAMSys/simulator/src/error/errormodel.cpp b/DRAMSys/simulator/src/error/errormodel.cpp index 477adfbb..ea1716b5 100644 --- a/DRAMSys/simulator/src/error/errormodel.cpp +++ b/DRAMSys/simulator/src/error/errormodel.cpp @@ -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];