Fixed one bug at PDNA. There is also a workaround because for one powerdown event #banks payloads are submitted. In the next commit from Robert and Jonny this will be hopefully solved.

This commit is contained in:
Matthias Jung
2014-07-16 12:00:39 +02:00
parent 793cf882fe
commit 04c726cb73

View File

@@ -105,11 +105,23 @@ struct Dram: sc_module
}
else if (phase == BEGIN_PDNA)
{
DRAMPower.doCommand(MemCommand::PDN_S_ACT, bank, cycle);
if(Configuration::getInstance().BankwiseLogic == false)
{
if(bank == 0)
{
DRAMPower.doCommand(MemCommand::PDN_S_ACT, bank, cycle);
}
}
}
else if (phase == END_PDNA)
{
DRAMPower.doCommand(MemCommand::PUP_PRE, bank, cycle);
if(Configuration::getInstance().BankwiseLogic ==false)
{
if(bank == 0)
{
DRAMPower.doCommand(MemCommand::PUP_ACT, bank, cycle);
}
}
}
else if (phase == BEGIN_SREF)
{