core.hh (6214:1ec0ec8933ae) core.hh (7064:586b0e3a12b3)
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;

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

35#include <string>
36
37#include "base/types.hh"
38
39/// The universal simulation clock.
40extern Tick curTick;
41const Tick retryTime = 1000;
42
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;

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

35#include <string>
36
37#include "base/types.hh"
38
39/// The universal simulation clock.
40extern Tick curTick;
41const Tick retryTime = 1000;
42
43namespace Clock {
43namespace SimClock {
44/// The simulated frequency of curTick.
45extern Tick Frequency;
46
47namespace Float {
48extern double s;
49extern double ms;
50extern double us;
51extern double ns;

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

59
60namespace Int {
61extern Tick s;
62extern Tick ms;
63extern Tick us;
64extern Tick ns;
65extern Tick ps;
66/* namespace Int */ }
44/// The simulated frequency of curTick.
45extern Tick Frequency;
46
47namespace Float {
48extern double s;
49extern double ms;
50extern double us;
51extern double ns;

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

59
60namespace Int {
61extern Tick s;
62extern Tick ms;
63extern Tick us;
64extern Tick ns;
65extern Tick ps;
66/* namespace Int */ }
67/* namespace Clock */ }
67/* namespace SimClock */ }
68
69void setClockFrequency(Tick ticksPerSecond);
70
71void setOutputDir(const std::string &dir);
72
73struct Callback;
74void registerExitCallback(Callback *callback);
75void doExitCleanup();
76
77#endif /* __SIM_CORE_HH__ */
68
69void setClockFrequency(Tick ticksPerSecond);
70
71void setOutputDir(const std::string &dir);
72
73struct Callback;
74void registerExitCallback(Callback *callback);
75void doExitCleanup();
76
77#endif /* __SIM_CORE_HH__ */