/gem5/ext/drampower/src/ |
H A D | MemCommand.cc | 38 #include "MemCommand.h" 48 MemCommand::MemCommand(MemCommand::cmds type, function in class:MemCommand 56 void MemCommand::setType(MemCommand::cmds _type) 61 MemCommand::cmds MemCommand::getType() const 66 void MemCommand::setBank(unsigned _bank) 71 unsigned MemCommand [all...] |
H A D | CommandAnalysis.cc | 54 bool commandSorter(const MemCommand& i, const MemCommand& j) 57 return i.getType() == MemCommand::PRE && j.getType() != MemCommand::PRE; 170 void CommandAnalysis::getCommands(std::vector<MemCommand>& list, bool lastupdate, int64_t timestamp) 177 MemCommand& cmd = list[i]; 178 MemCommand::cmds cmdType = cmd.getType(); 179 if (cmdType == MemCommand::ACT) { 181 } else if (cmdType == MemCommand::RDA || cmdType == MemCommand [all...] |
H A D | MemCommand.h | 48 class MemCommand { class in namespace:Data 95 // MemCommand(); 96 MemCommand( 98 MemCommand::cmds type = UNINITIALIZED, 108 void setType(MemCommand::cmds type); 126 MemCommand::cmds type) const; 130 bool operator==(const MemCommand& other) const 185 MemCommand::cmds type;
|
H A D | TraceParser.h | 44 #include "MemCommand.h" 53 std::vector<Data::MemCommand> cmd_list; 56 Data::MemCommand parseLine(std::string line);
|
H A D | TraceParser.cc | 51 Data::MemCommand TraceParser::parseLine(std::string line) 53 MemCommand memcmd(MemCommand::UNINITIALIZED, 0, 0); 65 item_val = MemCommand::getTypeFromName(item); 66 memcmd.setType(static_cast<MemCommand::cmds>(item_val)); 92 MemCommand cmdline = parseLine(line); 108 MemCommand cmdline = parseLine(line);
|
H A D | CAHelpers.cc | 52 int64_t CommandAnalysis::timeToCompletion(MemCommand::cmds type) 58 if (type == MemCommand::RD) { 62 } else if (type == MemCommand::WR) { 66 } else if (type == MemCommand::ACT) { 68 } else if ((type == MemCommand::PRE) || (type == MemCommand::PREA)) {
|
H A D | CmdHandlers.cc | 59 printWarningIfPoweredDown("Command issued while in power-down mode.", MemCommand::ACT, timestamp, bank); 79 printWarning("Bank is already active!", MemCommand::ACT, timestamp, bank); 85 printWarningIfPoweredDown("Command issued while in power-down mode.", MemCommand::RD, timestamp, bank); 89 printWarning("Bank is not active!", MemCommand::RD, timestamp, bank); 98 printWarningIfPoweredDown("Command issued while in power-down mode.", MemCommand::WR, timestamp, bank); 102 printWarning("Bank is not active!", MemCommand::WR, timestamp, bank); 111 printWarningIfPoweredDown("Command issued while in power-down mode.", MemCommand::REF, timestamp, bank); 117 printWarningIfActive("One or more banks are active! REF requires all banks to be precharged.", MemCommand::REF, timestamp, bank); 148 printWarning("Bank must be precharged for REFB!", MemCommand::REFB, timestamp, bank); 154 printWarningIfPoweredDown("Command issued while in power-down mode.", MemCommand [all...] |
H A D | CommandAnalysis.h | 53 #include "MemCommand.h" 139 void getCommands(std::vector<MemCommand>& list, 154 std::vector<MemCommand> cached_cmd; 157 std::vector<MemCommand> cmd_list; 160 std::vector<MemCommand> next_window_cmd_list; 207 void evaluateCommands(std::vector<MemCommand>& cmd_list); 228 int64_t timeToCompletion(MemCommand::cmds type);
|
/gem5/ext/drampower/test/libdrampowertest/ |
H A D | lib_test.cc | 69 test.doCommand(MemCommand::ACT,0,35); 70 test.doCommand(MemCommand::RDA,0,50); 71 test.doCommand(MemCommand::ACT,4,51); 72 test.doCommand(MemCommand::RDA,4,66); 73 test.doCommand(MemCommand::ACT,0,86); 74 test.doCommand(MemCommand::RDA,0,101); 75 test.doCommand(MemCommand::ACT,2,102); 76 test.doCommand(MemCommand::RDA,2,117); 77 test.doCommand(MemCommand::ACT,5,119); 78 test.doCommand(MemCommand [all...] |
/gem5/ext/drampower/src/libdrampower/ |
H A D | LibDRAMPower.h | 50 #include "MemCommand.h" 60 void doCommand(Data::MemCommand::cmds type, 72 std::vector<Data::MemCommand> cmdList;
|
H A D | LibDRAMPower.cc | 68 void libDRAMPower::doCommand(MemCommand::cmds type, int bank, int64_t timestamp) 70 MemCommand cmd(type, static_cast<unsigned>(bank), timestamp); 88 doCommand(MemCommand::NOP, 0, timestamp);
|
/gem5/src/mem/ |
H A D | dram_ctrl.cc | 978 rank_ref.cmdList.push_back(Command(MemCommand::ACT, bank_ref.bank, 1082 rank_ref.cmdList.push_back(Command(MemCommand::PRE, bank.bank, 1271 // MemCommand required for DRAMPower library 1272 MemCommand::cmds command = (mem_cmd == "RD") ? MemCommand::RD : 1273 MemCommand::WR; 1969 cmdList.push_back(Command(MemCommand::PREA, 0, pre_at)); 2012 cmdList.push_back(Command(MemCommand::REF, 0, curTick())); 2119 cmdList.push_back(Command(MemCommand::PDN_F_ACT, 0, tick)); 2128 cmdList.push_back(Command(MemCommand [all...] |
H A D | dram_ctrl.hh | 151 Data::MemCommand::cmds type; 155 constexpr Command(Data::MemCommand::cmds _type, uint8_t _bank,
|