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"
84 virtual uint32_t
read()
const = 0;
85 virtual void write(uint32_t value) = 0;
145 static const uint32_t CFG_CTRL_ADDR_MASK = 0x3fffffffUL;
188 uint8_t
dcc, uint16_t
dev,
215 uint32_t
read()
const override;
216 void write(uint32_t freq)
override;
235 p.site, p.position, p.dcc, p.device),
241 uint32_t read()
const override;
242 void write(uint32_t temp)
override {}
The ClockDomain provides clock to group of clocked objects bundled under the same clock domain.
Wrapper that groups a few flag bits under the same undelying container.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Device(RealViewCtrl &parent, DeviceFunc func, uint8_t site, uint8_t pos, uint8_t dcc, uint16_t dev)
virtual uint32_t read() const =0
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)
Tick write(PacketPtr pkt) override
All writes are simply ignored.
uint32_t scData
This register contains the result from a system control reg access.
Tick read(PacketPtr pkt) override
Handle a read to the device.
uint32_t flags
This register is used for smp booting.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
BitUnion32(SysLockReg) Bitfield< 15
void serialize(CheckpointOut &cp) const override
Serialize an object.
std::map< uint32_t, Device * > devices
This is an implementation of a programmable oscillator on the that can be configured through the Real...
This device implements the temperature sensor used in the RealView/Versatile Express platform.
RealViewTemperatureSensor(const RealViewTemperatureSensorParams &p)
void write(uint32_t temp) override
virtual ~RealViewTemperatureSensor()
System * system
The system this RV device belongs to.
Abstract superclass for simulation objects.
#define EndBitUnion(name)
This closes off the class and union started by the above macro.
virtual void startup()
startup() is the final initialization call before simulation.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::ostream CheckpointOut
uint64_t Tick
Tick count type.
Overload hash function for BasicBlockRange type.