summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-03-19 04:06:08 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2015-03-19 04:06:08 -0400
commit40e678069f0199c1aa8561af0b09b6ee3839b153 (patch)
tree6f820d39b25d6beba3f06c45f5256c1d9cccbf7b /configs
parent2626effdf2d9724375e0451a318525ecd459a13b (diff)
downloadgem5-40e678069f0199c1aa8561af0b09b6ee3839b153.tar.xz
config: Fix DRAM rank option in sweep script
Align with changes in the common bits.
Diffstat (limited to 'configs')
-rw-r--r--configs/dram/sweep.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/configs/dram/sweep.py b/configs/dram/sweep.py
index f0b20dcc5..01896da0f 100644
--- a/configs/dram/sweep.py
+++ b/configs/dram/sweep.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2014 ARM Limited
+# Copyright (c) 2014-2015 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
@@ -58,7 +58,7 @@ parser.add_option("--mem-type", type="choice", default="ddr3_1600_x64",
choices=MemConfig.mem_names(),
help = "type of memory to use")
-parser.add_option("--ranks", "-r", type="int", default=1,
+parser.add_option("--mem-ranks", "-r", type="int", default=1,
help = "Number of ranks to iterate across")
parser.add_option("--rd_perc", type="int", default=100,
@@ -103,9 +103,6 @@ MemConfig.config_mem(options, system)
if not isinstance(system.mem_ctrls[0], m5.objects.DRAMCtrl):
fatal("This script assumes the memory is a DRAMCtrl subclass")
-# Set number of ranks based on input argument; default is 1 rank
-system.mem_ctrls[0].ranks_per_channel = options.ranks
-
# Set the address mapping based on input argument
# Default to RoRaBaCoCh
if options.addr_map == 0:
@@ -162,7 +159,7 @@ for bank in range(1, nbr_banks + 1):
(nxt_state, period, options.mode, options.rd_perc,
max_addr, burst_size, itt, itt, 0, stride_size,
page_size, nbr_banks, bank, options.addr_map,
- options.ranks))
+ options.mem_ranks))
nxt_state = nxt_state + 1
cfg_file.write("INIT 0\n")