Improvements

This commit is contained in:
Éder F. Zulian
2018-07-10 08:42:36 +02:00
parent e4ba855563
commit af0520faae

View File

@@ -70,7 +70,6 @@ RGR::RGR(sc_module_name, ControllerCore &ctrlcore) : ccore(ctrlcore),
previousState[b] = ST_REFRESH;
nextState[b] = ST_REFRESH;
setUpDummy(rps[b], b);
nextPlannedRefreshs[b] = SC_ZERO_TIME;
}
#if INITIAL_DISPLACEMENT == TRUE
if (bwl) {
@@ -79,8 +78,12 @@ RGR::RGR(sc_module_name, ControllerCore &ctrlcore) : ccore(ctrlcore),
nextPlannedRefreshs[b] = b.ID() * tREFIx / nbs;
}
}
#else
for (Bank b : ccore.getBanks()) {
nextPlannedRefreshs[b] = SC_ZERO_TIME;
}
#endif
if (ccore.config.BankwiseLogic) {
if (bwl) {
for (Bank b : ccore.getBanks()) {
planNextRefresh(b, tREFIx, false);
}
@@ -265,4 +268,3 @@ void RGR::printDebugMessage(std::string msg)
{
DebugManager::getInstance().printDebugMessage(this->name(), msg);
}