summaryrefslogtreecommitdiff
path: root/python/m5/convert.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-03-22 15:34:08 -0500
committerKevin Lim <ktlim@umich.edu>2005-03-22 15:34:08 -0500
commit2ec918362ee1235cf0d36fb7aac3e3f4ce2d4ddc (patch)
tree33a71bd50ed74ce2127de696c69ee88c9b9c5d1c /python/m5/convert.py
parentcfa4221e19459d2179ba5601cf71a7a53753a3b1 (diff)
parent48e0b9ed4dd6f69cc41003d20bf755eeaf6fb633 (diff)
downloadgem5-2ec918362ee1235cf0d36fb7aac3e3f4ce2d4ddc.tar.xz
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5 --HG-- extra : convert_revision : 0c750652cc2b59946160994d53c921cb021ceef4
Diffstat (limited to 'python/m5/convert.py')
-rw-r--r--python/m5/convert.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/python/m5/convert.py b/python/m5/convert.py
index b3f34e4ab..2ebe93889 100644
--- a/python/m5/convert.py
+++ b/python/m5/convert.py
@@ -22,7 +22,7 @@ pebi = tebi * 1024
exbi = pebi * 1024
# memory size configuration stuff
-def to_integer(value):
+def toInteger(value):
if not isinstance(value, str):
result = int(value)
elif value.endswith('Ei'):
@@ -64,7 +64,7 @@ def to_integer(value):
return result
-def to_bool(val):
+def toBool(val):
t = type(val)
if t == bool:
return val
@@ -82,9 +82,9 @@ def to_bool(val):
elif val == "false" or val == "f" or val == "no" or val == "n":
return False
- return to_integer(val) != 0
+ return toInteger(val) != 0
-def to_frequency(value):
+def toFrequency(value):
if not isinstance(value, str):
result = float(value)
elif value.endswith('THz'):
@@ -102,7 +102,7 @@ def to_frequency(value):
return result
-def to_latency(value):
+def toLatency(value):
if not isinstance(value, str):
result = float(value)
elif value.endswith('c'):
@@ -122,7 +122,7 @@ def to_latency(value):
return result;
-def to_network_bandwidth(value):
+def toNetworkBandwidth(value):
if not isinstance(value, str):
result = float(value)
elif value.endswith('Tbps'):
@@ -140,7 +140,7 @@ def to_network_bandwidth(value):
return result
-def to_memory_bandwidth(value):
+def toMemoryBandwidth(value):
if not isinstance(value, str):
result = int(value)
elif value.endswith('PB/s'):
@@ -160,7 +160,7 @@ def to_memory_bandwidth(value):
return result
-def to_memory_size(value):
+def toMemorySize(value):
if not isinstance(value, str):
result = int(value)
elif value.endswith('PB'):