From 2145f3b18cfca5ca3a7b440112663dff61047d16 Mon Sep 17 00:00:00 2001 From: Janik Schlemminger Date: Sat, 5 Apr 2014 12:18:34 +0200 Subject: [PATCH] powerdown manager. simulation manager introduced --- dram/.cproject | 12 +- dram/.settings/language.settings.xml | 2 +- dram/gmon.out | Bin 0 -> 270546 bytes dram/src/common/DebugManager.cpp | 76 +--- dram/src/common/DebugManager.h | 18 +- dram/src/common/TlmRecorder.cpp | 51 ++- dram/src/common/TlmRecorder.h | 16 +- dram/src/common/Utils.h | 18 +- dram/src/core/Command.cpp | 10 - dram/src/core/Command.h | 1 - dram/src/core/Configuration.h | 2 +- .../{Controller.cpp => ControllerCore.cpp} | 52 ++- .../core/{Controller.h => ControllerCore.h} | 16 +- dram/src/core/powerdown/IPowerDownManager.h | 38 -- dram/src/core/powerdown/PowerDownManager.cpp | 359 +++++++++--------- dram/src/core/powerdown/PowerDownManager.h | 86 +++-- .../powerdown/PowerDownManagerBankwise.cpp | 166 -------- .../core/powerdown/PowerDownManagerBankwise.h | 44 --- .../powerdown/PowerDownManagerGrouped.cpp | 170 +++++++++ .../core/powerdown/PowerDownManagerGrouped.h | 47 +++ dram/src/core/refresh/RefreshManager.cpp | 27 +- dram/src/core/refresh/RefreshManager.h | 6 +- .../core/refresh/RefreshManagerBankwise.cpp | 6 +- .../src/core/refresh/RefreshManagerBankwise.h | 10 +- .../scheduling/CommandSequenceScheduler.cpp | 4 +- .../scheduling/CommandSequenceScheduler.h | 6 +- dram/src/core/scheduling/ScheduledCommand.cpp | 5 +- dram/src/core/scheduling/ScheduledCommand.h | 2 +- .../scheduling/checker/ActivateChecker.cpp | 2 +- .../checker/PrechargeAllChecker.cpp | 2 +- dram/src/core/utils/Utils.cpp | 2 + dram/src/scheduler/Fifo.h | 4 +- dram/src/scheduler/Fr_Fcfs.h | 4 +- dram/src/simulation/{arbiter.h => Arbiter.h} | 0 .../{controllerwrapper.h => Controller.h} | 106 +++--- dram/src/simulation/{dram.h => Dram.h} | 0 dram/src/simulation/GroupPlayer.h | 160 -------- dram/src/simulation/ISimulationManager.h | 17 + dram/src/simulation/SimulationManager.cpp | 85 +++++ dram/src/simulation/SimulationManager.h | 44 +++ .../{traceplayer.h => TracePlayer.h} | 32 +- dram/src/simulation/main.cpp | 69 +--- dram/testing/Controller_test.cpp | 2 +- 43 files changed, 823 insertions(+), 956 deletions(-) create mode 100644 dram/gmon.out rename dram/src/core/{Controller.cpp => ControllerCore.cpp} (71%) rename dram/src/core/{Controller.h => ControllerCore.h} (82%) delete mode 100644 dram/src/core/powerdown/IPowerDownManager.h delete mode 100644 dram/src/core/powerdown/PowerDownManagerBankwise.cpp delete mode 100644 dram/src/core/powerdown/PowerDownManagerBankwise.h create mode 100644 dram/src/core/powerdown/PowerDownManagerGrouped.cpp create mode 100644 dram/src/core/powerdown/PowerDownManagerGrouped.h rename dram/src/simulation/{arbiter.h => Arbiter.h} (100%) rename dram/src/simulation/{controllerwrapper.h => Controller.h} (77%) rename dram/src/simulation/{dram.h => Dram.h} (100%) delete mode 100644 dram/src/simulation/GroupPlayer.h create mode 100644 dram/src/simulation/ISimulationManager.h create mode 100644 dram/src/simulation/SimulationManager.cpp create mode 100644 dram/src/simulation/SimulationManager.h rename dram/src/simulation/{traceplayer.h => TracePlayer.h} (83%) diff --git a/dram/.cproject b/dram/.cproject index 65ad912f..8f265b3c 100644 --- a/dram/.cproject +++ b/dram/.cproject @@ -19,7 +19,7 @@ -