summaryrefslogtreecommitdiff
path: root/src/sim/System.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-10-25 13:14:44 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-10-25 13:14:44 -0400
commit6f6adbf0f6a4ca96cf44a24ea575860af56eb7b2 (patch)
treedfaacd19e7e947149b52b7d5d55fe069ed7aede0 /src/sim/System.py
parent8fe556338db4cc50a3f1ba20306bc5e464941f2b (diff)
downloadgem5-6f6adbf0f6a4ca96cf44a24ea575860af56eb7b2.tar.xz
dev: Make default clock more reasonable for system and devices
This patch changes the default system clock from 1THz to 1GHz. This clock is used by all modules that do not override the default (parent clock), and primarily affects the IO subsystem. Every DMA device uses its clock to schedule the next transfer, and the change will thus cause this inter-transfer delay to be longer. The default clock of the bus is removed, as the clock inherited from the system provides exactly the same value. A follow-on patch will bump the stats.
Diffstat (limited to 'src/sim/System.py')
-rw-r--r--src/sim/System.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sim/System.py b/src/sim/System.py
index 88afea873..92883b299 100644
--- a/src/sim/System.py
+++ b/src/sim/System.py
@@ -42,11 +42,10 @@ class System(MemObject):
system_port = MasterPort("System port")
# Override the clock from the ClockedObject which looks at the
- # parent clock by default
- clock = '1t'
- # @todo Either make this value 0 and treat it as an error if it is
- # not overridden, or choose a more sensible value in the range of
- # 1GHz
+ # parent clock by default. The 1 GHz default system clock serves
+ # as a start for the modules that rely on the parent to provide
+ # the clock.
+ clock = '1GHz'
@classmethod
def export_method_cxx_predecls(cls, code):