Bugfix: Call end_of_simulation() of base class.

This commit is contained in:
Lukas Steiner
2022-04-06 16:59:16 +02:00
parent 2e4be049ac
commit 5bfe667f4e
3 changed files with 4 additions and 9 deletions

View File

@@ -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()

View File

@@ -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;

View File

@@ -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);