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