comments removed

This commit is contained in:
scorrea
2020-05-11 16:36:19 +02:00
parent f92d976552
commit 968eceb620

View File

@@ -47,7 +47,7 @@ unsigned int AddressDecoder::getUnsignedAttrFromJson(nlohmann::json obj, std::st
}
return vParameter;
} /// TODO:Rewrite with break instead
}
AddressDecoder::AddressDecoder(std::string pathToAddressMapping)
{
@@ -75,17 +75,12 @@ AddressDecoder::AddressDecoder(std::string pathToAddressMapping)
vRowBits = getAttrToVectorFromJson(j,"ROW_BIT");
vColumnBits = getAttrToVectorFromJson(j,"COLUMN_BIT");
vByteBits = getAttrToVectorFromJson(j,"BYTE_BIT");
//if it doesnt have one of them it returns "not a number :("
}
//TODO find a way to generate an error if it doesnt find an object with ID==0.
}
if (ID != true)
SC_REPORT_FATAL("AddressDecoder", "No mapping with ID 0 was found.");
//Why to have several "SOLUTION" elements if only the one with ID=0 will be used????
unsigned channels = pow(2.0, vChannelBits.size());
unsigned ranks = pow(2.0, vRankBits.size());
unsigned bankgroups = pow(2.0, vBankGroupBits.size());