Added fatal error if ControllerCoreEnableRefPostpone is enabled and memSpec is not DDR3

This commit is contained in:
Ana Mativi
2017-08-08 13:26:20 +02:00
parent 466fbab9ba
commit 76d985d3f5

View File

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