core.hh (8737:770ccf3af571) | core.hh (9356:b279bad40aa3) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 25 unchanged lines hidden (view full) --- 34 35/** @file This header provides some core simulator functionality such as time 36 * information, output directory and exit events 37 */ 38 39#include <string> 40 41#include "base/types.hh" | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 25 unchanged lines hidden (view full) --- 34 35/** @file This header provides some core simulator functionality such as time 36 * information, output directory and exit events 37 */ 38 39#include <string> 40 41#include "base/types.hh" |
42#include "sim/eventq.hh" |
|
42 43/// The universal simulation clock. | 43 44/// The universal simulation clock. |
44extern Tick _curTick; | 45inline Tick curTick() { return mainEventQueue.getCurTick(); } |
45 | 46 |
46inline Tick curTick() { return _curTick; } 47inline void curTick(Tick newVal) { _curTick = newVal; } 48 | |
49const Tick retryTime = 1000; 50 51/// These are variables that are set based on the simulator frequency 52///@{ 53namespace SimClock { 54extern Tick Frequency; ///< The number of ticks that equal one second 55 56namespace Float { --- 46 unchanged lines hidden --- | 47const Tick retryTime = 1000; 48 49/// These are variables that are set based on the simulator frequency 50///@{ 51namespace SimClock { 52extern Tick Frequency; ///< The number of ticks that equal one second 53 54namespace Float { --- 46 unchanged lines hidden --- |