51#ifndef __SIM_ROOT_HH__
52#define __SIM_ROOT_HH__
57#include "params/Root.hh"
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
Container for serializing global variables (not associated with any serialized object).
EventFunctionWrapper syncEvent
const Time timeSyncSpinThreshold() const
Retrieve the threshold for time remaining to spin wait.
void serialize(CheckpointOut &cp) const override
Serialize an object.
bool timeSyncEnabled() const
Check whether time syncing is enabled.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Root(const Params &p, int)
void timeSyncEnable(bool en)
Enable or disable time syncing.
const Time timeSyncPeriod() const
Retrieve the period for the sync event.
static Root * root()
Use this function to get a pointer to the single Root object in the simulation.
void startup() override
Schedule the timesync event at startup().
Abstract superclass for simulation objects.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Root::RootStats & rootStats
Global simulator statistics that are not associated with a specific SimObject.
std::ostream CheckpointOut
uint64_t Tick
Tick count type.
Declaration of Statistics objects.
statistics::Value hostSeconds
statistics::Formula simSeconds
RootStats(const RootStats &)=delete
statistics::Value finalTick
void resetStats() override
Callback to reset stats.
statistics::Value simTicks
statistics::Formula hostTickRate
statistics::Value simFreq
RootStats & operator=(const RootStats &)=delete
static RootStats instance
statistics::Value hostMemory