sim_object.hh (11800:54436a1784dc) sim_object.hh (13781:280e5206fd97)
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 42 unchanged lines hidden (view full) ---

51
52#include <string>
53#include <vector>
54
55#include "params/SimObject.hh"
56#include "sim/drain.hh"
57#include "sim/eventq.hh"
58#include "sim/eventq_impl.hh"
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 42 unchanged lines hidden (view full) ---

51
52#include <string>
53#include <vector>
54
55#include "params/SimObject.hh"
56#include "sim/drain.hh"
57#include "sim/eventq.hh"
58#include "sim/eventq_impl.hh"
59#include "sim/port.hh"
59#include "sim/serialize.hh"
60
61class EventManager;
62class ProbeManager;
63
64/**
65 * Abstract superclass for simulation objects. Represents things that
66 * correspond to physical components and can be specified via the

--- 98 unchanged lines hidden (view full) ---

165 virtual void regProbeListeners();
166
167 /**
168 * Get the probe manager for this object.
169 */
170 ProbeManager *getProbeManager();
171
172 /**
60#include "sim/serialize.hh"
61
62class EventManager;
63class ProbeManager;
64
65/**
66 * Abstract superclass for simulation objects. Represents things that
67 * correspond to physical components and can be specified via the

--- 98 unchanged lines hidden (view full) ---

166 virtual void regProbeListeners();
167
168 /**
169 * Get the probe manager for this object.
170 */
171 ProbeManager *getProbeManager();
172
173 /**
174 * Get a port with a given name and index. This is used at binding time
175 * and returns a reference to a protocol-agnostic port.
176 *
177 * @param if_name Port name
178 * @param idx Index in the case of a VectorPort
179 *
180 * @return A reference to the given port
181 */
182 virtual Port &getPort(const std::string &if_name,
183 PortID idx=InvalidPortID);
184
185 /**
173 * startup() is the final initialization call before simulation.
174 * All state is initialized (including unserialized state, if any,
175 * such as the curTick() value), so this is the appropriate place to
176 * schedule initial event(s) for objects that need them.
177 */
178 virtual void startup();
179
180 /**

--- 70 unchanged lines hidden ---
186 * startup() is the final initialization call before simulation.
187 * All state is initialized (including unserialized state, if any,
188 * such as the curTick() value), so this is the appropriate place to
189 * schedule initial event(s) for objects that need them.
190 */
191 virtual void startup();
192
193 /**

--- 70 unchanged lines hidden ---