43 #ifndef __MEM_DRAM_POWER_HH__ 44 #define __MEM_DRAM_POWER_HH__ 46 #include "libdrampower/LibDRAMPower.h" 47 #include "params/DRAMCtrl.hh" 62 static Data::MemArchitectureSpec
getArchParams(
const DRAMCtrlParams*
p);
79 static uint8_t
getDataRate(
const DRAMCtrlParams* p);
84 static bool hasTwoVDD(
const DRAMCtrlParams* p);
89 static Data::MemorySpecification
getMemSpec(
const DRAMCtrlParams* p);
96 DRAMPower(
const DRAMCtrlParams* p,
bool include_io);
100 #endif //__MEM_DRAM_POWER_HH__ static Data::MemPowerSpec getPowerParams(const DRAMCtrlParams *p)
Transforms the power and current parameters defined in DRAMCtrlParam to the memSpec of DRAMPower...
static Data::MemArchitectureSpec getArchParams(const DRAMCtrlParams *p)
Transform the architechture parameters defined in DRAMCtrlParams to the memSpec of DRAMPower...
static uint8_t getDataRate(const DRAMCtrlParams *p)
Determine data rate, either one or two.
DRAMPower(const DRAMCtrlParams *p, bool include_io)
static Data::MemTimingSpec getTimingParams(const DRAMCtrlParams *p)
Transforms the timing parameters defined in DRAMCtrlParams to the memSpec of DRAMPower.
static bool hasTwoVDD(const DRAMCtrlParams *p)
Determine if DRAM has two voltage domains (or one)
DRAMPower is a standalone tool which calculates the power consumed by a DRAM in the system...
static Data::MemorySpecification getMemSpec(const DRAMCtrlParams *p)
Return an instance of MemSpec based on the DRAMCtrlParams.