|
gem5
v19.0.0.0
|
DRAMPower is a standalone tool which calculates the power consumed by a DRAM in the system. More...
#include <drampower.hh>
Public Member Functions | |
| DRAMPower (const DRAMCtrlParams *p, bool include_io) | |
Public Attributes | |
| libDRAMPower | powerlib |
Static Private Member Functions | |
| static Data::MemArchitectureSpec | getArchParams (const DRAMCtrlParams *p) |
| Transform the architechture parameters defined in DRAMCtrlParams to the memSpec of DRAMPower. More... | |
| static Data::MemTimingSpec | getTimingParams (const DRAMCtrlParams *p) |
| Transforms the timing parameters defined in DRAMCtrlParams to the memSpec of DRAMPower. More... | |
| static Data::MemPowerSpec | getPowerParams (const DRAMCtrlParams *p) |
| Transforms the power and current parameters defined in DRAMCtrlParam to the memSpec of DRAMPower. More... | |
| static uint8_t | getDataRate (const DRAMCtrlParams *p) |
| Determine data rate, either one or two. More... | |
| static bool | hasTwoVDD (const DRAMCtrlParams *p) |
| Determine if DRAM has two voltage domains (or one) More... | |
| static Data::MemorySpecification | getMemSpec (const DRAMCtrlParams *p) |
| Return an instance of MemSpec based on the DRAMCtrlParams. More... | |
DRAMPower is a standalone tool which calculates the power consumed by a DRAM in the system.
This class wraps the DRAMPower library.
Definition at line 55 of file drampower.hh.
| DRAMPower::DRAMPower | ( | const DRAMCtrlParams * | p, |
| bool | include_io | ||
| ) |
Definition at line 45 of file drampower.cc.
|
staticprivate |
Transform the architechture parameters defined in DRAMCtrlParams to the memSpec of DRAMPower.
Definition at line 51 of file drampower.cc.
References getDataRate(), and hasTwoVDD().
Referenced by getMemSpec().
|
staticprivate |
Determine data rate, either one or two.
Definition at line 153 of file drampower.cc.
References divCeil(), and fatal.
Referenced by getArchParams().
|
staticprivate |
Return an instance of MemSpec based on the DRAMCtrlParams.
Definition at line 137 of file drampower.cc.
References getArchParams(), getPowerParams(), and getTimingParams().
|
staticprivate |
Transforms the power and current parameters defined in DRAMCtrlParam to the memSpec of DRAMPower.
Definition at line 105 of file drampower.cc.
Referenced by getMemSpec().
|
staticprivate |
Transforms the timing parameters defined in DRAMCtrlParams to the memSpec of DRAMPower.
Definition at line 73 of file drampower.cc.
References divCeil(), and SimClock::Int::ns.
Referenced by getMemSpec().
|
staticprivate |
Determine if DRAM has two voltage domains (or one)
Definition at line 147 of file drampower.cc.
Referenced by getArchParams().
| libDRAMPower DRAMPower::powerlib |
Definition at line 96 of file drampower.hh.
Referenced by DRAMCtrl::Rank::flushCmdList(), DRAMCtrl::Rank::resetStats(), and DRAMCtrl::Rank::updatePowerStats().