From 8b0108f36645d92b6f38efc0f0514d0b3554d60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Mon, 7 Nov 2016 13:50:30 +0100 Subject: [PATCH] ACT is also valid after PREA. This bug was masked because until now we always had a REF after PREA. So, we never had a PREA followed by an ACT. --- .../src/controller/core/scheduling/checker/ActivateChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DRAMSys/simulator/src/controller/core/scheduling/checker/ActivateChecker.cpp b/DRAMSys/simulator/src/controller/core/scheduling/checker/ActivateChecker.cpp index 447bbe1a..170bca70 100644 --- a/DRAMSys/simulator/src/controller/core/scheduling/checker/ActivateChecker.cpp +++ b/DRAMSys/simulator/src/controller/core/scheduling/checker/ActivateChecker.cpp @@ -52,7 +52,7 @@ void ActivateChecker::delayToSatisfyConstraints(ScheduledCommand& command) const ScheduledCommand lastCommandOnBank = state.getLastScheduledCommand(command.getBank()); if (lastCommandOnBank.isValidCommand()) { - if (lastCommandOnBank.getCommand() == Command::Precharge) + if (lastCommandOnBank.getCommand() == Command::Precharge || lastCommandOnBank.getCommand() == Command::PrechargeAll) { command.establishMinDistanceFromStart(lastCommandOnBank.getStart(), config.memSpec.tRP); }