Deleted Added
sdiff udiff text old ( 11430:bd1c6789c33f ) new ( 11524:3101ce98c55c )
full compact
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * Copyright (c) 2013 Cornell University
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating
9 * to a hardware implementation of the functionality of the software
10 * licensed hereunder. You may use the software subject to the license

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

32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 *
38 * Authors: Andreas Hansson
39 * Christopher Torng
40 */
41
42/**
43 * @file
44 * ClockedObject declaration and implementation.
45 */
46
47#ifndef __SIM_CLOCKED_OBJECT_HH__
48#define __SIM_CLOCKED_OBJECT_HH__
49
50#include "base/intmath.hh"
51#include "base/misc.hh"
52#include "params/ClockedObject.hh"
53#include "sim/core.hh"
54#include "sim/clock_domain.hh"
55#include "sim/sim_object.hh"
56
57/**
58 * Helper class for objects that need to be clocked. Clocked objects
59 * typically inherit from this class. Objects that need SimObject

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

228 * The ClockedObject class extends the SimObject with a clock and
229 * accessor functions to relate ticks to the cycles of the object.
230 */
231class ClockedObject
232 : public SimObject, public Clocked
233{
234 public:
235 ClockedObject(const ClockedObjectParams *p)
236 : SimObject(p), Clocked(*p->clk_domain) { }
237};
238
239#endif //__SIM_CLOCKED_OBJECT_HH__