merged everythin into one project

This commit is contained in:
Janik Schlemminger
2014-03-21 13:46:38 +01:00
parent 27e209f549
commit cd556eb572
53 changed files with 9026 additions and 219 deletions

View File

@@ -40,4 +40,40 @@ const ScheduledCommand ControllerState::getLastCommand(Bank bank)
return lastCommand;
}
void ControllerState::change(const ScheduledCommand& scheduledCommand)
{
pendingBusCommands.insert(scheduledCommand.getStart());
lastCommandsOnBus[scheduledCommand.getCommand()][scheduledCommand.getBank()] = scheduledCommand;
lastCommandsOnBus[scheduledCommand.getCommand()][scheduledCommand.getBank()].invalidateTransaction();
//TODO do in refresh manager
/*if(scheduledCommand.getCommand() == Refresh)
{
for(unsigned int i = 0; i < bankStates.getNumberOfBanks(); ++i)
{
lastCommandsOnBus[scheduledCommand.getCommand()][Bank(i)] = scheduledCommand;
}
}*/
switch (scheduledCommand.getCommand())
{
case Refresh:
bankStates.closeRowBuffer(scheduledCommand.getBank());
break;
case Activate:
bankStates.openRowInRowBuffer(scheduledCommand.getBank(), scheduledCommand.getRow());
nActivateWindow.put(scheduledCommand.getStart());
break;
case Precharge:
bankStates.closeRowBuffer(scheduledCommand.getBank());
break;
default:
break;
}
}
} /* namespace controller */