Go to the documentation of this file.
38 #ifndef __DEV_ARM_RV_HH__
39 #define __DEV_ARM_RV_HH__
43 #include "params/RealViewCtrl.hh"
44 #include "params/RealViewOsc.hh"
45 #include "params/RealViewTemperatureSensor.hh"
80 virtual uint32_t
read()
const = 0;
81 virtual void write(uint32_t value) = 0;
140 static const uint32_t CFG_CTRL_ADDR_MASK = 0x3fffffffUL;
187 uint8_t
dcc, uint16_t
dev,
214 uint32_t
read()
const override;
215 void write(uint32_t freq)
override;
234 p->site,
p->position,
p->dcc,
p->device),
240 uint32_t
read()
const override;
241 void write(uint32_t temp)
override {}
249 #endif // __DEV_ARM_RV_HH__
virtual void write(uint32_t value)=0
void registerDevice(DeviceFunc func, uint8_t site, uint8_t pos, uint8_t dcc, uint16_t dev, Device *handler)
This device implements the temperature sensor used in the RealView/Versatile Express platform.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
RealViewCtrl(Params *p)
The constructor for RealView just registers itself with the MMU.
const Params * params() const
RealViewCtrlParams Params
uint64_t Tick
Tick count type.
uint32_t read() const override
EndBitUnion(SysLockReg) BitUnion32(CfgCtrlReg) Bitfield< 11
The ClockDomain provides clock to group of clocked objects bundled under the same clock domain.
Device(RealViewCtrl &parent, DeviceFunc func, uint8_t site, uint8_t pos, uint8_t dcc, uint16_t dev)
virtual ~RealViewTemperatureSensor()
uint32_t flags
This register is used for smp booting.
void startup() override
startup() is the final initialization call before simulation.
uint32_t scData
This register contains the result from a system control reg access.
BitUnion32(SysLockReg) Bitfield< 15
Tick read(PacketPtr pkt) override
Handle a read to the device.
virtual uint32_t read() const =0
RealViewOsc(RealViewOscParams *p)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Tick write(PacketPtr pkt) override
All writes are simply ignored.
void write(uint32_t freq) override
System * system
The system this RV device belongs to.
void write(uint32_t temp) override
const SimObjectParams * _params
Cached copy of the object parameters.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
std::map< uint32_t, Device * > devices
std::ostream CheckpointOut
RealViewTemperatureSensor(RealViewTemperatureSensorParams *p)
This is an implementation of a programmable oscillator on the that can be configured through the Real...
uint32_t read() const override
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Tick clockPeriod() const
Get the clock period.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17