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.
This commit is contained in:
Éder F. Zulian
2016-11-07 13:50:30 +01:00
parent 7811bdf923
commit 8b0108f366

View File

@@ -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);
}