Comments added to the code
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user