Code formatting.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user