Set the memory type for DRAMPower.

If the memory type is not set, then it's considered invalid by DRAMPower what
would result in a bug for RDA and WRA commands. DRAMPower breaks those
commands in two: RD + PRE or WR + PRE, then the PRE is shifted in time. The
time shift could be zero.
This commit is contained in:
Éder F. Zulian
2016-11-10 21:59:37 +01:00
parent 9fc226c83e
commit 94063a4861

View File

@@ -175,6 +175,7 @@ struct Dram : sc_module
memPowerSpec.vdd2 = Configuration::getInstance().memSpec.vDD2;
MemorySpecification memSpec;
memSpec.memoryType = Configuration::getInstance().memSpec.MemoryType;
memSpec.memTimingSpec = memTimingSpec;
memSpec.memPowerSpec = memPowerSpec;
memSpec.memArchSpec = memArchSpec;