Deleted Added
sdiff udiff text old ( 9411:22e15f9c3fda ) new ( 9544:1a075d9bc1bc )
full compact
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
9# terms below provided that you ensure that this notice is replicated

--- 1192 unchanged lines hidden (view full) ---

1202 value = self.value
1203 else:
1204 value = ticks.fromSeconds(1.0 / self.value)
1205 return long(value)
1206
1207 def ini_str(self):
1208 return '%d' % self.getValue()
1209
1210# A generic frequency and/or Latency value. Value is stored as a latency,
1211# but to avoid ambiguity this object does not support numeric ops (* or /).
1212# An explicit conversion to a Latency or Frequency must be made first.
1213class Clock(ParamValue):
1214 cxx_type = 'Tick'
1215
1216 @classmethod
1217 def cxx_predecls(cls, code):
1218 code('#include "base/types.hh"')
1219
1220 @classmethod

--- 17 unchanged lines hidden (view full) ---

1238
1239 def __getattr__(self, attr):
1240 if attr == 'frequency':
1241 return Frequency(self)
1242 if attr in ('latency', 'period'):
1243 return Latency(self)
1244 raise AttributeError, "Frequency object has no attribute '%s'" % attr
1245
1246 def getValue(self):
1247 return self.period.getValue()
1248
1249 def ini_str(self):
1250 return self.period.ini_str()
1251
1252class NetworkBandwidth(float,ParamValue):
1253 cxx_type = 'float'

--- 395 unchanged lines hidden ---