changeset a14f92150d3f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a14f92150d3f
description:
config: Make the Clock a Tick parameter like Latency/Frequency
This patch makes the Clock a TickParamValue just like
Latency/Frequency. There is no longer any need to distinguish it
(originally needed to support multiplication).
diffstat:
src/python/m5/params.py | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
diffs (29 lines):
diff -r c9ef81684179 -r a14f92150d3f src/python/m5/params.py
--- a/src/python/m5/params.py Fri Jan 24 15:29:29 2014 -0600
+++ b/src/python/m5/params.py Fri Jan 24 15:29:29 2014 -0600
@@ -1220,22 +1220,9 @@
def ini_str(self):
return '%d' % self.getValue()
-# A generic frequency and/or Latency value. Value is stored as a
-# latency, and any manipulation using a multiplier thus scales the
-# clock period, i.e. a 2x multiplier doubles the clock period and thus
-# halves the clock frequency.
-class Clock(ParamValue):
- cxx_type = 'Tick'
-
- @classmethod
- def cxx_predecls(cls, code):
- code('#include "base/types.hh"')
-
- @classmethod
- def swig_predecls(cls, code):
- code('%import "stdint.i"')
- code('%import "base/types.hh"')
-
+# A generic Frequency and/or Latency value. Value is stored as a
+# latency, just like Latency and Frequency.
+class Clock(TickParamValue):
def __init__(self, value):
if isinstance(value, (Latency, Clock)):
self.ticks = value.ticks
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev