Bankwise Refresh Manager and some minor refactoring fun

This commit is contained in:
Janik Schlemminger
2014-03-21 16:22:49 +01:00
parent cd556eb572
commit f7fa821e12
22 changed files with 231 additions and 376 deletions

View File

@@ -72,7 +72,7 @@ public:
phase = BEGIN_WR;
break;
case Refresh:
phase = BEGIN_REFA;
phase = BEGIN_AUTO_REFRESH;
break;
case Activate:
phase = BEGIN_ACT;
@@ -209,17 +209,14 @@ private:
scheduleNextPayload(DramExtension::getExtension(payload).getBank());
sendToDram(payload, phase, SC_ZERO_TIME);
}
else if(phase == BEGIN_REFA || phase == BEGIN_ACT
else if(phase == BEGIN_AUTO_REFRESH || phase == BEGIN_ACT
|| phase == BEGIN_PRE)
{
sendToDram(payload, phase, SC_ZERO_TIME);
}
else if(phase == END_REFA)
else if(phase == END_AUTO_REFRESH)
{
//std::cout << " --- END_REFA --- @:" <<sc_time_stamp() << std::endl;
for(Bank bank:controller->getBankStates().getBanks())
scheduleNextPayload(bank);
scheduleNextPayload(DramExtension::getExtension(payload).getBank());
}
else if (phase == END_RD || phase == END_WR)
{