summaryrefslogtreecommitdiff
path: root/src/sim/Root.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/Root.py')
-rw-r--r--src/sim/Root.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sim/Root.py b/src/sim/Root.py
index 4edcffa2c..e15de1554 100644
--- a/src/sim/Root.py
+++ b/src/sim/Root.py
@@ -57,4 +57,9 @@ class Root(SimObject):
return 'root'
type = 'Root'
- dummy = Param.Int(0, "We don't support objects without params")
+
+ # Time syncing prevents the simulation from running faster than real time.
+ time_sync_enable = Param.Bool(False, "whether time syncing is enabled")
+ time_sync_period = Param.Clock("100ms", "how often to sync with real time")
+ time_sync_spin_threshold = \
+ Param.Clock("100us", "when less than this much time is left, spin")