Go to the documentation of this file.
53 #ifndef __DEV_ARM_ENERGY_CTRL_HH__
54 #define __DEV_ARM_ENERGY_CTRL_HH__
57 #include "params/EnergyCtrl.hh"
135 void init()
override;
170 return (uint32_t)(
voltage * 1000000);
183 #endif //__DEV_ARM_ENERGY_CTRL_HH__
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
uint64_t Tick
Tick count type.
static uint32_t ticksTokHz(Tick period)
Tick read(PacketPtr pkt) override
Read command sent to the device.
EventFunctionWrapper updateAckEvent
void startup() override
startup() is the final initialization call before simulation.
void updatePLAck()
Update the acknowledgment that is read back by the software to confirm newly requested performance le...
uint32_t perfLevelAck
Acknowledgment (PERF_LEVEL_ACK) RO register, software polls this register to read back the status of ...
static uint32_t toMicroVolt(double voltage)
Tick write(PacketPtr pkt) override
Write command sent to the device.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
@ DVFS_HANDLER_TRANS_LATENCY
uint32_t domainIDIndexToRead
Index for getting the domain ID from the domain ID list available with the DVFS handler.
std::ostream CheckpointOut
uint32_t domainID
Cluster ID (DOMAIN_ID) R/W register, programmed to ID of the domain for which the set/get performance...
void serialize(CheckpointOut &cp) const override
Serialize an object.
DVFSHandler * dvfsHandler
EnergyCtrl(const Params *p)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
DVFS Handler class, maintains a list of all the domains it can handle.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17