summaryrefslogtreecommitdiff
path: root/configs/dram
diff options
context:
space:
mode:
authorDaniel R. Carvalho <odanrc@yahoo.com.br>2019-09-03 15:24:23 +0200
committerDaniel Carvalho <odanrc@yahoo.com.br>2019-10-01 06:15:03 +0000
commit224da08be767b51e8148e5f3e6e0da2e2ea77add (patch)
tree418b25cf9c7b5867e43fb1d52f12cd45c42430d6 /configs/dram
parentb2b06531b8db161f0c7a084deb8d710a81fb855b (diff)
downloadgem5-224da08be767b51e8148e5f3e6e0da2e2ea77add.tar.xz
configs: Port MemConfig to the common object list
Port MemConfig to use the common object list. Change-Id: If421c2745ac3431718a5170314045b456fc64a90 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20592 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'configs/dram')
-rw-r--r--configs/dram/lat_mem_rd.py3
-rw-r--r--configs/dram/low_power_sweep.py3
-rw-r--r--configs/dram/sweep.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/configs/dram/lat_mem_rd.py b/configs/dram/lat_mem_rd.py
index fd92a6350..d7f137896 100644
--- a/configs/dram/lat_mem_rd.py
+++ b/configs/dram/lat_mem_rd.py
@@ -48,6 +48,7 @@ from m5.util import addToPath
from m5.stats import periodicStatDump
addToPath('../')
+from common import ObjectList
from common import MemConfig
addToPath('../../util')
@@ -84,7 +85,7 @@ except:
parser = optparse.OptionParser()
parser.add_option("--mem-type", type="choice", default="DDR3_1600_8x8",
- choices=MemConfig.mem_names(),
+ choices=ObjectList.mem_list.get_names(),
help = "type of memory to use")
parser.add_option("--mem-size", action="store", type="string",
default="16MB",
diff --git a/configs/dram/low_power_sweep.py b/configs/dram/low_power_sweep.py
index b63921b62..7387ff45a 100644
--- a/configs/dram/low_power_sweep.py
+++ b/configs/dram/low_power_sweep.py
@@ -48,6 +48,7 @@ from m5.stats import periodicStatDump
addToPath('../')
+from common import ObjectList
from common import MemConfig
# This script aims at triggering low power state transitions in the DRAM
@@ -61,7 +62,7 @@ parser = argparse.ArgumentParser(
# Use a single-channel DDR4-2400 in 16x4 configuration by default
parser.add_argument("--mem-type", default="DDR4_2400_16x4",
- choices=MemConfig.mem_names(),
+ choices=ObjectList.mem_list.get_names(),
help = "type of memory to use")
parser.add_argument("--mem-ranks", "-r", type=int, default=1,
diff --git a/configs/dram/sweep.py b/configs/dram/sweep.py
index 385708e60..f18e44e9d 100644
--- a/configs/dram/sweep.py
+++ b/configs/dram/sweep.py
@@ -48,6 +48,7 @@ from m5.stats import periodicStatDump
addToPath('../')
+from common import ObjectList
from common import MemConfig
# this script is helpful to sweep the efficiency of a specific memory
@@ -64,7 +65,7 @@ dram_generators = {
# Use a single-channel DDR3-1600 x64 (8x8 topology) by default
parser.add_option("--mem-type", type="choice", default="DDR3_1600_8x8",
- choices=MemConfig.mem_names(),
+ choices=ObjectList.mem_list.get_names(),
help = "type of memory to use")
parser.add_option("--mem-ranks", "-r", type="int", default=1,