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) {