projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b8b838
)
Make it so one can do math with a Clock type in the config files
author
Nathan Binkert
<binkertn@umich.edu>
Mon, 21 Nov 2005 04:57:26 +0000
(23:57 -0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Mon, 21 Nov 2005 04:57:26 +0000
(23:57 -0500)
python/m5/config.py:
Make Clock a NumericParamValue so you can do math with it
--HG--
extra : convert_revision :
7fa548d1a23c604a31d3ecae3853949b064a1830
python/m5/config.py
patch
|
blob
|
history
diff --git
a/python/m5/config.py
b/python/m5/config.py
index 33e0a5be7b8ac5485efe9de486d4562916c0696b..23292d2dce515ebb809274c03db4de251f682c25 100644
(file)
--- a/
python/m5/config.py
+++ b/
python/m5/config.py
@@
-1231,7
+1231,7
@@
class RootClock(ParamValue):
# A generic frequency and/or Latency value. Value is stored as a latency,
# but to avoid ambiguity this object does not support numeric ops (* or /).
# An explicit conversion to a Latency or Frequency must be made first.
-class Clock(ParamValue):
+class Clock(
Numeric
ParamValue):
def __init__(self, value):
self.value = getLatency(value)