gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
DRAMPower Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

DRAMPower::DRAMPower ( const DRAMCtrlParams *  p,
bool  include_io 
)

Definition at line 47 of file drampower.cc.

Member Function Documentation

Data::MemArchitectureSpec DRAMPower::getArchParams ( const DRAMCtrlParams *  p)
staticprivate

Transform the architechture parameters defined in DRAMCtrlParams to the memSpec of DRAMPower.

Definition at line 53 of file drampower.cc.

References getDataRate(), and hasTwoVDD().

Referenced by getMemSpec().

uint8_t DRAMPower::getDataRate ( const DRAMCtrlParams *  p)
staticprivate

Determine data rate, either one or two.

Definition at line 155 of file drampower.cc.

References divCeil(), and fatal.

Referenced by getArchParams().

Data::MemorySpecification DRAMPower::getMemSpec ( const DRAMCtrlParams *  p)
staticprivate

Return an instance of MemSpec based on the DRAMCtrlParams.

Definition at line 139 of file drampower.cc.

References getArchParams(), getPowerParams(), and getTimingParams().

Data::MemPowerSpec DRAMPower::getPowerParams ( const DRAMCtrlParams *  p)
staticprivate

Transforms the power and current parameters defined in DRAMCtrlParam to the memSpec of DRAMPower.

Definition at line 107 of file drampower.cc.

Referenced by getMemSpec().

Data::MemTimingSpec DRAMPower::getTimingParams ( const DRAMCtrlParams *  p)
staticprivate

Transforms the timing parameters defined in DRAMCtrlParams to the memSpec of DRAMPower.

Definition at line 75 of file drampower.cc.

References divCeil(), and SimClock::Int::ns.

Referenced by getMemSpec().

bool DRAMPower::hasTwoVDD ( const DRAMCtrlParams *  p)
staticprivate

Determine if DRAM has two voltage domains (or one)

Definition at line 149 of file drampower.cc.

Referenced by getArchParams().

Member Data Documentation

libDRAMPower DRAMPower::powerlib

Definition at line 96 of file drampower.hh.


The documentation for this class was generated from the following files:

Generated on Fri Jun 9 2017 13:04:08 for gem5 by doxygen 1.8.6