Bugfix: Call end_of_simulation() of base class.
This commit is contained in:
@@ -230,13 +230,6 @@ Controller::Controller(const sc_module_name& name, const Configuration& config)
|
||||
}
|
||||
else
|
||||
SC_REPORT_FATAL("Controller", "Selected refresh mode not supported!");
|
||||
|
||||
idleTimeCollector.start();
|
||||
}
|
||||
|
||||
void Controller::end_of_simulation()
|
||||
{
|
||||
idleTimeCollector.end();
|
||||
}
|
||||
|
||||
void Controller::controllerMethod()
|
||||
|
||||
@@ -65,8 +65,6 @@ protected:
|
||||
virtual void sendToFrontend(tlm::tlm_generic_payload& trans, tlm::tlm_phase& phase, sc_core::sc_time& delay);
|
||||
virtual void sendToDram(Command, tlm::tlm_generic_payload& trans, sc_core::sc_time& delay);
|
||||
|
||||
void end_of_simulation() override;
|
||||
|
||||
virtual void controllerMethod();
|
||||
|
||||
std::unique_ptr<SchedulerIF> scheduler;
|
||||
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
|
||||
void end_of_simulation() override
|
||||
{
|
||||
idleTimeCollector.end();
|
||||
|
||||
sc_core::sc_time activeTime = static_cast<double>(numberOfBeatsServed)
|
||||
/ memSpec.dataRate
|
||||
* memSpec.tCK
|
||||
@@ -109,6 +111,8 @@ protected:
|
||||
tSocket.register_nb_transport_fw(this, &ControllerIF::nb_transport_fw);
|
||||
tSocket.register_transport_dbg(this, &ControllerIF::transport_dbg);
|
||||
iSocket.register_nb_transport_bw(this, &ControllerIF::nb_transport_bw);
|
||||
|
||||
idleTimeCollector.start();
|
||||
}
|
||||
SC_HAS_PROCESS(ControllerIF);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user