Removed redundant check in controllerMethod.

This commit is contained in:
Lukas Steiner
2019-08-09 23:45:17 +02:00
parent 1dea807da3
commit 08dc5e811a
2 changed files with 0 additions and 14 deletions

View File

@@ -127,8 +127,6 @@ ControllerNew::~ControllerNew()
delete it.second;
delete scheduler;
delete commandMux;
std::cout << "Total method calls: " << methodCalls << ", false triggered: " << falseTriggered << std::endl;
}
tlm_sync_enum ControllerNew::nb_transport_fw(tlm_generic_payload &trans,
@@ -181,12 +179,6 @@ unsigned int ControllerNew::transport_dbg(tlm_generic_payload &)
void ControllerNew::controllerMethod()
{
methodCalls++;
static sc_time lastTimeCalled = SC_ZERO_TIME;
if (lastTimeCalled != sc_time_stamp())
{
lastTimeCalled = sc_time_stamp();
// (1) Release payload if arbiter has accepted the result
if (sc_time_stamp() == timeToRelease /*&& payloadToRelease != nullptr*/)
releasePayload();
@@ -265,9 +257,6 @@ void ControllerNew::controllerMethod()
if (delay != SC_ZERO_TIME) // must be checked to avoid
bankMachineEvent.notify(delay);
}
}
else
falseTriggered++;
}
void ControllerNew::releasePayload()

View File

@@ -103,9 +103,6 @@ private:
void endBandwithIdleCollector();
uint64_t numberOfTransactionsServed = 0;
unsigned methodCalls = 0;
unsigned falseTriggered = 0;
};
#endif // CONTROLLERNEW_H