merged everythin into one project
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user