38#ifndef __DEV_ARM_WATCHDOG_SP805_HH__
39#define __DEV_ARM_WATCHDOG_SP805_HH__
110 uint32_t
value(
void)
const;
This is a base class for AMBA devices that have to respond to Device and Implementer ID calls.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
bool integrationTestEnabled
Indicates if integration test harness is enabled.
uint32_t value(void) const
Returns the current counter value.
uint32_t persistedValue
Value as persisted when the watchdog is stopped.
static constexpr uint32_t WDOGLOCK_MAGIC
If written into WdogLock, registers are unlocked for writes.
bool resetEnabled
Indicates if reset behaviour is enabled when counter reaches 0.
void restartCounter(void)
Restarts the counter to the current timeout interval.
void stopCounter(void)
Stops the counter when watchdog becomes disabled.
void clearInt(void)
Clears any active interrupts.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void serialize(CheckpointOut &cp) const override
Serialize an object.
uint32_t timeoutInterval
Timeout interval (in cycles) as specified in WdogLoad.
void sendInt(void)
Raises an interrupt.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
bool enabled
Indicates if watchdog (counter and interrupt) is enabled.
Tick timeoutStartTick
Timeout start tick to keep track of the counter value.
void timeoutExpired(void)
Triggered when value reaches 0.
bool writeAccessEnabled
Indicates if write access to registers is enabled.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
EventFunctionWrapper timeoutEvent
Timeout event, triggered when the counter value reaches 0.
Sp805(const Sp805Params ¶ms)
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::ostream CheckpointOut
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.