43#ifndef __MEM_DRAM_POWER_HH__
44#define __MEM_DRAM_POWER_HH__
46#include "libdrampower/LibDRAMPower.h"
47#include "params/DRAMInterface.hh"
66 const DRAMInterfaceParams &
p);
83 static uint8_t
getDataRate(
const DRAMInterfaceParams &
p);
88 static bool hasTwoVDD(
const DRAMInterfaceParams &
p);
93 static Data::MemorySpecification
getMemSpec(
const DRAMInterfaceParams &
p);
100 DRAMPower(
const DRAMInterfaceParams &
p,
bool include_io);
DRAMPower is a standalone tool which calculates the power consumed by a DRAM in the system.
static bool hasTwoVDD(const DRAMInterfaceParams &p)
Determine if DRAM has two voltage domains (or one)
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 DRAMPowe...
DRAMPower(const DRAMInterfaceParams &p, bool include_io)
static Data::MemArchitectureSpec getArchParams(const DRAMInterfaceParams &p)
Transform the architechture parameters defined in DRAMInterfaceParams to the memSpec of DRAMPower.
static uint8_t getDataRate(const DRAMInterfaceParams &p)
Determine data rate, either one or two.
static Data::MemorySpecification getMemSpec(const DRAMInterfaceParams &p)
Return an instance of MemSpec based on the DRAMInterfaceParams.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.