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);
Real-Time Clock (MC146818)
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)
std::vector< std::unique_ptr< IntSource > > intPin
NOTE: This is a generic wrapper around the MC146818 RTC.
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.
Abstract superclass for simulation objects.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const PortID InvalidPortID
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.