38#ifndef __DEV_RISCV_RTC_HH__
39#define __DEV_RISCV_RTC_HH__
43#include "params/RiscvRTC.hh"
66 bool bcd,
Tick frequency,
int int_pin_count);
MC146818(EventManager *em, const std::string &name, const struct tm time, bool bcd, Tick frequency)
Ports are used to interface objects to each other.
RTC(EventManager *em, const std::string &n, const struct tm time, bool bcd, Tick frequency, int int_pin_count)
IntSourcePin< RTC > IntSource
std::vector< std::unique_ptr< IntSource > > intPin
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
RiscvRTC(const Params ¶ms)
void startup() override
startup() is the final initialization call before simulation.
EventManager(EventManager &em)
Event manger manages events in the event queue.
const Params & params() const
SimObject(const Params &p)
Copyright (c) 2024 Arm Limited All rights reserved.
const PortID InvalidPortID
IntSourcePinBase IntSourcePin
std::ostream CheckpointOut
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
uint64_t Tick
Tick count type.