From ef741cf74434cdb8443391b78de0e37836c6c3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Tue, 8 Aug 2017 14:37:08 +0200 Subject: [PATCH] Comments added to the code --- .../src/controller/core/configuration/Configuration.cpp | 2 ++ DRAMSys/simulator/src/simulation/DRAMSys.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp b/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp index 42f851f1..7000c1ae 100644 --- a/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp +++ b/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp @@ -207,6 +207,8 @@ void Configuration::setParameter(std::string name, std::string value) else if (name == "ControllerCoreEnableRefPostpone") { ControllerCoreEnableRefPostpone = string2bool(value); + // Refresh postpone feature available for DDR3 only in the current + // version of DRAMsys. if (ControllerCoreEnableRefPostpone && memSpec.MemoryType != "DDR3") { SC_REPORT_FATAL("Configuration", (name + " requires memory type DDR3.").c_str()); } diff --git a/DRAMSys/simulator/src/simulation/DRAMSys.cpp b/DRAMSys/simulator/src/simulation/DRAMSys.cpp index 32a90682..ea544ee4 100644 --- a/DRAMSys/simulator/src/simulation/DRAMSys.cpp +++ b/DRAMSys/simulator/src/simulation/DRAMSys.cpp @@ -80,6 +80,9 @@ DRAMSys::DRAMSys(sc_module_name __attribute__((unused)) name, Configuration::getInstance().setPathToResources(pathToResources); + // The xmlAddressDecoder MUST be initialized before calling the + // ConfigurationLoader because some information from the xmlAddressDecoder + // is needed to assure the coherence of the configuration. xmlAddressDecoder::getInstance().setConfiguration(pathToResources + "configs/amconfigs/" + amconfig);