From 04c726cb73ecc9ad219fa25c400b082ea89871fd Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Wed, 16 Jul 2014 12:00:39 +0200 Subject: [PATCH] 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. --- dram/src/simulation/Dram.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dram/src/simulation/Dram.h b/dram/src/simulation/Dram.h index a73051b4..8bd04ae8 100644 --- a/dram/src/simulation/Dram.h +++ b/dram/src/simulation/Dram.h @@ -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) {