Activate command just before a refresh

This commit is contained in:
prado
2017-02-22 17:23:48 +01:00
parent c0838e399e
commit 745f840fe3

View File

@@ -160,7 +160,8 @@ void ControllerCore::scheduleRequest(Command command, tlm::tlm_generic_payload &
sc_time start = clkAlign(sc_time_stamp());
state->cleanUp(start);
ScheduledCommand scheduledCommand = schedule(command, start, payload);
if(!(command == Command::Precharge && refreshManager->hasCollision(scheduledCommand)))
if(!((command == Command::Precharge || command == Command::Activate)
&& refreshManager->hasCollision(scheduledCommand)))
{
state->change(scheduledCommand);
controller.send(scheduledCommand, payload);