Removed redundant check in controllerMethod.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -103,9 +103,6 @@ private:
|
||||
void endBandwithIdleCollector();
|
||||
|
||||
uint64_t numberOfTransactionsServed = 0;
|
||||
|
||||
unsigned methodCalls = 0;
|
||||
unsigned falseTriggered = 0;
|
||||
};
|
||||
|
||||
#endif // CONTROLLERNEW_H
|
||||
|
||||
Reference in New Issue
Block a user