|
gem5 v23.0.0.1
|
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 DRAMInterfaceParams &p, bool include_io) | |
Public Attributes | |
| libDRAMPower | powerlib |
Static Private Member Functions | |
| static Data::MemArchitectureSpec | getArchParams (const DRAMInterfaceParams &p) |
| Transform the architechture parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower. | |
| static Data::MemTimingSpec | getTimingParams (const DRAMInterfaceParams &p) |
| Transforms the timing parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower. | |
| static Data::MemPowerSpec | getPowerParams (const DRAMInterfaceParams &p) |
| Transforms the power and current parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower. | |
| static uint8_t | getDataRate (const DRAMInterfaceParams &p) |
| Determine data rate, either one or two. | |
| static bool | hasTwoVDD (const DRAMInterfaceParams &p) |
| Determine if DRAM has two voltage domains (or one) | |
| static Data::MemorySpecification | getMemSpec (const DRAMInterfaceParams &p) |
| Return an instance of MemSpec based on the DRAMInterfaceParams. | |
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 56 of file drampower.hh.
| gem5::DRAMPower::DRAMPower | ( | const DRAMInterfaceParams & | p, |
| bool | include_io | ||
| ) |
Definition at line 46 of file drampower.cc.
|
staticprivate |
Transform the architechture parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower.
Definition at line 52 of file drampower.cc.
References hasTwoVDD(), and gem5::MipsISA::p.
Referenced by getMemSpec().
|
staticprivate |
Determine data rate, either one or two.
Definition at line 154 of file drampower.cc.
References gem5::divCeil(), fatal, and gem5::MipsISA::p.
|
staticprivate |
Return an instance of MemSpec based on the DRAMInterfaceParams.
Definition at line 138 of file drampower.cc.
References getArchParams(), getPowerParams(), getTimingParams(), and gem5::MipsISA::p.
|
staticprivate |
Transforms the power and current parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower.
Definition at line 106 of file drampower.cc.
References gem5::MipsISA::p.
Referenced by getMemSpec().
|
staticprivate |
Transforms the timing parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower.
Definition at line 74 of file drampower.cc.
References gem5::divCeil(), gem5::sim_clock::as_int::ns, and gem5::MipsISA::p.
Referenced by getMemSpec().
|
staticprivate |
Determine if DRAM has two voltage domains (or one)
Definition at line 148 of file drampower.cc.
References gem5::MipsISA::p.
Referenced by getArchParams().
| libDRAMPower gem5::DRAMPower::powerlib |
Definition at line 98 of file drampower.hh.