Code formatting.

This commit is contained in:
Lukas Steiner
2020-10-23 15:04:40 +02:00
parent 7bab23f80e
commit e26a438d06

View File

@@ -299,25 +299,25 @@ void Configuration::loadMemSpec(Configuration &config, std::string memspecUri)
json doc = parseJSON(memspecUri);
json jMemSpec = doc["memspec"];
std::string stringMemoryType = jMemSpec["memoryType"];
std::string memoryType = jMemSpec["memoryType"];
if (stringMemoryType == "DDR3")
if (memoryType == "DDR3")
memSpec = new MemSpecDDR3(jMemSpec);
else if (stringMemoryType == "DDR4")
else if (memoryType == "DDR4")
memSpec = new MemSpecDDR4(jMemSpec);
else if (stringMemoryType == "LPDDR4")
else if (memoryType == "LPDDR4")
memSpec = new MemSpecLPDDR4(jMemSpec);
else if (stringMemoryType == "WIDEIO_SDR")
else if (memoryType == "WIDEIO_SDR")
memSpec = new MemSpecWideIO(jMemSpec);
else if (stringMemoryType == "WIDEIO2")
else if (memoryType == "WIDEIO2")
memSpec = new MemSpecWideIO2(jMemSpec);
else if (stringMemoryType == "HBM2")
else if (memoryType == "HBM2")
memSpec = new MemSpecHBM2(jMemSpec);
else if (stringMemoryType == "GDDR5")
else if (memoryType == "GDDR5")
memSpec = new MemSpecGDDR5(jMemSpec);
else if (stringMemoryType == "GDDR5X")
else if (memoryType == "GDDR5X")
memSpec = new MemSpecGDDR5X(jMemSpec);
else if (stringMemoryType == "GDDR6")
else if (memoryType == "GDDR6")
memSpec = new MemSpecGDDR6(jMemSpec);
else
SC_REPORT_FATAL("Configuration", "Unsupported DRAM type");