Merge branch 'master' of https://git.rhrk.uni-kl.de/ehses/dram.vp.system into ehses-master

Conflicts:
	dram/dramSys/dramSys.pro
This commit is contained in:
Matthias Jung
2015-04-09 10:32:06 +02:00
19 changed files with 900 additions and 25 deletions

View File

@@ -60,6 +60,17 @@ DecodedAddress xmlAddressDecoder::decodeAddress(sc_dt::uint64 addr)
return result;
}
sc_dt::uint64 xmlAddressDecoder::encodeAddress(DecodedAddress n)
{
return n.channel << shifts["channel"] |
n.rank << shifts["rank"] |
n.bankgroup << shifts["bankgroup"] |
n.row << shifts["row"] |
n.bank << shifts["bank"] |
n.column << shifts["column"] |
n.bytes << shifts["bytes"];
}
void xmlAddressDecoder::print()
{
cout << "Used addressmapping:" << endl;