Make it so one can do math with a Clock type in the config files
python/m5/config.py: Make Clock a NumericParamValue so you can do math with it --HG-- extra : convert_revision : 7fa548d1a23c604a31d3ecae3853949b064a1830
This commit is contained in:
parent
3b8b838417
commit
d733d168ca
|
@ -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(NumericParamValue):
|
||||
def __init__(self, value):
|
||||
self.value = getLatency(value)
|
||||
|
||||
|
|
Loading…
Reference in a new issue