From 76d985d3f5e529a46a8643d79edaf0f68a6c13b2 Mon Sep 17 00:00:00 2001 From: Ana Mativi Date: Tue, 8 Aug 2017 13:26:20 +0200 Subject: [PATCH] Added fatal error if ControllerCoreEnableRefPostpone is enabled and memSpec is not DDR3 --- .../src/controller/core/configuration/Configuration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp b/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp index 0d970ba4..42f851f1 100644 --- a/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp +++ b/DRAMSys/simulator/src/controller/core/configuration/Configuration.cpp @@ -205,7 +205,12 @@ void Configuration::setParameter(std::string name, std::string value) else if (name == "ControllerCoreForceMaxRefPostpone") ControllerCoreForceMaxRefPostpone = string2bool(value); else if (name == "ControllerCoreEnableRefPostpone") + { ControllerCoreEnableRefPostpone = string2bool(value); + if (ControllerCoreEnableRefPostpone && memSpec.MemoryType != "DDR3") { + SC_REPORT_FATAL("Configuration", (name + " requires memory type DDR3.").c_str()); + } + } else if (name == "ControllerCoreMaxPostponedARCmd") ControllerCoreMaxPostponedARCmd = string2int(value); else if (name == "ThermalSimulation")