38#ifndef __SIM_VOLTAGE_DOMAIN_HH__
39#define __SIM_VOLTAGE_DOMAIN_HH__
44#include "params/VoltageDomain.hh"
81 "request for voltage perf level %u is outside "\
82 "of numVoltages %u",
name(), perf_level,
VoltageDomain * voltageDomain() const
Get the voltage domain.
virtual std::string name() const
Abstract superclass for simulation objects.
The source clock domains provides the notion of a clock domain that is connected to a tunable clock s...
A VoltageDomain is used to group clock domains that operate under the same voltage.
PerfLevel perfLevel() const
Get the voltage point of the domain.
double voltage() const
Get the current voltage.
void registerSrcClockDom(SrcClockDomain *src_clock_dom)
Register a SrcClockDomain with this voltage domain.
const Voltages voltageOpPoints
List of possible minimum voltage at each of the frequency operational points, should be in descending...
void unserialize(CheckpointIn &cp) override
Unserialize an object.
std::vector< double > Voltages
VoltageDomainParams Params
void startup() override
Startup has all SrcClockDomains registered with this voltage domain, so try to make sure that all per...
double voltage(PerfLevel perf_level) const
Get the voltage at specified performance level.
void serialize(CheckpointOut &cp) const override
Serialize an object.
gem5::VoltageDomain::VoltageDomainStats stats
uint32_t numVoltages() const
SrcClockChildren srcClockChildren
bool sanitiseVoltages()
Recomputes the highest (fastest, i.e., numerically lowest) requested performance level of all associa...
SrcClockDomain::PerfLevel PerfLevel
std::vector< SrcClockDomain * > SrcClockChildren
List of associated SrcClockDomains that are connected to this voltage domain.
VoltageDomain(const Params &p)
ClockDomain declarations.
#define gem5_assert(cond,...)
The assert macro will function like a normal assert, but will use panic instead of straight abort().
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::ostream CheckpointOut
Declaration of Statistics objects.
VoltageDomainStats(VoltageDomain &vd)
statistics::Value voltage
Stat for reporting voltage of the domain.