45 #ifndef __MEM_DRAM_POWER_HH__
46 #define __MEM_DRAM_POWER_HH__
48 #include "libdrampower/LibDRAMPower.h"
49 #include "params/DRAMCtrl.hh"
64 static Data::MemArchitectureSpec
getArchParams(
const DRAMCtrlParams*
p);
81 static uint8_t
getDataRate(
const DRAMCtrlParams* p);
86 static bool hasTwoVDD(
const DRAMCtrlParams* p);
91 static Data::MemorySpecification
getMemSpec(
const DRAMCtrlParams* p);
98 DRAMPower(
const DRAMCtrlParams* p,
bool include_io);
102 #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.