Merge branch 'master' of https://git.rhrk.uni-kl.de/ehses/dram.vp.system
Conflicts: dram/dramSys/dramSys.pro dram/resources/configs/amconfigs/am_wideio.xml dram/resources/configs/memconfigs/fr_fcfs.xml dram/src/common/xmlAddressdecoder.cpp dram/src/controller/core/configuration/ConfigurationLoader.cpp dram/src/simulation/Simulation.cpp dram/src/simulation/Simulation.h dram/src/simulation/TracePlayer.h
This commit is contained in:
@@ -38,20 +38,29 @@ class xmlAddressDecoder
|
||||
{
|
||||
|
||||
public:
|
||||
static std::string addressConfigURI;
|
||||
|
||||
static tinyxml2::XMLElement* addressmapping;
|
||||
static inline xmlAddressDecoder& getInstance()
|
||||
{
|
||||
static xmlAddressDecoder decoder(xmlAddressDecoder::addressConfigURI);
|
||||
static xmlAddressDecoder decoder(xmlAddressDecoder::addressmapping);
|
||||
return decoder;
|
||||
}
|
||||
|
||||
static inline void Initialize(tinyxml2::XMLElement* mapping)
|
||||
{
|
||||
addressmapping = mapping;
|
||||
xmlAddressDecoder::getInstance();
|
||||
addressmapping = NULL;
|
||||
}
|
||||
|
||||
DecodedAddress decodeAddress(sc_dt::uint64 addr);
|
||||
sc_dt::uint64 encodeAddress(DecodedAddress n);
|
||||
|
||||
|
||||
void print();
|
||||
private:
|
||||
xmlAddressDecoder(std::string URI);
|
||||
xmlAddressDecoder(tinyxml2::XMLElement* addressMap);
|
||||
|
||||
std::map<std::string, sc_dt::uint64> masks;
|
||||
std::map<std::string, unsigned int> shifts;
|
||||
|
||||
Reference in New Issue
Block a user