Comments added to the code

This commit is contained in:
Éder F. Zulian
2017-08-08 14:37:08 +02:00
parent c1e9949850
commit ef741cf744
2 changed files with 5 additions and 0 deletions

View File

@@ -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());
}

View File

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