new metrics
This commit is contained in:
@@ -66,10 +66,9 @@ void ControllerState::change(const ScheduledCommand& scheduledCommand)
|
||||
break;
|
||||
case Command::Activate:
|
||||
bankStates.openRowInRowBuffer(scheduledCommand.getBank(), scheduledCommand.getRow());
|
||||
nActivateWindow.put(scheduledCommand.getStart());
|
||||
activates.blockSlots(scheduledCommand.getStart() - config->Timings.tRRD,
|
||||
scheduledCommand.getStart() + config->Timings.tRRD, true);
|
||||
lastActivates.emplace(scheduledCommand.getStart());
|
||||
break;
|
||||
|
||||
case Command::Precharge:
|
||||
bankStates.closeRowBuffer(scheduledCommand.getBank());
|
||||
break;
|
||||
@@ -85,9 +84,8 @@ void ControllerState::change(const ScheduledCommand& scheduledCommand)
|
||||
void ControllerState::cleanUp(sc_time time)
|
||||
{
|
||||
bus.cleanUpSlots(time);
|
||||
activates.cleanUpSlots(time);
|
||||
|
||||
lastDataStrobeCommands.remove_if([&](ScheduledCommand command){return command.getEnd() < time;});
|
||||
lastDataStrobeCommands.remove_if([&](ScheduledCommand command){return command.getEnd() < time - config->Timings.tStrobeHistory;});
|
||||
lastActivates.erase(lastActivates.begin(), lastActivates.lower_bound(time - config->Timings.tActHistory));
|
||||
}
|
||||
|
||||
} /* namespace controller */
|
||||
|
||||
Reference in New Issue
Block a user